DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

FAH4820 Просмотр технического описания (PDF) - Fairchild Semiconductor

Номер в каталоге
Компоненты Описание
производитель
FAH4820
Fairchild
Fairchild Semiconductor Fairchild
FAH4820 Datasheet PDF : 14 Pages
First Prev 11 12 13 14
Figure 10 is an example of using Arduino Uno to control
the HEN pin based on which of the three switches is
pressed. In the example program below; when SW1 is
pressed (which is connected to Arduino input pin 10),
the ERM spins once for the length of time the program
holds pin 12 HIGH. The other switches produce a
double pulse (SW2) and a triple pulse (SW3) output.
Due to EMI noise, it is recommended that a 100 pF
capacitor be placed across the MDP and MPN pins. In
this case, this is C3, which greatly reduces EMI
produced by the ERM.
VCC_3V3
C2
100n
C3
U3
FAH4820
1
VDD
2
GND
3
MDP
4
MDN
5
GAIN
10
SCL
9
SDA
8
HEN
7
GND
6
NC
0
1
2
3
4
5
6
7
8
9
10
11
12
13
GND
AREF
100pF
ERM
SW1
R1
SW Momentery
10K
SW2
R2
SW Momentery
10K
SW3
R3
SW Momentery
10K
VCC_3V3
Figure 10. Arduino Uno Control HEN Pin
Vibration Alert Arduino Example Program
/* FAH4820 vibration alert Arduino program*/
int VIBpin = 12;
int switchPin = 8;
int switchPin1 = 9;
int switchPin2 = 10;
void setup()
{
pinMode(VIBpin, OUTPUT);
pinMode(switchPin, INPUT);
pinMode(switchPin1, INPUT);
pinMode(switchPin2, INPUT);
}
void loop()
{
if (digitalRead(switchPin) == HIGH) /* run this sequence if pin 8 is high - triple
pulse*/
{
© 2013 Fairchild Semiconductor Corporation
FAH4820 1.0.0
11
www.fairchildsemi.com

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]