In my project, I am using DPDT to switch between two different sources. Can I control the DPDT
Relay switch programmatically using the Arduino? I want to read the battery capacity ( I have designed the circuit for doing this, and Arduino is able to read the battery capacity) and if it is less than a threshold value, I want the Arduino to activate the DPDT switch through the digital output pins so that the switch points to a different source. Can someone give me their feedback/inputs on this? I appreciate your help.
Thanks in advance,
HaG
Some Arduinos have a hidden little robotic hand that extends out of pin D3 and is able to push the lever of your DPDT switch... but they are hard to find...
which is doable from the arduino given the right information and requires a bit of extra hardware (you don't want to control a solenoid directly from your pins without protection)
As shown in the picture below, I am taking input from an external source and using a charging module to charge the Lithium Ion batteries. One of the batteries would be connected to the charger while the other one powers the microcontroller. When the battery connected to the microcontroller runs below the threshold, I want the switch to switch these two batteries, i.e, Connect the other battery to the microcontroller and the first battery to the charger. I am planning to use DPDT relay for the switching operations. Is this practically possible? If yes, can I use the same microcontroller for the switches or do I need another one?
Thank you so much ( The idea seems complicated, sorry )
HaG
By the way, the battery wiring, voltage and ID are wrong in my diagram, because I didn't realize your first example was a complete fiction.
So please explain what battery connects to what device, and how, then we can refine it. But the relay transistor drive will remain similar or the same.
Please, stop calling the relay a "switch". It will confuse everyone. Also please tell us which power source the relay is supposed to be powered from.
This might be a dumb question, Cant I power the relay from the MCU? Do I need to power it from the Power Providing Unit? I am planning to use the Arduino relay board