Skip to main content

07 Light Sensor

LightSensor.png​

Module Introduction​

jacdac29.png

  1. Jacdac Interface
  2. Jacdac Communication Indicator
  3. Light Sensor
  4. Jacdac Standard Through Hole
  5. Product QR Code

Components used​

  • 1x MicroUSB Cable
  • 1x MicrobitV2
  • 1x Jacdaptor
  • 1x Cable
  • 1x LightSensor

连接​

PC-〉MicroUSB -〉MicrobitV2-〉Jacdaptor-〉Cable-〉LightSensor

15.JPG

Coding Platform​

https://makecode.microbit.org/

Create a new project​

jacdac05.png

Establish a connection​

webUSB.png

Extensions——Jacdac

jacdac扩展.png

添加LightSensor的积木(Block)​

jacdac23.png

编写程序与下载​

jacdac22.png

After downloading, you need to press the A button to start​

16.JPG

The Result​

When in light:

17.JPG

When in dark:

18.JPG