My HC-SR04 has a 5V working voltage and 15mA, working current, but my LiPo only delivers 3.7V. I bought a DC Step-up with an input voltage of 0.5 to 5.5V and maximum input current of 1.2A.
GND to GND, VIN to VCC, D2 to Echo and D5 to Trig. I want to use a DC Boost (Polulu U1V10F5) for this, but I’m not sure how the wiring goes (Looked at some explanations, tried out some stuff but at this point afraid to make a mistake and screw up my sensor). DC Boost has a Vin, Vout and GND pin.
My guess would be that 3V3 goes to VIN (DC), VOUT (DC) goes to VCC (HC-SR04) , but then what about the GND?
Right, thats what I thought; I tried wiring both the GND from the Electron and the sensor to the DC Stepup GND (in two adjacent pins in the same row) but it didnt work for me. I’ll try it again after the weekend and see if i can figure out whats wrong
here’s an image. 3V3 to VIN. VOUT to VCC of the HC-SR04. And then the GND from both the DC Step-up and HC-SR04 to a power rail, connecting them to GND on the Electron.
I tried some other setups as well such as leaving some wires out or going directly from HC-SR04 to the Electron but nothing works. Sometimes it does give me a couple of readings, which are all over the place.