ROBOT . HEAD to TOE
Product User’s Manual – Shock Sensor
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
5
1
2
3
Header 3
Connector to Shock Sensor
BC547
Q1
5V
1K
R1
10K
R2
VCC
Microcontroller
I/O pin
Figure 4.2: Example application for Shock Sensor (With microcontroller).
Part Description
Header 3H
Connects to Shock Sensor, pin 1 to GND (Black color), pin 2 to output
(White color) and pin 3 to Vcc (Red color).
Vcc
Connects to Vcc (+5V to + 12V)
R1 1k
Ω
Resistor
R2 10k
Ω
Resistor
Q1
NPN transistor ( BC547)
I/O pin of
Microcontroller
The output of the circuit need to connect to the I/O pin microcontroller
which set to ‘INPUT’ mode.
Figure 4.2
The application of shock sensor with microcontroller is shown in Figure 4.2. The function of
the transistor, Q1 is to protect the microcontroller in case the voltage supply to shock sensor
is higher than 5V. With refer to the schematic, the output signal which send to
microcontroller after Q1 will be HIGH wherever there is a shock detected. It is invert of the
original output signal of shock sensor.