0
\$\begingroup\$

im kind new to the arduino and im experiencing the following problem. Me and my friend build a circuit with a distance sensor which gets the distance and visualize it. The sensor requires a 5V power and i've connected it directly to the arduino. Now i want to connect a 10K potensiometer to get the analog value but i dont know if i can connect it at the same line.

enter image description here

As you can see i've connected the VCC to the 5V the ground and the echo cable. I've placed the potentiometer and i want to connect the 5V wire next to the sensor's 5V wire. Can i do it or im risking damaging the arduino? Thanks

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
  • \$\begingroup\$ I can't see it, sorry. Consider posting a schematic instead. \$\endgroup\$ – Ignacio Vazquez-Abrams Jul 7 '14 at 1:23
  • \$\begingroup\$ Are you connecting both the potmeter and the distance sensor to the same Arduino input? \$\endgroup\$ – RJR Jul 7 '14 at 1:34
  • \$\begingroup\$ To the same 5V input. \$\endgroup\$ – Meletis Flevarakis Jul 7 '14 at 10:38
2
\$\begingroup\$

Sure. You should be fine as long as you don't connect the 5v power rail of the arduino to ground or any external supply voltages.

|improve this answer|||||
\$\endgroup\$
2
\$\begingroup\$

It isn't generally an issue to connect multiple devices to the Arduino's 5V connection. Mind however, the voltage regulator on an Uno can't source infinite current though.
I'd say make sure you draw less than 500mA or so. To be sure, look at the sensors specs, and use Ohm's law to calculate the current the potmeter draws (shouldn't be much, assuming you use a 10k or higher pot).
Note that maximum current draw depends on how you power the device. See the Uno documentation here, especially the 'Power' paragraph.

|improve this answer|||||
\$\endgroup\$
  • \$\begingroup\$ the sensor is using 15mAh (from this datasheet: micropik.com/PDF/HCSR04.pdf) \$\endgroup\$ – Meletis Flevarakis Jul 7 '14 at 12:12
  • \$\begingroup\$ 15 mAh? You're trying to charge a battery? \$\endgroup\$ – alex.forencich Jul 7 '14 at 18:00
  • \$\begingroup\$ 15mA I assume - should not be an issue at all then. \$\endgroup\$ – RJR Jul 8 '14 at 5:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.