KD0055 kidsbits Blocks Coding ADKeyboard 7-Button Module

1. Description

kidsbits blocks coding ADKeyboard 7-Button module 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.

This module comes with 7 buttons, which are connected to the same analog port interface. When pressing different buttons, the 5V voltage is connected to different resistor dividers, so the analog port gets different analog values.  

When using, we can judge the button status by different analog values. In the following, you can check out the Mixly code and library use.

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.

Note: when testing, only press a button each time; supposed that press several buttons at the same time, only one button can be available.

6. Test Result

Hook it up and upload the code success, open the monitor and set the baud rate to 9600. Press the button S1-S7, the monitor window will show the different analog value.

7. Extension Experiment

In the experiment, we are going to read the analog value of each button, through the button shield to control other external devices. For example, light an LED, or make a buzzer beeping, etc.

Next, we will make a extension. When press down the different buttons, the serial monitor will show the different text.

Write the code:

We have offered the program code in the folder package, so you are able to open the code.

Click the right side arrow button to check out the arduino code.

What you should see?

Hook it up and upload the code success, open the monitor and set the baud rate to 9600. Press the button S1-S7, the monitor window will print the button number.

8. Resources Download

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