Arduino Timing Switch Circuit

by Magnum Technical Academy in Circuits > Arduino

1028 Views, 3 Favorites, 0 Comments

Arduino Timing Switch Circuit

vlcsnap-error519~2_1593721861469.jpg
In this instruction, we will be looking at the third Topology of Developing a Timing Switch Circuit.

INTRODUCTION

IMG_20200702_123654_864~2.jpg
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

Video Presentation

https://www.youtube.com/watch?v=qjt35CDRxYk&lc=UgzKNzIQNWLuGFW-osJ4AaABAg

OVERVIEW

IMG_20200519_130436_860~2.jpg
IMG_20200702_124405_226~2.jpg
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.

SCHEMATIC DIAGRAM

arduino time delay circuit.jpg
The circuit diagram is evidently presented...

HARDWARE IMPLEMENTATION

IMG_20200519_123537_260~2.jpg
We will implement the presented schematics,by first sorting and developing the hard ware.

COMPLETION

IMG_20200702_124350_156~2.jpg
After the soldering,the board should look like this.

WRITING THE PROGRAM

Screenshot_20200703-085747~2.png
Next, we move to the sketch,we will plug the arduino board to computer and open the arduino I D E.

SKETCH

Screenshot_20200703-083941_1593762017357.jpg
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.

TEST

IMG_20200702_124006_372.jpg
IMG_20200702_123654_864~2.jpg
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.

CALL TO ACTION

vlcsnap-error294.png
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.