there. Well I am have trying to connect my arduino to a water pump (5V DC).

The problem is, I cant wrap my head around how to connect it to a power supply, can I use my old Nokias phone charger as power supply? Its 5v.

This is sort of a pump like I have https://www.banggood.com/Machifit-JT80SL-DC-3-6V-Water-Pump-120LH-Ultra-quiet-Micro-Horizontal-Submersible-Mini-Water-Pump-p-1348608.html?rmmds=buy&cur_warehouse=CN

Just mine is 5v.

I have red and black wire, what should I connect to my phone charger?

I tried connecting it directly to arduino but it doesnt seem to work.

And if I connect it to my phone charger like that, what do i do with the 2nd wire?

And at the end, main concern is, how do I keep it turned on and off? How do i make a switch so it knows when and when not to work with arduino?

  • Actually this is my pump cytron.io/p-micro-submersible-water-pump-dc-3v-5v – Tomislav Nikolic Sep 23 '19 at 14:14
  • your question is not about an Arduino ... it is about how to power a motor .... there are many examples on the web about motors – jsotola Sep 23 '19 at 14:16
  • Well my question was not clear then, I appologiaze for that, I am trying to control when should it work and when it shouldnt – Tomislav Nikolic Sep 23 '19 at 14:17
  • you cannot get the pump to run when it is only connected to the charger ... that has nothing to do with the arduino – jsotola Sep 23 '19 at 14:28
  • youtube.com/watch?v=4apPDHlebEQ Just please BE CAREFUL! Cheap Chinese phone chargers don't have protection circuits and if they fail they sometime put 230V through. They can and WILL kill you! – Filip Franik Sep 23 '19 at 14:33

Browse other questions tagged or ask your own question.