Sunshine Land

From Microduino Wiki
Revision as of 03:19, 21 May 2015 by 1304410487@qq.com (talk) (Created page with "{{Language| Sunshine Land}} {| style="width: 800px;" |- | ==Objective== Sense light intensity via photosensitve sensor and simulate the change in Scratch. ==Principle== Read ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文

Objective

Sense light intensity via photosensitve sensor and simulate the change in Scratch.

Principle

Read photosensitive sensor analog vallue. Tthe lightness of the picture turns dark along with the light.

Equipment

Hardware Buildup

  • Setup 1:Stack CoreUSB and Sensorhub
  • Setup 2:Connect light to the analog port—A0.

Software Debugging

  • Setup 1:Build Scratch programming environment.
  • Setup 2:Start programming. Example program download: File:Sunshine home.zip
  • Setup 3:Code description.
    • It can change the brightness of the picture by sensing light intensity. Users can change background picturen according to personal needs.

Result

The photosensitive sensor can detect light. The brightness of the picturen in Scratch changes along with the light intensity.

Video