Arduino Timing Switch Circuit
by Magnum Technical Academy in Circuits > Arduino
1028 Views, 3 Favorites, 0 Comments
Arduino Timing Switch Circuit
In this instruction, we will be looking at the third Topology of Developing a Timing Switch Circuit.
INTRODUCTION
Controlling time based electronic and mechanical system,can be efficiently done using the arduino board.
We have taken through this course to explain and demonstrate,how timing can be achieved.
We stipulated three main topology of achieving timing functions,which includes,
- Passive electronics topology
- Integrated circuit topology and
- Micro-controller topology
We have taken through this course to explain and demonstrate,how timing can be achieved.
We stipulated three main topology of achieving timing functions,which includes,
- Passive electronics topology
- Integrated circuit topology and
- Micro-controller topology
Video Presentation
https://www.youtube.com/watch?v=qjt35CDRxYk&lc=UgzKNzIQNWLuGFW-osJ4AaABAg
OVERVIEW
This instruction covers the last topology which is the micro-controller based topology,where in this case;we are using the ATmega328 chip, commonly found in arduino-uno board.
If you have not watched the video of the first and second topology,
We recommend that you do so,in order to grasp the basis of timing in these various topology.
Back to the arduino, in achieving timing in switching either ON or OFF any load,which in this case was a simple incandescent bulb. We will need a physical electronics hardware,and a sketch,which we write shortly.
If you have not watched the video of the first and second topology,
We recommend that you do so,in order to grasp the basis of timing in these various topology.
Back to the arduino, in achieving timing in switching either ON or OFF any load,which in this case was a simple incandescent bulb. We will need a physical electronics hardware,and a sketch,which we write shortly.
SCHEMATIC DIAGRAM
The circuit diagram is evidently presented...
HARDWARE IMPLEMENTATION
We will implement the presented schematics,by first sorting and developing the hard ware.
COMPLETION
After the soldering,the board should look like this.
WRITING THE PROGRAM
Next, we move to the sketch,we will plug the arduino board to computer and open the arduino I D E.
SKETCH
We define the pin out used.
Moving to the set up function,
We set up the pins for which is either input or output pin.
The blue pin is the input,and the white pin is the output pin.
We set the initial state of the hardware to ACTIVE.
Moving to the loop function,
We will be making decision using the “if” statement.
If the switch is pressed, then the arduino should run the code below.
The code below,will have the hardware go LOW, and will remain low,for 10 seconds,and after that, it will return HIGH.
Completing the sketch, we verify it. Once this is done, we upload to the arduino board.
Moving to the set up function,
We set up the pins for which is either input or output pin.
The blue pin is the input,and the white pin is the output pin.
We set the initial state of the hardware to ACTIVE.
Moving to the loop function,
We will be making decision using the “if” statement.
If the switch is pressed, then the arduino should run the code below.
The code below,will have the hardware go LOW, and will remain low,for 10 seconds,and after that, it will return HIGH.
Completing the sketch, we verify it. Once this is done, we upload to the arduino board.
TEST
We will test the system now, connecting the wires and the entire system as indicated from the schematic diagram.
Completing the set up, we plug the system to electricity.
Here ,we have the bulb glowing, and once the button is pressed,the circuit deactivates itself and wait till 10 seconds.
This cycle repeats itself,as long as you keep triggering the circuit,using the push button.
You can as well,adjust the time,by altering the delay value. Also,you can chose to either ON or OFF a load,and this is dependent on your relay configuration.
Completing the set up, we plug the system to electricity.
Here ,we have the bulb glowing, and once the button is pressed,the circuit deactivates itself and wait till 10 seconds.
This cycle repeats itself,as long as you keep triggering the circuit,using the push button.
You can as well,adjust the time,by altering the delay value. Also,you can chose to either ON or OFF a load,and this is dependent on your relay configuration.
CALL TO ACTION
Leave a comment below,and tell us what you will try to configure.
Remember to check the previous topology after now.
Finally, check out our Facebook page and join our community,the links, you will find at the video description.
Remember to subscribe to our channel,and click the bell icon to get personally notified once we make any upload.
See you in the next project.
Remember to check the previous topology after now.
Finally, check out our Facebook page and join our community,the links, you will find at the video description.
Remember to subscribe to our channel,and click the bell icon to get personally notified once we make any upload.
See you in the next project.