Teach you to design an LED flower that can sense humidity

Publisher:mlgb999Latest update time:2015-02-11 Keywords:led Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
    This article will show you how to make an LED flower that can sense humidity. This video will explain how the circuit works. This is a versatile project. It can be placed in a glass container and applied almost anywhere, including clothing or accessories.

Material

For this circuit, here are the materials you need. The RGB LED flowers are exclusive to the 21st Century Fashion Kit, but you can use standard RGB LEDs instead if you prefer. You can buy all of the parts listed below at SparkFun.

● 21st Century Fashion Kit

● Arduino Pro 328 - 5V/16MHz

● SparkFun Humidity and Temperature Sensor - SHT15

● Polymer lithium-ion battery - 850 mAh

 

 

Circuit

This circuit design (and the associated code) draws heavily on the data in the Bildr tutorial (http://bildr.org/2012/11/sht15-arduino/), which I strongly recommend that you read. The information is very helpful!

In particular, the tutorial mentioned a requirement to place it in a sealed plastic bag with a damp towel (but not touching it) in order to re-hydrate the polymer in the sensor. This was very helpful to me.

The following figure shows the circuit:

 

 

The Fritzing diagram makes it almost impossible to tell that the RGB LEDs are separate, but they are, aren't they? The longest pin is ground. The single pin next to the ground pin is red, and the two pins on the other side are first green and then blue.

If you use this flower instead of a standard RGB LED, be very careful as a heat gun can easily melt the petals if you use heatshrink over the connections.

Code

Don't know how to upload code to your Arduino? No problem! It's explained thoroughly in this instructable video. Remember to select the correct board and port for your application.

Copy and paste this code (click here) into the IDE and hit the Upload button.

Once the code is uploaded, open up the Serial Monitor (https://learn.sparkfun.com/tutorials/terminal-basics/arduino-serial-monitor-windows-mac-linux). This will open up a new window with scrolling numbers. The right column is the temperature and the left column is the humidity. Look at your humidity numbers and use them to decide what your ideal humidity is.

The line that says Humidity Threshold is commented out pretty close to the top, take a look at it and adjust it as needed. I set mine to be slightly above ambient humidity because I wanted it to be easy to show. You may want yours to be less sensitive. In the same section you can make changes to how the light reacts to those changes.

Keywords:led Reference address:Teach you to design an LED flower that can sense humidity

Previous article:Design of wireless LED lighting drive system
Next article:Based on Infineon LED thyristor dimming solution

Recommended ReadingLatest update time:2024-11-17 02:44

Summary of several factors affecting LED quality
Most designers think that all LED products are of the same quality. However, there are many manufacturers and suppliers of LEDs, and Asian manufacturers supply low-cost LEDs to the world. Surprisingly, only a small number of these manufacturers can produce high-quality LEDs. For applications that are only used for s
[Power Management]
Current status and trend of LED driver ICs Thermal management cannot be ignored
In the past, light-emitting diodes ( LEDs ) were used only as indicator lights. Power consumption was low, current was even lower, and heat generation was not a problem. However, times have changed. LED currents have increased from a few milliamps to amps; in some cases, LED power has jumped from a f
[Power Management]
LED aluminum substrate professional knowledge introduction
   Characteristics, structure and function of aluminum substrate    The heat dissipation problem of LED is the most headache problem for LED manufacturers. However, aluminum substrate can be used because aluminum has high thermal conductivity and good heat dissipation, which can effectively export internal heat. Alum
[Power Management]
Introduction of LED dot matrix
As a modern electronic media, dot matrix LED display screen has the characteristics of flexible display area (can be divided and assembled at will), high brightness, long life, digitization, real-time, etc., and is widely used. After learning about LED small lights and LED digital tubes, it will be much easier to lea
[Microcontroller]
Introduction of LED dot matrix
LED Flowing Light and Flashing
1. Use of #type typedef unsigned char u8; typedef unsigned int ul6; Redefining commonly used keywords can enhance the portability of the program, because the bit width of the C language data type keywords is different on different compiler software. 2. While loop function while(i 10) { i=i+1; } 3. Delay functi
[Microcontroller]
Light in the 21st Century--A Brief Analysis of the Development of White Light LED Products
Technical Overview of White Light LED Since the emergence of light-emitting diodes (LEDs), people have been striving to achieve solid light sources. With the continuous advancement of LED manufacturing technology and the development and application of new materials (nitride crystals and phosphors), the perfor
[Power Management]
How to solve the design difficulties of internal and external pressure difference of LED outdoor lighting?
How to deal with pressure difference is still a hidden design difficulty. Moisture-proof and breathable design can enhance the reliability of LED lamps and extend their service life.   Many commercial and residential lighting have been upgraded to LED light sources because solid-state lighting (SSL) lamps can cont
[Power Management]
The future of light: ams and OSRAM lead the way in automotive lighting innovation
According to TrendForce, by 2023, the penetration rate of LED headlights in traditional passenger cars worldwide will reach 72%, while in the field of electric vehicles, this rate is as high as 94%; it is expected that in 2024, these two figures will rise to 75% and 96% respectively. With the development tre
[Automotive Electronics]
The future of light: ams and OSRAM lead the way in automotive lighting innovation
Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号