Arduino Motor Control and Universal Timer
by Moses_94_110 in Circuits > Arduino
55 Views, 0 Favorites, 0 Comments
Arduino Motor Control and Universal Timer
These are electronic diagrams and descriptions that you can use to make two different devices. 1- a programable timer 2- a motor control device both are using an Arduino mini and a very simple program. you can copy the program that has 4 lines and enter your timing and it is done. program included. here you see two photos. one has a remote control (it is for controlling the HVAC machine airconditioning machine)--- the other one is simpler, it is controlling a water pump (for another HVAC machine)
Supplies
(1)- you need a capacitor - 330 microfarad 12 volts (2)- an Arduino mini and a pc to connect it to a USB port and program it. you can download its software free from the Arduino website (3)- a couple of diodes (4)- a motor control IC (L293 D) (5)- two relays 12 volts (6)- two power supplies, one for 5 volts to feed the Arduino and another one 12 volts for relays. I used a computer power supply. it has many voltages. I used its 12 and 5. you need to connect the on/off wire to the ground, so, it turns on. it is the green wire. (6) - these circuits are turning on and off a HVAC machine and another 220 volt water pump motor. You do not need them. you can turn on/off any 220 volt device. make sure your relay can handle the 220V.
What These Circuits Do?
Here you see the orange computer case. inside the case, there are two computers. one has 5 GPUs and another one has 1 GPU. These are mining machines. they mine ETH, and I convert it to BTC and keep the BTC. these GPUs create a lot of heat. the smaller one sometimes does mining and sometimes is used to train an ANN network for the brain of my robot. In this case, it does not eat too much electricity. When it is not doing training the neural network and joins the mining force, it creates a lot of heat. I have two HVAC machines to cool these people. one has two parts, an internal unit, and an external unit. the internal unit of the air conditioning machine is inside the case. it has a remote control one of the Arduino circuits is turning on and off that air conditioning machine. It turns it on for 15 min and turns it off for 15 seconds in a loop. It is doing it by pushing the on/off button of the remote control. the next circuit is turning on and off a water pump. the water pump is collecting the condensation water from the air and sends it to a small container, so I empty it 2-3 times a day. this water pump is for the second AC machine. Tee second AC machine is external. all its parts are in one big black case. it has those orange hoses. One is sending the hot air out. one is sending the cold air to the case. and input of the air is from the side of the metal box. this guy is pushing 40 cubic meters of cold air to the case and generates 20 liters of condensation water every day. sometimes HVAC 1 is, sometimes HVAC 2 is on. the result is that the temp of my GPUs is always lower than 60 degrees C.
Electronic Circuits
Here you see two diagrams. One is for changing the on/off switch function to a push-button switch function. Arduino circuit one is using two relays. one of them is on/off that is controlled by the Arduino. When this relay is on, it triggers the second relay to do one push-button. this is pushing the remote control on/off switch. I opened the remote and soldered two wires to its PCB under the on/off button. this is connected to the second relay. this was the simplest method. I could turn on and off the main switch of the HVAC, but that is not a good idea, because it will push the compressor to go nuts every time. turning it on and off by remote is practical, while the compressor (in the external unit of the AC machine) is always doing its gig according to timing and temperature signals of its own circuit.................................the next diagram is for the motor control IC. the IC is turning on and off the first really. so, it is eating 12 volts and turning on and off a 12 volts relay, and it gets its trigger from the Arduino......the relay is die-hard and can turn on and off the 220-volt water pump motor. I have put two diodes on the path of 12 volts and 5 volt that comes out of the computer power supply and go to the board, so these voltages do not go backward and make a mess for the Arduino. power comes from the computer power supply, 12 volts for relays and 5 volts for the Arduino.
Software
I assume you can connect the Arduino to the USB port to your PC. When you have done it right and the main software that you downloaded from their website works well, then just run it and type these 4 lines. very simple. upload the program to the thing and it works. The timing is in milliseconds. 1 min = 60 sec = 60,000 millisecond and so on.
Conclusion
(1)- a Happy computer is a cold computer. Make sure if you ADOPTED a computer for any purpose, keep her COLD and HAPPY. Otherwise, when robots take over the world you will receive your reward/punishment accordingly. (2)- If you know a bit about electronics just by looking at those diagrams you can make your Universal timer and motor control circuits easy. If you have questions, you can use the form I put on the (pig rescue page) of the website in (happy tiger image) (3)- have a happy time, Moses 20 Dec 2021