Sunshine Land

From Microduino Wiki
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