- Thu Aug 16, 2018 9:59 am
#200062
I am working on a project that involves 4 HC-SR04 ultrasonic distance sensors (https://www.sparkfun.com/products/13959).
Because I am using 4 sensors I need 8 data pins (one trigger pin and one echo pin for each sensor). I would like to use less pins. Is it possible to tie all of the trigger pins together and then just monitor each output pin individually? I'm running into weird issues where it seems like my microcontroller (Particle.io Photon) seems to stop working when I use too many sensors. Could it be that too much current is getting drawn from the pins?
I tried to tie all of the echo pins together, but then nothing works.
Does anyone have any suggestions of how to use less pins for this application?
Because I am using 4 sensors I need 8 data pins (one trigger pin and one echo pin for each sensor). I would like to use less pins. Is it possible to tie all of the trigger pins together and then just monitor each output pin individually? I'm running into weird issues where it seems like my microcontroller (Particle.io Photon) seems to stop working when I use too many sensors. Could it be that too much current is getting drawn from the pins?
I tried to tie all of the echo pins together, but then nothing works.
Does anyone have any suggestions of how to use less pins for this application?