Difference between revisions of "Microduino Light indicator-OLED(TSL2561)"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{{Language | Microduino 光照指示器-OLED显示(TSL2561)}} {| style="width: 800px;" |- | ==Objective== This tutorial will teach you to use the TSL2561 sensor and use Microd...")
 
 
Line 25: Line 25:
  
 
==Debug==
 
==Debug==
Step 1:Download TSL2561 library, and uncompress it to libraries folder of Arduino IDE, then restart IDE.
+
Step 1: Download TSL2561 library, and uncompress it to libraries folder of Arduino IDE, then restart IDE.
 
http://learn.adafruit.com/tsl2561/use  
 
http://learn.adafruit.com/tsl2561/use  
  
Step 2:Copy the code to IDE and compile it.
+
Step 2: Copy the code to IDE and compile it.
  
 
Step 3: Set up circuit, as follows:
 
Step 3: Set up circuit, as follows:
 
[[File:MicroduinoOLED光照指示器连接图(TSL2561).jpg|600px|center|thumb]]
 
[[File:MicroduinoOLED光照指示器连接图(TSL2561).jpg|600px|center|thumb]]
  
Step 4:Run program.
+
Step 4: Run program.
  
Step 5:Observe OLED, cover the light sensor with the hand and then let it see the light again, look at the digital tube change.
+
Step 5: Observe OLED, cover the light sensor with the hand and then let it see the light again, look at the digital tube change.
  
 
==Result==
 
==Result==

Latest revision as of 10:13, 28 September 2016

Language: English  • 中文

Objective

This tutorial will teach you to use the TSL2561 sensor and use Microduino OLED to dispaly the result.

Equipment

Schematic

MicroduinoOLED光照指示器原理图(TSL2561).jpg

Plug in the OLED to Microduino-Weatherstation.

Program

Download program: https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Sensor/OLED_TSL2561

Debug

Step 1: Download TSL2561 library, and uncompress it to libraries folder of Arduino IDE, then restart IDE. http://learn.adafruit.com/tsl2561/use

Step 2: Copy the code to IDE and compile it.

Step 3: Set up circuit, as follows:

MicroduinoOLED光照指示器连接图(TSL2561).jpg

Step 4: Run program.

Step 5: Observe OLED, cover the light sensor with the hand and then let it see the light again, look at the digital tube change.

Result

Cover the TSL2561 sensor with the hand, the OLED's value will decrease, put the hand away, the value will increase.


Video

http://v.youku.com/v_show/id_XNjkyMzQ1OTY4.html