Elecrow Crowbits Hello Kit - 7 Modules, Programming Learning Kit, STEM Project Toys
The Elecrow Crowbits Hello Kit is a comprehensive IoT development kit designed for students, hobbyists, and professionals looking to explore the world of programming and IoT. The kit consists of 7 modules, each with a specific function, allowing users to build and program a wide range of projects. This documentation provides an overview of the kit's components, technical specifications, and code examples to get you started with using this versatile kit.
The Crowbits Hello Kit includes the following 7 modules:
1. Micro:bit (based on BBC micro:bit): A compact, microcomputer with a 5x5 LED matrix, accelerometer, and Bluetooth connectivity.
2. Sensor Module: Includes temperature, humidity, and light sensors.
3. Motor Module: Supports DC motor control with speed regulation.
4. Servo Module: Allows control of servo motors with 180-degree rotation.
5. Ultrasonic Module: Provides distance measurement using ultrasonic sensors.
6. Buzzer Module: Generates sound and tones for interactive projects.
7. LED Module: Includes 4 LEDs for visual feedback and indication.
Microcontroller: Micro:bit based on nRF51822
Programming Language: MicroPython, JavaScript, and Blockly
Connectivity: Bluetooth 4.0, USB
Operating Voltage: 3.3V
Power Consumption: 30mA (average)
### Example 1: Temperature and Humidity Monitoring using MicroPython
In this example, we'll use the Sensor Module to read temperature and humidity values and display them on the Micro:bit's LED matrix.
MicroPython Code:
```python
import microbit
import time
while True:
temp = microbit.sensor.get_temperature()
humi = microbit.sensor.get_humidity()
microbit.display.scroll("Temp: {:.1f}C Humi: {:.1f}%".format(temp, humi))
time.sleep(1)
```
This code reads the temperature and humidity values from the Sensor Module and displays them on the Micro:bit's LED matrix every second.
### Example 2: Motor Control using Blockly
In this example, we'll use the Motor Module to control a DC motor using Blockly programming.
Create a new Blockly project and add the following blocks:
Initialize Motor Module
Set Motor Speed (50%)
Wait (1 second)
Set Motor Speed (-50%)
Wait (1 second)
This Blockly code initializes the Motor Module, sets the motor speed to 50%, waits for 1 second, reverses the motor direction by setting the speed to -50%, and waits for another second.
Note: For Blockly code, please refer to the online Blockly editor or the Crowbits Hello Kit's documentation for more information on creating and uploading Blockly projects.
These examples demonstrate the versatility of the Crowbits Hello Kit and its potential for building innovative IoT projects. By exploring the kit's components and programming languages, you can create a wide range of projects, from simple sensors and actuators to complex automation systems.