Hardware Reference
In-Depth Information
One of the nice things about the DHT11 is how simple it is to wire up. It also requires only one data line but you
cannot use this device in parasitic mode. Take a close look at the back of your sensor or the data sheet if you can
read it. My sensor has a voltage range from 3.6 to 6.6 V. It's a rather odd range; it also means you must use an external
voltage source. I always do, but this time you must.
1.
Place your DHT11 into your breadboard. I like to place it so that pin 1 is on row 1 of the
breadboard. The front of the sensor has all the little square holes. When looking at the
front of the sensor, pin 1 is on the left-hand side. Pin 1 is also the Vcc pin. Take a look at
Figure 3-19 to see how I have placed the DHT11.
Figure 3-19. DHT11 placement
2.
Like last time, it's best to install the jumpers next. Connect one jumper from pin 1 to your
voltage source.
3.
Connect pin 4 to your ground.
4.
Also connect a jumper from pin 2 to a free row on the side of your breadboard. This
allows a clear placement for the pull-up resistor. In Figure 3-20 you can see that my
jumper is installed.
 
Search WWH ::




Custom Search