element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Remote Monitoring & Control
  • Challenges & Projects
  • Project14
  • Remote Monitoring & Control
  • More
  • Cancel
Remote Monitoring & Control
Blog Temperature and Humidity Sensor (DHT22) Interfacing with PSoC6 WiFi-BT Pioneer Kit
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Remote Monitoring & Control to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mahmood.hassan
  • Date Created: 13 Aug 2019 9:52 AM Date Created
  • Views 2107 views
  • Likes 6 likes
  • Comments 0 comments
  • cypress psoc 6 wifi-bt pioneer kit
  • dht11 c
  • dht22
  • dht12
  • psoc6
  • dht11
  • cypress
  • cypress psoc
Related
Recommended

Temperature and Humidity Sensor (DHT22) Interfacing with PSoC6 WiFi-BT Pioneer Kit

mahmood.hassan
mahmood.hassan
13 Aug 2019
image

Remote Monitoring & Control

Enter Your Electronics & Design Project for a chance to win up to a $200 Shopping Cart of Product!

Back to The Project14 homepage image

Project14 Home
Monthly Themes
Monthly Theme Poll

 

DHT temperature and humidity sensors are pretty useful for DIY environment monitoring applications. You can easily interface it with Arduino devices but when it come to other devices like PSoC from cypress semiconductors you wont find any library or ready made solution.

I was using this sensor in my project and successfully interfaced it with PSoC6 device after some effort. Therefore I have decided to share my adventure of interfacing PSoC devices with DHT sensors to help other.

 

Little bit about PSoC MCU:

Cypress PSoC devices are low power IoT enabled mcu. The best part of these micro controllers is that you can virtually use any GPIO pin for anything. Therefore unlike any other MCU where you simply configure GPIO either as INPUT or OUPUT, in PSoC almost any GPIO can be either INPUT, OUTPUT or Bidirectional pin with ton of configurations (glimpse is shown below).

 

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Hardware Required:

  • PSoC 6 (CY8CKIT-062) WiFi-BT Kit
  • DHT sesnor (using DHT22)
  • Wires to connect DHT sensor with PSoC kit

 

image

DHT22 senor connected at P5.4 (D4 of Arduino header) of PSoC62 Kit

If you are wondering about the other wire with a resistor then it is used to avoid burst of random data appearing at Com port during programming or when PSoC6 UART module (P5.1) connected to KitProg, is not initialized or used.

 

Interfacing DHT Sensor:

For this project I have used Modus Toolbox but you can use easily use this code in PSoC Creator or WICED Studio. In fact I have also used this library in WICED Studio and its details can be found HERE.

Step-1: Create new blink LED project for CY8CKIT-062-WIFI-BT Kit using Modus tool box and name it anything you like. For the simplicity I am naming it as DHT22 project.

Step 2: Download the DHT.c and DHT.h file from github repository C-library-for-DHT-sensors. Also download the main file from examples/psoc6 folder.

Step 3: Configure the UART and DHT sensor pin

Step 4: Replace the main.c file with dowloaded main.c file and add the two DHT.c and DHT.h files in source folder of DHT22 project.

Step 5: Connect the DHT sensor with PSoC kit and configure GPIO, build and upload the code on the kit.

 

Congrats image you have successfully interfaced a DHT sensor with PSoC6 kit. Use the UART monitor to view the sensor outputs.

 

Video:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

All steps required to successfully interface a DHT sensor with PSoC6 device

 

Git-hub repository: C library for DHT sensors

 

PART 1: Micro Monster - Succulent Plants Monitoring System

PART 2: Establishing and Testing the Secure Connection

PART 3: Remote Device Restart, Factory Reset and Data storage on External Flash

PART 4: Remote Firmware Download and Update

PART 5: Sensors Interfacing

PART 6: Final Testing and Demo

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube