negative of water pump and negative of power supply or battery should be connected together, as i saw in few tutorials on youtube, but what type of power supply should i connect? or what type of battery? 9v? 5v? there are SO many types of these power supplies and batteries so i want to choose the correct one.
these are what i am using to connect to my nodemcu
The 9v battery is no good. Use AAs. The 9v can not supply much current and is only good for smoke alarms not motors.
Arduino pin to IN of relay. Com to power supply +ve, NO to motor +ve, motor -ve to power supply -ve. I don’t know the relay board so not sure if full isolation. If it has isolation you can power the arduino separately. If not you need to use the same -ve for arduino and relay
the relay has 3 pins from one side and 3 pins from other side. 3 pins are one as input, one positive and one negative. IN input from relay goes to pin in arduino or nodemcu, positive pin goes to vcc or like 5v pin of arduino? and negative pin goes to ground. and from the other side, the COM pin goes to positive of AAs battery? it is an AAs battery right? and NO to motor +ve, and both -ve battery and motor are together. please check my connections like that and tell me if it is right, because the 3 other pins that has + and - on the relay, i should connect them on arduino or battery? the way i power up the arduino is that i connect it to a pc using the USB Cable.
these are AAs batteries?
Those batteries are fine. You just need to put them together in series to get the required voltage. You can use a regulator or dc dc converter or resistor divider to control it. Parallel them to get capacity required. If there is not already on your relay use a feedback diode for both the coil and the motor to protect from voltage spikes when the field collapses in the respective coils
i am literally confused as i am super beginner to these things, so a suitable solution as to what should i use as a battery and IF my connections are correct then i would appreciate the help. Why connect them in series? and how? 1 battery is not enough?
See where in post#2 that the pump requires 3 to 12 volts? Now if one were to look at the AAA or AA battery one may see that the battery is rated at 1.5 volts. One may note that 1.5 does not equal 3 with 3 being the minimum motor volt requirement. If one gave a little thought one could say OK if my single AA battery is equal to 1.5 volts then I can add, in series, another 1.5 volt battery to get 3V! 3V happens to be the minimum listed voltage requirement for the pump. That's why.
As to the other question, perhaps this may help.
The best way is to plan on paper with a schematic rather than trial and error in real life. You can use free software like easyeda or kicad or you can use pencil and paper. Draw each component and connection. With each component you will have some requirements eg voltage and current of power supply. You need to meet these requirements so eg when drawing a wire from a motor to a power supply you will note that it is xV and yA. Note that wires connecting things must be able to handle these requirements also. When you have eg a 12V supply and the requirement is for 5V then you know that something is needed between one and the other. You can draw a box and say 12V in and 5V out then research what must be in the box to achieve this.
A schematic gives you the plan for when you join real components and also highlights all the requirements and components you need before you start messing with real bits. Always update your schematic to represent real life as often you will find you need to tweak something.
Post your schematics on here and others will check them and give their opinion
Thanks for providing links to the equipment: now
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.