Reader small image

You're reading from  Practical Python Programming for IoT

Product typeBook
Published inNov 2020
Reading LevelIntermediate
PublisherPackt
ISBN-139781838982461
Edition1st Edition
Languages
Right arrow

Creating the DHT11/DHT22 circuit

We will begin by creating the circuit illustrated in Figure 9.2 on our breadboard:

Figure 9.2 – DHT sensor schematic

The following is the breadboard layout for this circuit that we are about to build:

Figure 9.3 – DHT sensor circuit

Here are the steps to follow, which match the numbered black circles in Figure 9.3:

  1. Place your DHT11 or DHT22 sensor into your breadboard.
  2. Place the 10kΩ resistor (R1) into the breadboard. One end of the resistor shares the same row as the DHT sensor's DATA pin. We will discuss this resistor and why it's marked as optional in Figure 9.2 after we complete the circuit build.
  3. Connect a 3.3-volt pin on your Raspberry Pi to the positive rail of the power rail.
  4. Connect the 10kΩ resistor (R1) to the positive power rail.
  5. Connect the DHT Vcc pin to the positive power rail.
  6. Connect a GND pin on your Raspberry Pi to the negative power rail.
  7. Connect the GND pin on...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Practical Python Programming for IoT
Published in: Nov 2020Publisher: PacktISBN-13: 9781838982461