Sei sulla pagina 1di 6

And Draw Power

nes of payphones, here is an automatic coin collection device for payloads like lamps and air-conditioners to

rivate electrical line. It is useful for paying guest houses, lodges and trains.

kes use of a sensor for detecting the coin and a microcontroller that counts the coins and shows the count on a 7-se e the load switch provided in the circuit, the relay energises to connect the load and the coin count on display starts count decrements to zero, the relay de-energises to disconnect

e put-coin-and-draw power circuit. It comprises microcontroller AT89C2051 (IC2), dual timer NE556 (IC1), 7-se C3), regulators 7805 and 806 (IC4 and IC5), and a few discrete

Fig.1:Put-coin-and-draw-power circuit

s the light source for light-dependent resistor LDR1, which is made of cadmium sulphide and acts as the coin detect ent through LED1. The light from LED1 falls continuously on LDR1, whose resistance decreases with increase in th

l monolithic timing circuit is a highly stable controller capable of producing accurate time delays. It is basically a dua de of operation, the time is precisely controlled by an external resistor and capacitor. The two timers operate indepen only VCC and ground. The circuits may be triggered and reset on falling waveforms. One timer of NE556 is used for

ed at trigger pin 6 of IC1, offers low resistance when light is falling on it and its trigger input goes low to set the flip pin 5 of IC1

Fig.2:Power supply circuit

inserted, it interrupts the light falling on LDR1, and trigger pin 6 of IC1 goes high to make output pin 5 low. This high by the microcontroller to display the coin

AT89C2051 is the heart of the circuit. It is a low-voltage, high-performance, 8-bit microcontroller that features 2 kB

15 input/output (I/O) lines, two 16-bit timers/counters, a five-vector two-level interrupt architecture, a full-duplex gue comparator, on-chip oscillator and clock circuitry. A 12MHz crystal is used for providing the basic clock frequen as soon as RST goes high. Holding RST pin high for two machine cycles, while the oscillator is running, resets the de from resistor R6 and capacitor C7. Switch S1 is used for manual reset.

output pin 5 of NE556 is interfaced with port pin P3.0 of the microcontroller (IC2). The microcontroller program counts and the count is shown on a 7-segment display.

D inputs of 7-segment decoder IC3 are interfaced with port pins P1.4 through P1.7 of IC2. IC3 accepts the BCD inp the 7-segment display. Coin detection is also indicated by LED2, which is connected to pin P3.7 of the m

the coin, close load switch S2. Port pin P1.1 of the microcontroller goes high to drive transistor T2 into saturat d LED3 glows to indicate that the load is now switched on. D1 acts as a free-wh

awn by the load (pin P1.1 high), the count shown on the 7-segment display (DIS1) decrements. Port pin P1.0 of the cond timer of NE556. When trigger pin 8 of NE556 goes low, its output pin 9 goes high for a time period decided by p The high output of the timer is inverted by transistor T1 and fed to port pin P3.2 of the microcontroller (pin 6 of I ments by 1 after port pin P3.2 of the microcontroller receives five pulses (indicated by glowin

e power supply circuit. The 230V AC mains is stepped down by transformer X1 to deliver the secondary output of 9V tput is rectified by a full-wave bridge rectifier comprising diodes D2 through D5, filtered by capacitor C8 and then re 7806 (IC5). Capacitors C9 and C10 bypass the ripples present in the regulated 5V and 6V power supplies. LED5 acts ndicator and resistor R25 limits the current through

n as PDF) and its component layout

single-side PCB for the put-coin-and-draw-power circuit is shown in Fig. 3(View the circuit on the PCB and check for proper connections using a multimeter.

ong, hollow, rectangular cuboid of plastic in which a coin can be inserted easily. Drill holes on its opposite sides at the 1 such that these are placed face to face. Align LED1 and LDR1 such that light from LED1 falls on LDR1 directly. C mbly to maintain darkness, leaving only coin-insertion and coin-release holes open. Extend LED1 and LDR1 from the P wires.

inserted into the coin-collection assembly, light falling on the LDR is blocked as the coin comes in between LED1 an resistance in the absence of light and this is detected by one timer of NE556 and indicate

up to nine coins and this count is displayed on DIS1. When you close the load switch S2, the relay energises and the ayed on DIS1 starts decrementing after LED4 blinks five times. The relay de-energises to turn the load off when the c mes zero. Load-on duration can be adjusted using preset VR1. Never insert the coin without pressing res

gram is written in Assembly language and assembled using Metalinks ASM51 assembler, which is freely available on t source program has been well commented for easy understanding. It works as per the flow-chart shown in Fig.5.

Fig.5: Flow-chart of the microcontroller program

am initialises the microcontrollers registers, then it checks whether memory register is zero. If register r3 is zero, it proceeds to count update and display. Coin-counter register r3 is incremented by five after insertion of one coin. d, port pin P3.1 goes low. Port pin P1.1 goes high to energise relay RL1. Port pin P3.2 goes low five times then display

one. and other relevant

the source code mag.com/admin/issuepdf/PutCoin andDrawPower.zip

inShare on facebookShare on twitterShare on emailMore Sharing Services7

omment | 0 Comments

7 1 1

azines tronics for You UX for You s for You tronics Bazaar

News Verticals Educational Instit Electronics EFY Techcenter Infotech Kitsnspares.com Linux & Open Source Consumer Electronics Science & Technology BPO Copyright 2012 EFY Enterprises Pvt. Ltd. All rights reserved. whole or in part in any form or medium without written permission is prohibited. Usage of the content from the web site is s and Conditions

Portals electronicsforu.com efytimes.com bpotimes.com linuxforu.com

Directories Events Electronics Annual EFY EXPO Guide EFY Awards EduTech Expo OSIWEEK Expo

Potrebbero piacerti anche