You are on page 1of 5



ON PUT COIN AND DRAW POWER Submitted in Partial Fulfillment for the Award of Bachelor of Technology Degree Of Rajasthan Technical University, KOTA

2012-2013 Guided By: Ms. Anshu Toshniwal Ms. Monika Surana Submitted By: Rahul Garg Sanatan kumar

(EC/09/58) (EC/09/15)


Built on the lines of payphones, this is an automatic coin collection device for payloads like lamps and air-conditioners to be used on a private electrical line. It is useful for paying guest houses, lodges and trains. The system makes use of a sensor for detecting the coin and a microcontroller that counts the coins and shows the count on a 7-segment display. When the load switch provided in the circuit is closed, the relay energizes to connect the load and the coin count on display starts decrementing. When the count decrements to zero, the relay de-energizes to disconnect the load.

Circuit Diagram:

Power supply circuit

Components required:
1. 2. 3. 4. 5. 6. 7. 8. 9. IC1 : NE556 dual timer IC2 : AT89C2051 microcontroller IC3 : CD4511 7-segment decoder / driver IC4 : 7805 5V Regulator IC5 : 7806 6V Regulator T1, T2 : BC337 npn transistor D1-D5 : 1N4007 rectifier diode LED1-LED5 : 5 mm LED DIS1 : LTS543 common-cathode , 7 segment display

Resistors (all - watt, +-5% carbon) : 10. R1 : 220-ohm 11. R2 :33-kilo-ohm 12. R3 : 220-kilo-ohm 13. R4, R7, R9, R25 : 330-ohm 14. R5, R8 : 1-kilo-ohm 15. R6 : 10-kilo-ohm 16. R10-R16 : 270 ohm 17. R17-R24 : 4.7 kilo-ohm

Working and physical feasibility:

When a coin is inserted, it interrupts the light falling on LDR1, and trigger pin 6 of IC1 goes high to make output pin 5 low. This high-to-low pulse is used by the microcontroller to display the coin count. Microcontroller AT89C2051 is the heart of the circuit. It is a low-voltage, high-performance, 8-bit microcontroller that features 2 kB of Flash, 128 bytes of RAM, 15 input/output (I/O) lines, two 16-bit timers/counters, a five-vector two-level interrupt architecture, a full-duplex serial port, a precision analogue comparator, on-chip oscillator and clock circuitry. A 12MHz crystal is used for providing the basic clock frequency. All I/O pins are reset to 1 as soon as RST goes high. Holding RST pin high for two machine cycles, while the oscillator is running, resets the device. Power-on reset is derived from resistor R6 and capacitor C7. Switch S1 is used for manual reset. Coin-detection output pin 5 of NE556 is interfaced with port pin P3.0 of the microcontroller (IC2). The microcontroller program counts the number of coins inserted and the count is shown on a 7-segment display. The A through D inputs of 7-segment decoder IC3 are interfaced with port pins P1.4 through P1.7 of IC2. IC3 accepts the BCD input and decodes it to show on the 7-segment display. Coin detection is also indicated by LED2, which is connected to pin P3.7 of the microcontroller. After inserting the coin, close load switch S2. Port pin P1.1 of the microcontroller goes high to drive transistor T2 into saturation. Relay RL1 energizes and LED3 glows to indicate that the load is now switched on. D1 acts as a free-wheeling diode. As power is drawn by the load (pin P1.1 high), the count shown on the 7segment display (DIS1) decrements. Port pin P1.0 of the microcontroller triggers the second timer of NE556. When trigger pin 8 of NE556 goes low, its output pin 9 goes high for a time period decided by preset VR1 and capacitor C4. The high output of the timer is inverted by transistor T1 and fed to port pin P3.2 of the microcontroller (pin 6 of IC2). The count display decrements by 1 after port pin P3.2 of the microcontroller receives five pulses (indicated by glowing of LED4). Fig.2 shows the power supply circuit. The 230V AC mains are stepped down by transformer X1 to deliver the secondary output of 9V, 500 mA. The transformer output is rectified by a full-wave bridge rectifier comprising

diodes D2 through D5, filtered by capacitor C8 and then regulated by ICs 7805 (IC4) and 7806 (IC5). Capacitors C9 and C10 bypass the ripples present in the regulated 5V and 6V power supplies. LED5 acts as the power-on indicator and resistor R25 limits the current through LED5.

APPLICATIONS: The system is small, simple, cost-effective and good for

industrial instrumentation.

The system uses less power to control.