First post - hardware question

Maybe you should spend some time studying up on the SPI, and I2C busses as well as how Serial and RS485 works.
Analog Devices has some good tutorials as well as Sparkfun.

What is the port that I have labeled as SPI#1

That is for re-programming the 16U2 USB to TTL converter.

Learn about the Uno
https://www.arduino.cc/en/Guide/ArduinoUno

ICSP stands for In Circuit Serial Programming , which represents one of the several methods available for programming Arduino boards.
ICSP1 is what Jim already explained.

I understand. Thank you.

Is there an answer to the conflict question in purple?

You need to disconnect anything from the RX/TX pins when programming the Uno or using any of the serial functions.

You can use software serial on any pins for the RS485

connected a signal generator generating two sine waves 60KHz 60degrees phase difference to the USB-1208FS and ran the DAQami software- display

certainly would be possible sample the USB-1208FS ADCs remotely connected to a PC using USB
would probably use Visual Studio C# or MATLAB to acquire and display the data

And you can make your own minimal duino's.
One person has shown bare AVR chips with components soldered to the pins, able to plug into a breadboard and run as an Arduino. Many others mount the chip on some kind of board or mount a socket and plug the chip in that.
The Arduino Main Site 14 years ago made it clear that one of the goals of Arduino is to get people to make their own stand-alone chips in their own end-products.

The Uno was designed to be a development board, not a product component. The Arduino Mini was for embedding into products and the Nano is good for both.

A true Minimal Arduino and then Evolution of That.

Shop around for Arduino Mini and Nano if you don't like soldering. Nano can program via USB, Mini needs a programmer which most any USB-plug Arduino can do.

Short story: you can use multiple controllers pretty cheaply.

I have seen references to using pins 4&5 for RX TX modbus.
That would give me the SPI and modbus I need.

That would leave UNO's RX TX unused.

"You need to disconnect anything from the RX/TX pins when programming the Uno or using any of the serial functions."

As all the SPI and Modbus units would be slaves, does that not count as not being used for programing purposes?

That would be a longer term goal. As I have not yet developed a working program, it would be premature to jump that far ahead.

Using Software Serial on an Uno, you can. It would limit what else you can run at the same time since the CPU would have to do what a UART does.

Take a look at other boards than the Uno. Plain old Nano can do what an Uno does and has pins instead of sockets. Pins are DuPont Cable friendly and provide more solid connections. Nano pins are breadboard friendly. DuPont Cables... you should look those up! There are 3 types, pins on both ends, sleeves on both ends, and one end pin and the other sleeve. They are ribbon cables that you peel off as many wires as you need.

You want one Serial port to print debug/trace text to Serial Monitor if you can spare it.

Every one of those programs the same as the Uno. They run the same chip.

The Gammon ATmega1284 minimal board has the same core as the Uno, runs the same code but the pin numbers will need changing.
ALL ATmega chips have the same core CPU. Some have more features than the basic set of the Uno chip (328) and memory space changes. The code changes are small details only.
If money is not tight, look into clone Mega2560 boards, and if it is, get a Nano or similar or make your own.

If you are looking for load and run as is code then you need to replicate everything it is shown to run on, otherwise there will be some changes required that may need understanding the code and hardware to achieve.

PS --- not all code on the net is going to work. If it is on the Instructables site, some members here won't even look at it. If it is chatGPT, even more members here won't.
There best approach is ground-up, piece at a time and debug every step. Do not get or write a big program and expect many takers for debugging that!

By programming, I mean when you upload a sketch to the Uno.

No it would not.
You may find somewhere down the line that the Uno does not have enough memory or is not fast enough.

Data rate and time can be known ahead.
Flash space for program and data tables if any.. ditto.

It'd be nice to know if SPI.h, SD.h and the modbus library will fit in an Uno and leave room for rest.

ATmega644 would likely have room but at that point with the size and cost, it might as well be a 1284.

With some 3.3V devices including SD it might make more sense to run a 3.3V AMD controller with more RAM and 48+ MHz speed (but less robust pins), like Arduino Zero or better that kicks AVR-duino's @$$.

As I have not yet developed a working program, it would be premature to jump that far ahead.

How is it possible to know how big a program will be before you write it?
Do you have some magic formuls?

If you expect to assemble the code for such a complex system by simply copying pieces from the Internet, I think you will be severely disappointed. Finding code for each task separately is more or less realistic, but connecting 3-5 sketches together so that they do not interfere with each other is absolutely impossible for a "non-programmer".
Therefore, the first thing I would like to advise you on is to start with a simple design with one or two componrnts. Write code for it, debug it. Then add other components and rewrite the code. This way you will understand what exactly is needed for your task and what hardware you can use and what you cannot.
Or just make sure that the task is beyond your capabilities and abandon the project.

Hi, @barryfields

I think you are hoping to buy the hardware and then code it and it will instantly work.

Sorry, that very rarely happens.

You are going to have to develop your code and hardware in stages,

First, get an R3 and the Max485, start to write code to chat with the charge converter.

If you are a noob to programming, then small steps with each bit of hardware is what you need to do.

Can you please tell us your electronics, programming, arduino, hardware experience?

Tom.... :smiley: :+1: :coffee: :australia:

What @TomGeorge said.
There is also a section of this forum where you can pay to have people with Arduino experience assist you, or execute your project for you. I would advise that a noob to programming, who has a sophisticated multi-aspect project in mind, would be well ahead to get some 'higher level' advice that way. Up to you, but asking at this forum level here is like shouting your question in a crowded room - you might get the right answer, but not hear it, or you might get a thousand partial answers that drag you in disparate directions and be no further ahead.
Up to you.

There is a brief resume in my profile. I am only asking questions here to determine what is doable and what is not. My prior positions called on me to solve problems that others could not. I accomplished this not thru superior knowledge be by asking the right questions of the right people. I fully realize that this is a process not to be taken lightly.
Thanks for your input
Barry