KD0033 kidsbits Blocks Coding Photocell Sensor (Black and Eco-friendly)

1. Description

kidsbits blocks coding photocell sensor is fully compatible with kidsbits control board and Lego building blocks.
You can easily connect it to kidsbits control board for communication using an RJ11 cable without worrying about wrong connection and damage.

The kidsbits photocell sensor is a semiconductor, integrated with a photoresistor, easy to use and very convenient for connection using an RJ11 cable.
A photoresistor or light-dependent resistor (LDR) or photocell is a light-controlled variable resistor. The principal is very simple. The resistance of photoresistor varies with incident light intensity. If the incident light intensity is high, the resistance decreases; if the light intensity is low, the resistance increases.

It can be applied in light-sensitive detector circuits, intelligent switch design and light- and dark-activated switching circuits.

2. Technical Parameters   

  • Interface: EASY plug
  • Operating voltage: DC 5V
  • Output signal: analog signal

3. Wiring Diagram

4. Import kidsbits library

Begin with the Mixly blocks coding, you should first import the corresponding kidsbits library for those sensor modules.
Connect the control board to your computer using a USB cable.
Then open the Mixly blocks software 0.998, set the board to UNO R3, select your correct COM port. On the upper right corner you can switch the language.

After that, click Import, import the keyes-kidsbits library. Shown below.

If import custom library successfully, you should see the sensor module library shown below.

Click on the display screen block of keyes_kidsbits, you can directly use the corresponding module.

5. Test Code

Open the code folder we provided, or you are able to directly drag the code to Mixly window.

You can click the Code to check the C language.

6. Test Result

Hook it up and upload the code success, open the monitor and set the baud rate to 9600. It will display the analog value of current light intensity. The greater the light intensity, the greater the value is.
When the analog value is less than 200, D13 indicator on the control box will light up; otherwise, the led will turn off.

7. Resources Download

https://drive.google.com/open?id=1QbmkalEcotRk1qV8EdMWNacaY_81sJLY