Time selectable domestic iron timer

Introduction

The project which is going to describe here is Time selectable domestic iron timer. Iron is an electric equipment which use to process of ironing and it is a very normal day today work. Forget to switch off the iron also very common bad habit corresponding to this process. So this is a problem and Time selectable domestic iron timer is a good solution to this particular problem. The basic concept of a time selectable domestic iron timer is to use a set/reset, up, down button to set the time according to user purposes and it automatically disconnects from the main power supply after the relevant time period. So the user can set the timer before ironing and doesn’t need to pay a big attention for switching off the iron. As the relevant time passes out it will automatically disconnect from the main power supply. To create time use push buttons and all the changes that corresponding to the input and output display on the LCD display. To create power cut use relay circuit mechanism. The main component that use to built this project is PIC16F877A micro-controller. ORCAD software leads the hardware construction and MPLAB IDE use for programming. WINPIC 800 acts as programming compiler.

 

 

High level Design

The above introduction explains what the basic concept of this project. To handle this concept have to construct four circuits corresponding to the project.

 

  1.  Main circuit
  2. Switching circuit
  3. LCD display circuit
  4. Power cut circuit
  5. Power supply circuit


Main circuit

Main circuit means the motherboard of the project. If it tell in another way it is the heart of the Time selectable domestic iron timer. To operate this wants 5 V and it give from the power supply. Main circuit controls all other three circuits.

     Switching circuit

This daughter card uses to control the time. For this circuit basically uses four push buttons. That are used for four various operation.1.  Select
2. Increase
3. Decrease
4. Start

        LCD display circuit

Use 2×16 LCD display circuit and all the changes corresponding to the input and output are display on this screen.

* Input- Select position, Select time
* Output- Down count, Whether the device is on or off

Mainly whole the project depends on this LCD cord. LCD is a very complex electric device which has a predefined memory. So it is difficult to work with LCD ram memory than other memories. As this 2×16 can change two lines.

    Power cut circuit

For this daughter card basically use transistor, buzzer, diode, and relay. When the down-count start relay connect and iron also connect. When the down-count stop relay  disconnect and iron also disconnect. Timing process over signal introduce by buzzer and it is a audio signal .

       Power supply circuit

Power supply used to convert 230 V to 5 V. As iron operate from 230 V it was necessary to work with 230 V.  Normally motherboard wants 5 V to operate. So power supply gives input to the motherboard. This unit has transformer to convert 230 V to 9 V, four diode for rectifier, IC 7805 for regulation and 1000µF,1µF,0.1µF capacitors for smoothing.

       Port that use corresponding to the circuits

 Competent  Port
 SelectSW  RA0
 SelectSW  RA1
 DecreaseSW  RA2
  StartSW  RA3
  RS  RC0
  E  RC2
 lcd pin11  RB0
 lcd pin12  RB1
 lcd pin13  RB2
 lcd pin14  RB3
 Relay  RD0
 Buzzer  RD1

     Hardware construction

        Hardware construction for LCD

Normally LCD has an initial construction. That is six port of LCD directly connect to the PIC 16F877A.Following is the schematic diagram corresponding to the LCD.

        Hardware construction for power cut circuit

For this construction use NPN transistor and it uses as the switch here. When port is 0 V it act as open switch and when port is 5 V it act as close switch.

Relay is the main component corresponding to this daughter card. A relay is an electrically operated switch. Current flowing through the coil of relay creates a magnetic field which attracts a lever and changes the switch contacts. The coil current can be on or off so relays have two switch positions and most have double throw (changeover) switch contacts.

 

Relays allow one circuit to switch a second circuit which can be completely separate from the first. According to iron timer a low voltage battery circuit can use a relay to switch a 230 V AC mains circuit. There is no electrical connection inside the relay between the two circuits; the link is magnetic and mechanical.

 

The coil of a relay passes a relatively large current, typically 30mA for a 12V relay, but it can be as much as 100mA for relays designed to operate from lower voltages. Most ICs (chips) cannot provide this current and a transistor is usually used to amplify the small IC current to the larger value required for the relay coil.

 

As relay has a heating process relay coils produce brief high voltage ‘spikes’ when they are switched off. That is back electromagnetic force and this can destroy transistors and ICs in the circuit. To prevent damage must connect a protection diode across the relay coil.

        Hardware construction for switches circuit

This is full down circuit. So plug out is 5 V and plug is 0 V.

        Hardware construction for power supply

This use to convert 230 V to 5 V and this 5 V is the input to the mother board.

        Software handling

To construct the hardware of this system use ORCAD. For design the schematic diagram use CAPTURE CIS and LAYOUT PLUS use to construct PCB layout.

Programming part is handled by MPLAB IDE and WINPICC 800 use as program compiler.

           Results

The whole process of this project  are control by four buttons.

First on for position select button. There are two position can change and it is for minutes. So user can go to correct position that he wants, using this first button.

Second one for increase position value

             Third one for decrease position value. This can do for one of two positions.
             When fourth button select start down count and at this position iron operate.
              After this time passe iron disconnect and sound on.
Following is the photograph during the testing period of iron timer.

According to this I try to change four position. Now it change two position as the difficulty of code.

YouTube Video

        Further improvement

Beginning of this project it is plan to change time in four position. Now it change to two position. So for further improvement can change time in four position. Can use another display which can define function. And also can use timer function in the 16f877a micro-controller instant of delay function. This iron timer can modify with very user friendly way and small. So it will be portable and attractive.

        Appendix

        Component list

Micro controller -16F877A
Crystal – 4 MHz
LCD- 2×16
Relay- JQC-3F(T73) -6 V
Buzzer  -6 V
Transistor -NPN
Transformer – 230 V  to 9 V
Diode -1N4007
Push Button
Resistor-  10 KΩ
Resistor  -2.2 KΩ
Variable resistor
Regulator -7805
Capacitor  -1000 µF
Capacitor  -1 µF
Capacitor – 0.1 µF
40 pin IC base
Connector port
Jumper wires
Ribbon wires

        Photos

      LCD display                                                                                                          Power supply
                   Switching circuit                                                                                                  Power cut

Whole circuit

        References

[1]   16f877a DATA SHEET.
[2] [Online]. http://www.google.lk/search?q=relay+working+principle&hl=en&prmd=imvns&source=lnms&tbm=isch&ei=UTFGT_v8GrGkiAeVh-CdDg&sa=X&oi=mode_link&ct=mode&cd=2&ved=0CA8Q_AUoAQ&biw=1280&bih=619
[3]   Relay. [Online]. http://www.kpsec.freeuk.com/components/relay.htm