Hardware Reference
In-Depth Information
Given that 3.3 V is within the operating range for the device, we can use it for the
Raspberry Pi. We simply power it from the +3.3 V supply pin P1. The device requires only
1 mA of current, as seen in the other datasheet parameters here:
Parameter
Symbol
Test Conditions
Min
Typ
Max
Units
Supply current
I CC
V CC = 5 . 0 volts
0.6
0.8
1.0
mA
Receiving distance
L
11
13
m
Acceptance angle
q ½
± 35
Deg
Carrier frequency
f 0
37.9
kHz
Bandwidth
f BW
8
kHz
Voltage out low
V OL
R pullup = 2 . 4 k W
0.25
Volts
Voltage out high
V OH
V CC -0 . 3
V CC
Volts
Operating temp.
T opr
-30
+85
°C
Pinout
With the lens of the part facing toward you, the pins are as follows, from left to right:
VS1838B
Front View
Out
Gnd
V CC
VS1838B Circuit
Figure 5-2 illustrates the VS1838B wired to the Raspberry Pi. Any GPIO pin can be used,
but this text uses GPIO 17 for ease of reference. If you choose to use a different GPIO,
changes to the source code will be necessary.
 
Search WWH ::




Custom Search