How to program Arduino UNO clone without USB

I didn't think this would so challenging...I want to hard wire Arduinos to Raspberry Pi Zero W2s.
RPI0W2s don't have the large number of USB ports that RPI3 or RPI4, so I thought I could simply solder some wires and Whella!
I bought logic converters and soldered together the I2C lines...but ran into a snag. How do I down load the sketch onto the Arduino if the software to understand I2C isn't already on the Arduino?
I see now why First Robotics uses Canbus.
I am not sure how to proceed.

You could use the ICSP port to program it, using an USBASP device or an "Arduino as USBASP". Actually, since you're apparently not using the serial lines, why not just plug the Arduino USB into a PC and program it the normal way?

Thanks for the response, and the information. Before I get into the weeds here, I would still like to know if there is a way to program directly from the Pi?
Or another way of asking this question...is the USB available anywhere else on the UNO board? I see some rather large pads underneath the USB port.

Yes, you can program the Arduino from the PI using the AVRdude utility. Just plug the Arduino USB into a spare USB port on the PI.

But why?

" But why?"
A question I am beginning to ask myself.
I like how Arduinos run Vex 884s. The Arduinos typically have to go where motor controllers go. A Pi Zero W can run the Arduino IDE and program the Arduino. The Pi Zero W or W2 have WiFi and can run headlessly. All this adds up to being able to change the software that controls the motor controllers remotely.
Pi Zeros only have one useful micro USB female port that might possibly link with an Arduino. Then there is the pita involved in getting an adapter from USB female to micro USB.
Annnnnd, you cannot buy a RPI3b+ anymore. Those had four regular USB female ports.
I thought of using a powered USB hub, with an OTG cable but it seems to cause the pi trouble mounting the right port.
I was looking for a solution using the pi GPIO pins and something other than the Arduino USB plug.

But is it something you really need, or just something that would be nice? You could dedicate one PI to each Arduino...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.