DougieLawson wrote: ↑Wed Apr 01, 2020 9:26 amWhat's stopping you from connecting the Arduino's USB to the Raspberry's USB? No level shifting needed for that.
Seems clear.
Get a craft knife and trim the USB plugs to fit. Get a dremel and trim the case to fit. That's going to be easier than trying to reliably connect more than one GPIO with a voltage shifter.scotty101 wrote: ↑Wed Apr 01, 2020 10:32 amDougieLawson wrote: ↑Wed Apr 01, 2020 9:26 amWhat's stopping you from connecting the Arduino's USB to the Raspberry's USB? No level shifting needed for that.Seems clear.![]()
It's not that simple. Part of the appeal of the Zero W is that it's small. A USB OTG adapter, even one of the tiny ones, plus even a small USB cable takes up a lot of room in any kind of an enclosure. I'm 3D Printing a custom enclosure, so modifying the enclosure isn't the primary issue; the physical form factor I need is the issue.DougieLawson wrote: ↑Wed Apr 01, 2020 12:39 pmGet a craft knife and trim the USB plugs to fit. Get a dremel and trim the case to fit. That's going to be easier than trying to reliably connect more than one GPIO with a voltage shifter.scotty101 wrote: ↑Wed Apr 01, 2020 10:32 amDougieLawson wrote: ↑Wed Apr 01, 2020 9:26 amWhat's stopping you from connecting the Arduino's USB to the Raspberry's USB? No level shifting needed for that.Seems clear.![]()
I experimented around a little and you're correct. I wound up getting the Sparkfun Bi-Directional Level Shifter - same board as you linked, just with a red PCB from Sparkfun. Adafruit isn't currently shipping orders because they've shifted to helping COVID mitigation efforts. The beauty of living in Colorado is that Sparkfun orders are always basically overnight.penguintutor wrote: ↑Thu Apr 02, 2020 6:40 pmI believe that chip only works one-way, but for serial you will need a bidirectional level-shifter
The following from Adafruit sounds like it should work
https://www.adafruit.com/product/757
Here's a guide to configuring serial on the Raspberry Pi.
https://elinux.org/RPi_Serial_Connection