Clap Operated Switch - Brigosha Technologies

advertisement
Brigosha Technologies
Application Notes
Clap Operated Switch
Introduction
Clap Operated Switch is an electronic
As soon as you make a clap, the sensor
system or circuitry which operates by
(mic) receives the signal and then it is
clapping from a remote point.
amplified by a transistor. This amplified
analog signal is converted into digital form
In this project, we have designed a simple
(i.e. logic High or Low). This signal is given
application by which you can switch ON or
to an EAB, where it is now processed and
OFF a LED panel by clapping your hands
depending on the programmed algorithm,
only!
the LED panel will either switched ON or
OFF.
Condenser Microphone
A capacitor has two plates having a
voltage between them. In the condenser
mic, one of these plates is made of very
the
capacitance increases and a charge
diaphragm. The diaphragm vibrates
current occurs. When the plates are
when struck by sound waves, changing
further apart, capacitance decreases
the distance between the two plates and
and a discharge current occurs. A
consequently changing the capacitance.
voltage is required across the capacitor
Specifically, when the plates are closer ,
for this to work.
light
material
and
acts
as
Email: info@brigosha.com, Website: www.brigosha.com
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third
parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change
without notification. Document is not intended for publication.
Application Notes
Components
The Components required for building the
Clap Operated Switch are:
Embedded Application Board
Connectors(Jumpers)
Condenser Microphone (1 nos)
LED board
Power Adapter(1 nos)
Resistors
Capacitors
Transistors
Bread Board
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third
parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change
without notification. Document is not intended for publication.
Application Notes
Block Diagram
Block level representation of the different blocks of the Obstacle Avoiding Robot.
Sensor
(mic)
EAB
LED
Schematic Diagram
The Schematic diagram illustrates the circuit connections for designing the application.
R2
LED Board
Vcc
C2
R1
RB4
C1
RC0
LED
Gnd
GND
EAB
T1
Gnd
Sensor Circuit
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third
parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change
without notification. Document is not intended for publication.
Application Notes
Connection Description
In this project we have used one
The digital signal is now given to the
condenser mic to capture acoustic
pin RB4 of EAB. The microcontroller
signal. Prepare a sensor circuit as
checks the input signal. For every LOW
shown earlier with R1 = 3.3K, R2 = 10K
to HIGH transaction in input signal the
and C1=10uF, C2=0.1uF, transistor
output pin (RC0 of EAB) will toggle its
=BC548.
state; else the output will remain in the
same state.
Connect the VCC and GND pin of the
sensor board to EAB’s VCC and GND
pins. The available Data is in Digital
form.
Note: Any GPIO pin can be used for this project. Set the particular GPIO pins to
output and provide a high /low signal to the pin .
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third
parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change
without notification. Document is not intended for publication.
Application Notes
Code Flow Chart
Start
Main function()
1. Define System clock
2. Library Header File
Declaration
Local variables
Set Oscillator Frequency
Configure Timer0
Configure I/O pins
While(1)
Check if
RB4=1
No
Yes
Change the
Output State
No change in Output
1. Start Timer0
2. Wait for Timer Period
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third
parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change
without notification. Document is not intended for publication.
Application Notes
Source Code
The Source code shown below is the
Refer to the EAB User Guide and EAB
firmware
the
Programing Guide for more details on
Embedded
how to Flash(burn) program(Source
to
microcontroller
be
of
flashed
the
in
Application Board. The Source code is
Code)
commented for better understanding of
Embedded Application Board.
in
the
microcontroller
of
the user.
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third
parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change
without notification. Document is not intended for publication.
Application Notes
How to operate
Follow the steps mentioned below in order
Now clap near the sensor (mic) and
see the toggling performance of the LED
to operate the project…
board.
Flash the code into the microcontroller.
Connect each and every part properly.
Place the system in a quite/silent area.
Power the EAB, Sensor Circuit and LED
Board with 9V/12V DC. Carefully check the
polarities and then connect .
Switch on the EAB .
More Projects
Some such applications are given below:
Various other applications can be built
Sound Chaser
using the basic concept of this Project.
Alarm systems
Sound Avoider
Home Appliances Controlling.
Noise Level Indicator.
Copyright: Brigosha reserves all rights in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third
parties. Brigosha is the registered trademark of Brigosha Technologies Pvt. Ltd. Specifications within this document are preliminary and subject to change
without notification. Document is not intended for publication.
Download