SlideShare uma empresa Scribd logo
1 de 19
Page 1
OVERVIEW


                                      Today, manual flush
        In manual flush               systems have been
systems, the user presses a              replaced with a
button, which opens a flush        sensor-operated system
    valve allowing mains-         that automatically flushes
  pressure water to flow into      the fixture when the user
 the bowl, or sometimes the               departs. The
user presses directly a flush        microcontroller-based
  lever (a handle connected         automatic flush system
to a flushometer). The valve        presented here uses an
     contains a pneumatic        infrared sensor to detect a
   mechanism that closes it          user approaching the
      after a preset time.      fixture, then it waits until the
                                          user departs.




                                                               Page 2
CONTd.

                                   A solenoid is used to
                                   actuate the flush from
           Installation of        a 6V power supply with
                                   battery backup inside
                this                 the unit that also
          microcontroller           powers the sensor
                                     circuit. This flush
         based automatic               system is fully
          flush system is             controlled by a
           shown in Fig.              microcontroller.




                  It also flushes before
                  the person departs if
                  the person is present
                     for more than the
                     preset time (more
                      than 5 minutes).

                                                            Page 3
Page 4
contd.
                    The IR transmitter LED
                      and the IR receiver
                  modules are mounted side
                  by side such that when the
                     user approaches the
                         mechanism,




                                        the IR receiver
    A solenoid operated
                                      module receives the
    water valve is used in
                                     IR signal reflected off
        the system.
                                          the person.




                                                               Page 5
Circuit description:




                                              The AT89C2051 is
                                                      an 8-bit
                                             microcontroller with
                       It is built around
                                              2 kB of flash based
 Below shows the        Atmel 89C2051
                                                     program
   circuit of the     microcontroller that
                                              memory,128 bytes
microcontroller-bas        controls the
                                                    of RAM, 15
  ed flush control          process of
                                                   input/output
      system.            automatically
                                                lines, two 16-bit
                      flushing the toilet.
                                             timers/counters, on-
                                               chip oscillator and
                                                  clock circuitry.



                                                         Page 6
Page 7
circuit of the microcontroller-based flush control system.
Page 8
CONTD.




     A 6MHz crystal is used for
  providing clock. Port pins P1.0
                                        All the input/output (I/O) pins are
through P1.4 of the microcontroller
                                       reset to ‘1’ as soon as RST (pin 9)
    are connected to buffers N1
                                        goes high on pressing switch S3.
through N5 of CD4050 via 10-kilo-
ohm pull-up resistors, respectively.




                                                                   Page 9
Contd.             Holding the RST pin high for two
                  machine cycles while the oscillator
                     is running resets the device.
                    Power-on reset is achieved by
                    capacitor C2 and resistor R9.




Resistor R10 limits the current       Pin 12 (P1.0) of microcontroller IC2
 through the LEDs. Port pins               provides the 38kHz clock
P1.1, P1.2, P1.3 and P1.4 are         frequency, which is buffered by N1
     used for indication of            to drive the two parallel IR-LEDs.
   standby, alert, active and         These IR-LEDs act as the infrared
      flush, respectively.                     signal transmitter.
                                                                 Page 10
Contd.                         Port pin P1.4 also
                                drives relay RL1
                            through transistor T1.
                              Diode D5 acts as a
                             free-wheeling diode.




    INT0 (pin 6) of the
                                                         The solenoid coil
     microcontroller is
                                                         operated off 6V is
  pulled up with resistor
                                                         connected to the
  R3 and connected to
                                                       contacts of relay RL1.
  pin 3 of TSOP1738 IR
     receiver module.




                              External interrupt 0
                               (INT0) is used to
                            receive the reflected IR
                                     signal.
                                                                            Page 11
Contd.                    Pin 2 of TSOP1738 is
                         pulled high with resistor
                             R2, while pin 1 is
                                grounded.




                                                 In the IR receiver module
                                                TSOP1738, the PIN diode
  The demodulated output
                                                  and the preamplifier are
  from the receiver module
                                                  assembled on the lead
 can be directly decoded by
                                                   frame, and the epoxy
     the microcontroller.
                                                package is designed as an
                                                          IR filter.


                                                                       Page 12
Contd.


   An actual-size,
single-side PCB for
the microcontroller-
  based automatic
  flush system is
shown in Fig. below
with its component
       layout.




                       Page 13
Pcb & its component layout   Page 14
The software:



   The software for flush       First, instruct the compiler to
 system is written in ‘Basic’       use 89C2051.dat for
  language and compiled         microcontroller AT89C2051
using Bascom-8051 version.         by statement ‘$regfile.’
• Which we have used
  here, is a demo version of
  Bascom-8051.




                                                       Page 15
Contd.
                                Then declare the
         After this, instruct
                                  variables as
          the compiler to
                                 bits, bytes and
            override the
                                 words. Initialize
         crystal frequency
                                port-1 to ‘0’ and
         options setting by
                                   port 3 to ‘1.’
             statement
                                 (Port-3 acts as
            ‘$crystal.’ T
                                 the input port.)



          Now write the
             subroutine
            ‘Fn38K6’ to            Enable the
         generate 38kHz          interrupt after
           frequency for          initialization.
         transmission of
          the IR signal.

                                                     Page 16
Contd.




  Standby LED          When ‘INT0’ goes
                                            When the person
   glows when             low, i.e., the
                                             moves away (no
external interrupt      transmission is
                                            interrupt) within 5
     ‘INT0’ is         interrupted, alert
                                               minutes, the
high, i.e., there is   LED glows. After
                                            system flushes for
no interruption of     5 seconds, active
                                               10 seconds.
IR transmission.         LED lights up.




                                                        Page 17
http://www.mcselec.c
            om/index.php?option
            =com_content&task=
            view&id=190&Itemid
            =57




reference



                         Page 18
Page 19

Mais conteúdo relacionado

Mais procurados

D1 be29c1d01
D1 be29c1d01D1 be29c1d01
D1 be29c1d01malae
 
Mc 33078n op amp dual lo noise
Mc 33078n op amp dual lo noiseMc 33078n op amp dual lo noise
Mc 33078n op amp dual lo noisevakumtube
 
Wireless Gesture Controlled Tank Toy- Transmitter
Wireless Gesture Controlled Tank Toy- TransmitterWireless Gesture Controlled Tank Toy- Transmitter
Wireless Gesture Controlled Tank Toy- TransmitterNeeraj Purohit
 
DC 340 HS Compound Reco in relays - Project Sales Corp
DC 340 HS Compound Reco in relays - Project Sales CorpDC 340 HS Compound Reco in relays - Project Sales Corp
DC 340 HS Compound Reco in relays - Project Sales CorpProject Sales Corp
 
04 Arduino Peripheral Interfacing
04   Arduino Peripheral Interfacing04   Arduino Peripheral Interfacing
04 Arduino Peripheral InterfacingWingston
 
Ic apps lab_manual_jwfiles
Ic apps lab_manual_jwfilesIc apps lab_manual_jwfiles
Ic apps lab_manual_jwfilesVijay Kumar
 
Intelligent energy coservation system
Intelligent energy coservation systemIntelligent energy coservation system
Intelligent energy coservation systemvyomesh upadhyay
 
Lic lab manual
Lic lab manualLic lab manual
Lic lab manualAJAL A J
 
M62502FPのデータシート
M62502FPのデータシートM62502FPのデータシート
M62502FPのデータシートTsuyoshi Horigome
 
Arduino Severino Serial Board TPS-00759 www.onlineTPS.com
Arduino Severino Serial Board TPS-00759 www.onlineTPS.comArduino Severino Serial Board TPS-00759 www.onlineTPS.com
Arduino Severino Serial Board TPS-00759 www.onlineTPS.comTotal Project Solutions
 
Arduino projects & tutorials
Arduino projects & tutorialsArduino projects & tutorials
Arduino projects & tutorialsAnshu Pandey
 
Electronic security system
Electronic security systemElectronic security system
Electronic security systemviv3ksharma
 
Ee660 ex 27_presentation_bi_cmos_comparisons_wanderlink_glove_all
Ee660 ex 27_presentation_bi_cmos_comparisons_wanderlink_glove_allEe660 ex 27_presentation_bi_cmos_comparisons_wanderlink_glove_all
Ee660 ex 27_presentation_bi_cmos_comparisons_wanderlink_glove_allLoren Schwappach
 

Mais procurados (20)

D1 be29c1d01
D1 be29c1d01D1 be29c1d01
D1 be29c1d01
 
Mc 33078n op amp dual lo noise
Mc 33078n op amp dual lo noiseMc 33078n op amp dual lo noise
Mc 33078n op amp dual lo noise
 
Wireless Gesture Controlled Tank Toy- Transmitter
Wireless Gesture Controlled Tank Toy- TransmitterWireless Gesture Controlled Tank Toy- Transmitter
Wireless Gesture Controlled Tank Toy- Transmitter
 
DC 340 HS Compound Reco in relays - Project Sales Corp
DC 340 HS Compound Reco in relays - Project Sales CorpDC 340 HS Compound Reco in relays - Project Sales Corp
DC 340 HS Compound Reco in relays - Project Sales Corp
 
Digital stop watch
Digital stop watchDigital stop watch
Digital stop watch
 
04 Arduino Peripheral Interfacing
04   Arduino Peripheral Interfacing04   Arduino Peripheral Interfacing
04 Arduino Peripheral Interfacing
 
K 36 rev-l
K 36 rev-lK 36 rev-l
K 36 rev-l
 
Ic apps lab_manual_jwfiles
Ic apps lab_manual_jwfilesIc apps lab_manual_jwfiles
Ic apps lab_manual_jwfiles
 
Intelligent energy coservation system
Intelligent energy coservation systemIntelligent energy coservation system
Intelligent energy coservation system
 
Lic lab manual
Lic lab manualLic lab manual
Lic lab manual
 
M62502FPのデータシート
M62502FPのデータシートM62502FPのデータシート
M62502FPのデータシート
 
Arduino Severino Serial Board TPS-00759 www.onlineTPS.com
Arduino Severino Serial Board TPS-00759 www.onlineTPS.comArduino Severino Serial Board TPS-00759 www.onlineTPS.com
Arduino Severino Serial Board TPS-00759 www.onlineTPS.com
 
Lica 3rd chapter slides
Lica 3rd chapter slidesLica 3rd chapter slides
Lica 3rd chapter slides
 
Arduino projects & tutorials
Arduino projects & tutorialsArduino projects & tutorials
Arduino projects & tutorials
 
Mp8126 r1.03 1384507
Mp8126 r1.03 1384507Mp8126 r1.03 1384507
Mp8126 r1.03 1384507
 
Electronic security system
Electronic security systemElectronic security system
Electronic security system
 
000744
000744000744
000744
 
Lpc662
Lpc662Lpc662
Lpc662
 
Ee660 ex 27_presentation_bi_cmos_comparisons_wanderlink_glove_all
Ee660 ex 27_presentation_bi_cmos_comparisons_wanderlink_glove_allEe660 ex 27_presentation_bi_cmos_comparisons_wanderlink_glove_all
Ee660 ex 27_presentation_bi_cmos_comparisons_wanderlink_glove_all
 
Shadow alarm
Shadow alarm Shadow alarm
Shadow alarm
 

Semelhante a Automatic flush system circuit and working

ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYEldhose George
 
Water level controller
Water level controllerWater level controller
Water level controllerAmadi Uchenna
 
Prince jai nproject report
Prince jai nproject reportPrince jai nproject report
Prince jai nproject reportPrince Dungarpur
 
Automatic room light contoller without microcontroller
Automatic room light contoller without microcontrollerAutomatic room light contoller without microcontroller
Automatic room light contoller without microcontrollerDeepak Yadav
 
Room illumination
Room illuminationRoom illumination
Room illuminationlalmo
 
Wireless greenhouse environment monitoring through sensors
Wireless greenhouse environment monitoring through sensorsWireless greenhouse environment monitoring through sensors
Wireless greenhouse environment monitoring through sensorsSudhanshu Tripathi
 
3) Remote Controlled Fan Regulator
3) Remote Controlled Fan Regulator3) Remote Controlled Fan Regulator
3) Remote Controlled Fan Regulatorsajin sr
 
Visiter counter doc
Visiter counter docVisiter counter doc
Visiter counter docPrem Kumar
 
Remote control for home appliances
Remote control for home appliancesRemote control for home appliances
Remote control for home appliancesBharath University
 
DIGITAL HEART BEAT COUNTER
DIGITAL HEART BEAT COUNTERDIGITAL HEART BEAT COUNTER
DIGITAL HEART BEAT COUNTERDeevanshu Swani
 
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]akmalKhan55
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
 
BHH POWER PLANT ppt.pptx
BHH POWER PLANT ppt.pptxBHH POWER PLANT ppt.pptx
BHH POWER PLANT ppt.pptxAnil764767
 

Semelhante a Automatic flush system circuit and working (20)

Atomatic light controller
Atomatic light controllerAtomatic light controller
Atomatic light controller
 
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
 
INTELIGENT RAILWAY SYSTEM
INTELIGENT RAILWAY SYSTEMINTELIGENT RAILWAY SYSTEM
INTELIGENT RAILWAY SYSTEM
 
Water level controller
Water level controllerWater level controller
Water level controller
 
Final report
Final reportFinal report
Final report
 
Led chaser
Led chaserLed chaser
Led chaser
 
Prince jai nproject report
Prince jai nproject reportPrince jai nproject report
Prince jai nproject report
 
Automatic room light contoller without microcontroller
Automatic room light contoller without microcontrollerAutomatic room light contoller without microcontroller
Automatic room light contoller without microcontroller
 
Automatic mall elevator
Automatic mall elevatorAutomatic mall elevator
Automatic mall elevator
 
Room illumination
Room illuminationRoom illumination
Room illumination
 
Wireless greenhouse environment monitoring through sensors
Wireless greenhouse environment monitoring through sensorsWireless greenhouse environment monitoring through sensors
Wireless greenhouse environment monitoring through sensors
 
3) Remote Controlled Fan Regulator
3) Remote Controlled Fan Regulator3) Remote Controlled Fan Regulator
3) Remote Controlled Fan Regulator
 
Visiter counter doc
Visiter counter docVisiter counter doc
Visiter counter doc
 
Remote control for home appliances
Remote control for home appliancesRemote control for home appliances
Remote control for home appliances
 
DIGITAL HEART BEAT COUNTER
DIGITAL HEART BEAT COUNTERDIGITAL HEART BEAT COUNTER
DIGITAL HEART BEAT COUNTER
 
555 Timer IC
555 Timer IC555 Timer IC
555 Timer IC
 
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
 
Security alarm
Security alarmSecurity alarm
Security alarm
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
BHH POWER PLANT ppt.pptx
BHH POWER PLANT ppt.pptxBHH POWER PLANT ppt.pptx
BHH POWER PLANT ppt.pptx
 

Mais de Priya_Srivastava (20)

Vitualisation
VitualisationVitualisation
Vitualisation
 
Pc ppt
Pc pptPc ppt
Pc ppt
 
Pe,ppt
Pe,pptPe,ppt
Pe,ppt
 
Environment
EnvironmentEnvironment
Environment
 
Environmental
EnvironmentalEnvironmental
Environmental
 
S.c ppt
S.c pptS.c ppt
S.c ppt
 
Vlsi
VlsiVlsi
Vlsi
 
Wtp ppt
Wtp pptWtp ppt
Wtp ppt
 
Technical ppt
Technical pptTechnical ppt
Technical ppt
 
M.c ppt
M.c pptM.c ppt
M.c ppt
 
Project ppt on Rapid Battery Charger using Fuzzy Controller
Project ppt on Rapid Battery Charger using Fuzzy ControllerProject ppt on Rapid Battery Charger using Fuzzy Controller
Project ppt on Rapid Battery Charger using Fuzzy Controller
 
Project ppt
Project pptProject ppt
Project ppt
 
Bsp ppt
Bsp pptBsp ppt
Bsp ppt
 
Ecg ppt
Ecg pptEcg ppt
Ecg ppt
 
C cp ppt
C cp pptC cp ppt
C cp ppt
 
Ipc ppt
Ipc pptIpc ppt
Ipc ppt
 
Seminar ppt...; )
Seminar ppt...; )Seminar ppt...; )
Seminar ppt...; )
 
Technical presentation on
Technical  presentation onTechnical  presentation on
Technical presentation on
 
O.i.ppt
O.i.pptO.i.ppt
O.i.ppt
 
Filters
FiltersFilters
Filters
 

Automatic flush system circuit and working

  • 2. OVERVIEW Today, manual flush In manual flush systems have been systems, the user presses a replaced with a button, which opens a flush sensor-operated system valve allowing mains- that automatically flushes pressure water to flow into the fixture when the user the bowl, or sometimes the departs. The user presses directly a flush microcontroller-based lever (a handle connected automatic flush system to a flushometer). The valve presented here uses an contains a pneumatic infrared sensor to detect a mechanism that closes it user approaching the after a preset time. fixture, then it waits until the user departs. Page 2
  • 3. CONTd. A solenoid is used to actuate the flush from Installation of a 6V power supply with battery backup inside this the unit that also microcontroller powers the sensor circuit. This flush based automatic system is fully flush system is controlled by a shown in Fig. microcontroller. It also flushes before the person departs if the person is present for more than the preset time (more than 5 minutes). Page 3
  • 5. contd. The IR transmitter LED and the IR receiver modules are mounted side by side such that when the user approaches the mechanism, the IR receiver A solenoid operated module receives the water valve is used in IR signal reflected off the system. the person. Page 5
  • 6. Circuit description: The AT89C2051 is an 8-bit microcontroller with It is built around 2 kB of flash based Below shows the Atmel 89C2051 program circuit of the microcontroller that memory,128 bytes microcontroller-bas controls the of RAM, 15 ed flush control process of input/output system. automatically lines, two 16-bit flushing the toilet. timers/counters, on- chip oscillator and clock circuitry. Page 6
  • 7. Page 7 circuit of the microcontroller-based flush control system.
  • 9. CONTD. A 6MHz crystal is used for providing clock. Port pins P1.0 All the input/output (I/O) pins are through P1.4 of the microcontroller reset to ‘1’ as soon as RST (pin 9) are connected to buffers N1 goes high on pressing switch S3. through N5 of CD4050 via 10-kilo- ohm pull-up resistors, respectively. Page 9
  • 10. Contd. Holding the RST pin high for two machine cycles while the oscillator is running resets the device. Power-on reset is achieved by capacitor C2 and resistor R9. Resistor R10 limits the current Pin 12 (P1.0) of microcontroller IC2 through the LEDs. Port pins provides the 38kHz clock P1.1, P1.2, P1.3 and P1.4 are frequency, which is buffered by N1 used for indication of to drive the two parallel IR-LEDs. standby, alert, active and These IR-LEDs act as the infrared flush, respectively. signal transmitter. Page 10
  • 11. Contd. Port pin P1.4 also drives relay RL1 through transistor T1. Diode D5 acts as a free-wheeling diode. INT0 (pin 6) of the The solenoid coil microcontroller is operated off 6V is pulled up with resistor connected to the R3 and connected to contacts of relay RL1. pin 3 of TSOP1738 IR receiver module. External interrupt 0 (INT0) is used to receive the reflected IR signal. Page 11
  • 12. Contd. Pin 2 of TSOP1738 is pulled high with resistor R2, while pin 1 is grounded. In the IR receiver module TSOP1738, the PIN diode The demodulated output and the preamplifier are from the receiver module assembled on the lead can be directly decoded by frame, and the epoxy the microcontroller. package is designed as an IR filter. Page 12
  • 13. Contd. An actual-size, single-side PCB for the microcontroller- based automatic flush system is shown in Fig. below with its component layout. Page 13
  • 14. Pcb & its component layout Page 14
  • 15. The software: The software for flush First, instruct the compiler to system is written in ‘Basic’ use 89C2051.dat for language and compiled microcontroller AT89C2051 using Bascom-8051 version. by statement ‘$regfile.’ • Which we have used here, is a demo version of Bascom-8051. Page 15
  • 16. Contd. Then declare the After this, instruct variables as the compiler to bits, bytes and override the words. Initialize crystal frequency port-1 to ‘0’ and options setting by port 3 to ‘1.’ statement (Port-3 acts as ‘$crystal.’ T the input port.) Now write the subroutine ‘Fn38K6’ to Enable the generate 38kHz interrupt after frequency for initialization. transmission of the IR signal. Page 16
  • 17. Contd. Standby LED When ‘INT0’ goes When the person glows when low, i.e., the moves away (no external interrupt transmission is interrupt) within 5 ‘INT0’ is interrupted, alert minutes, the high, i.e., there is LED glows. After system flushes for no interruption of 5 seconds, active 10 seconds. IR transmission. LED lights up. Page 17
  • 18. http://www.mcselec.c om/index.php?option =com_content&task= view&id=190&Itemid =57 reference Page 18