HSM-20G temperature & humidity analog sensor + Nokia5110 LCD

 

 

 

 

 

 

 

 

Temperature and humidity measurement are always a nice addition to hobbyist projects. In my previous post, I’ve discussed the DHT11 sensor, which is capable of measuring both temperature and humidity. They are digital sensor and provide calibrated outputs with temperature and relative humidity. I’ve also demonstrated how to interface with Arduino and display it on 1602 LCD. Unlike DHT series, HSM -20G is analog sensor that converts the two ambient parameters to voltage outputs. There is a hobbyist who has shared their method of interfacing HSM-20G to Arduino with a Nokia3310 LCD working together.
http://www.instructables.com/id/Arduino-Nokia-LCD-Sensors/

HSM-20G is analog sensor unlike DHT series. If you go through the HSM-20G datasheet, you will find that they have given us a peripheral circuit to microcontrollers or multimeter.

 

 

 

 

 

And they also provide us output voltage for certain humidity value and they have plotted a graph. Because there is thermistor built inside rather than semiconductor for measuring temperature, they have provided the resistance value at various temperature. As you may notice that the plot is not linear but rather has curve-like nature, you can use matlab or other software to get a equation for the plotted curve.

 

 

 

 

 

 

 

 

The curve fit for the data is:
RH=31*volts-12
Temperature in C = 281.583*1.0230^(1.0/R)*R^-0.1227 -150.6614

 

 

 

 

Next step is to interface to the circuit. Nokia 5110 is a basic graph LCD screen for lots of application. It was intended for as cell phone screen. This one is mounted on the easy to solder PCB. The Nokia 5110 LCD has a SPI interface and has 5 control lines. These 5 control lines occupy many outputs of the Arduino.

SCLK – Pin 8
DN   – Pin 9
DC   – Pin 10
RST  – Pin 11
SCE  – Pin 12
LED  – 5V

Henning Karlsen has created a library for Nokia5110 LCD. Examples are also included in this library.

Circuit diagram

 

 

 

 

 

 

 

Click here for the related code of this project.

No Comments to “HSM-20G temperature &...”

Leave a Reply

You must be logged in to post a comment.

How get your products made?  

How get your products made?
I think everyone remembers that the excited moment you’ve get the product from Courier. Have you explored the question that how do they make it? Do you wonder the process of our products? If you ask for it, the following video will satisfied your curiosity. What are we waiting for? There it comes! Today I will show you to our factory and participate in process of your own.Let’s go! Look at each process step by step: Firstly, our factory will produce PCB according to the related documents. Here I won’t introduce clear, just in passing.  About the details, we’ll show you in a future blog ......

3D Printed DNA-based Faces  

3D Printed DNA-based Faces
  “Heather Dewey-Hagborg, a doctoral student at Rensselaer Polytechnic Institute has created 3D software that produces images of people’s faces from DNA samples. Then she takes it a step further and uses a 3D printer to create a sculpture of what that person probably looks like.”. It’s so amazing. Want to know more? Check out: http://www.3dprinter-world.com/article/3d-printed-faces-from-dna  

Weekend Specials on WK24  

Weekend Specials on WK24
Welcome back! The past few weeks we were building and optimizing our website for distributor (geeetech.com/warehouse), it’s finally available now. If you are interested in our items and want to be a geeetech distributor, please don’t hesitate to contact us. It will be our great honor to become a family. It’s our weekend special WK24. First, please check out the activity rules first. Activity rules: 1. All the specials issued are only for registered customers, so please register first before add them to your cart and then place the order. 2. No more than 5pcs for each special item of one......

Become A Geeetech Distributor  

Become A Geeetech Distributor
    Here at geeetech, we’re a hodgepodge crew from all different background with different experience. Some of us are working in the field we planned to work in, some are brought with geeetech together by chance. Anyhow, we’re here together, play together, work hard together for our common and warm family—Geeetech. With the increase and announce of new products, we want to share each other’s gains with every guys who love this. However,we found that there are many different parts of the world and many different end users where we may not have been able to reach by oursel......
Mataerial 3D Printer :Can work on a Vertical Surface
  Anyone who has used conventional 3D printers knows that they work on on a relatively level place then print all kinds of products. “Mataerial” 3D printing robot,jointly designed by Petr Novikov and Sasa Jokic-two designer from Barcelona, break this limitation, it can entirely print products on the vertical, smooth or uneven surface without any supporting tools. The desired shape is created by user in CAD software, then the software control system of the machine will transforme the design model into 3D curve and command to robotic arm to draw according to the curve pat......

Weekend Specials on WK23  

Weekend Specials on WK23
The annual Chinese traditional Dragon Boat Festival (or Duanwu Festival) is coming soon, this year, it will be on 12th June(Wednesday). We’ll have a 1-day holiday that day to enjoy time, Zongzi and Dragon boat races with our family and friends. Zongzi is an essential food of the Dragon Boat Festival. At the center of this festival are the dragon boat races. Competing teams drive their colorful dragon boats forward to the rhythm of beating drums. It’s festival traditions. We might not be able to ship your order promptly on 12th June. But you can still send mail to us if you h......

Giving day:$0.99 Special Session  

Giving day:$0.99 Special Session
Breakour has a very important role in some electronic products,it is everywhere and its specific role is also different. The major reason is that it make it possibly for users to build their own projects easily. Today we’re launching a large-scale promotion for this day. Here is a $0.99 Special Session,all of products in the post are only 0.99. Don’t need $9.9 or more,just $0.99. They are very useful small breakouts for your project.Welcome to access the page to snap up the products you desire for. Oh, wait,wait…Please note before you place your order: 1> Coupon can......
Linkbot : Make You can Build Robots on All Levels
  Have you always wanted to build or program your own robot , but didn’t have all the necessary skills and patience you thought you should have or didn’t know how to start? The Linkbot modular robotic platform,which launched by a mechanical and aerospace engineering professor and ex graduate student from UC Davis and manufactured by California-based firm Barobo, lowered the threshold of ordinary people making robots, it can help the newbies to easily get started. Linkbot itself is a robot operating independently. And through the combination of multiple modules and other accessories......

Weekend Specials on WK22  

Weekend Specials on WK22
2013.5.31 is the last day of the activity “Share/Like/Comment/Follow to Win Coupons $30!” , we sincerely thanks for your join in, supports and concerns, which are of vital importance to the growth of our small company. Your encouragement will keep us moving forward. Another week has gone by, and it’s time for our weekend special WK22. The past two weeks we listed 3D-printing products in weekend special. They are greatly welcome by the user. At the request of our customers we’ll continue to hold the third large special offer of stuffs on 3D-printing. Did you tempted? Activity rules: 1. A......

New products are here!  

New products are here!
    The past several days,we sent out many coupon to the lucky ones who join in our activty “Share/Like/Comment/Follow to Win Coupons $30! ”. The coupon -$30 off can be used a purchase of $100 or more at geeetech. The activity will run until Friday, May 31st at 12 p.m. EST GMT-05:00. We head into the last three days of the activity. Come and join us now! Back to today’s post. We have listed many new products of good quality at competitive prices for the past several days. Some are stuffs used in 3D Printer, like SD breakout for RAMPS and two kits. Some are very useful module/B......