Connecting multiple sensors to a single pin

Hello I have a couple of sensors that I want to connect to my nano but I'm not sure how to go about it since my camera sensor already takes so many pins. Would it be safe to connect this ultrasonic sensor and lora sensor to the board using the same pins? I want them to work one at a time so for example the ultrasonic sensor picks a reading, prompts the camera to take a picture, then the image is classified using tflite, and finally using the lora module to send the results to a separate sensor. My question is am I going to fry my board by connecting them all at once?

Devices using the same kind of bus are made for connecting like that. I2C is one kind, SPI is another.
As You don't post links to their datasheets a more precise reply has to wait.
The birdnest type of picture is of no help. Schematics would help.

Ah I see sorry, I can swap the modules if need be but looking at the datasheets the ultrasonic sensor just needs two pins besides power, the lora sensor is using SPI (but need 3 more to control the hardware I think?), and the camera needs a bunch a pins and uses UART.

ultrasonic sensor: OSEPP - OSEPP Ultrasonic Sensor Module (one I have)
https://www.handsontec.com/dataspecs/HC-SR04-Ultrasonic.pdf (more useful one I think)

Lora chip: https://cdn-learn.adafruit.com/assets/assets/000/031/659/original/RFM95_96_97_98W.pdf?1460518717 (I have the 95)
Pinouts | Radio FeatherWing | Adafruit Learning System

OV7670: http://web.mit.edu/6.111/www/f2016/tools/OV7670_2006.pdf

Arduino nano: https://docs.arduino.cc/resources/datasheets/ABX00030-datasheet.pdf

These are the pin outs I followed to connect the nano and camera together: https://community.element14.com/resized-image/__size/620x619/__key/communityserver-blogs-components-weblogfiles/00-00-00-03-30/2664.contentimage_5F00_212619.png

After plugging in the camera I'm left with D7, D11-D13 for the digital pins

I think I can plug in the lora module for the most part (using d13-d11) but I only have one digital pin left for the two pins I need for the ultrasonic sensor, and also 3 pins I need for the lora control so would I still be able to connect them if I find a pinout that won't interfere (hopefully) with the other sensors?

Also would I need to power them separately or can I just connect them all to the 3.3v output pin on the nano?

You need an external power supply for the 3.3 volt. The Lora module needs juice....
Any bidirectional I/O can't be shared. I/O purely used as output might be possible to use for more then one periferal.

List the I/O, mark them as bidir, output resp input. Compare with the available pins of the Nano ble. That would collect the info and give an overview.
Devices not being active at the same might share some pins in a time slice way.

1 Like

Do you mean I can reuse arduino nano pins that are only outputting to my modules or I can reuse module pins that are only outputting to my nano?

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