Using all the techniques we have discussed so far I have
created a very small design of a switch which can be programmed to operate in
four different modes. By modes what I meant was that I can pre-define and hard-code four time values to the design.
- Design in the simulation level.
2. Developed the program that will do the
controlling.
3. Testing it in a breadboard using an LED as the
substitute for the AC bulb.
The description of the tagged video,
When I press the first button i change the mode of
operation. The second button will activate the mode of operation.
The first LED will indicate the current mode and the second
LED can be replaced by an actual relay and an AC bulb or a switch.
4. Assumed that the relay is working. :D
5. Designing the PCB and printing it on an A4 in
laser.
6. Etching the design.
7. Fabricating the design.
In this picture you can see the AC wire
connector, AC switch, Fuse, Battery connector, Switches to change the mode and finally the indicator bulb.
Here you can see the ICSP port available in
the board to change the program of the microcontroller whenever we wish.
That concludes the switch design.
Thank you.