Go back to Product Documents Navigation
Go back to Powerbrick 10-in-1 Documents Navigation
This is a multifunctional module, the main features are Color detection and Gesture detection.
This module has 4 modes:
- In Color Mode, the 4 LEDs light up. It can detect color or ambient light level.
- In Gesture Mode, the LEDs light up corresponding to the direction of movement.
- In Proximity Mode, it can detect objects with a 3cm range. The LEDs brightness are determined by the proximity of the object.
- In LED Mode, the 4 LEDs can be controlled.
Details
Specification
- Voltage: 3V-5V
- Dimensions: 56mm X 24mm X 16mm
- Connector: 4Pin PH2.0
- Color Mode Return Value: 0-360, corresponding to hue
- Gesture Mode Return Value: 0-4, corresponding to None, Up, Right, Down, Left
- Proximity Mode Return Value: 0-255, with a range of approximately 3cm
- Brightness Return Value: 0-255
Precautions
- This module must be connected to I2C port.
- The module defaults to Proximity Mode if mode has not been set.
- For gesture detection, practice maybe needed to get the correct distance and speed for successful detection.
- For color detection, the return value is a Hue value from HSV format.
- Color detection has the best effects when the object is about 1cm away.
- The LEDs can only be controlled in the LED Mode.
Connecting the module
Armourbit
Connect the module to the I2C Port of Armourbit using a 4Pin Cable.
Robotbit
Connect the module to the I2C Port of Robotbit.
Blue(A)->SCL, Green(B)->SDA |
MakeCode Coding Tutorial
Powerbrick Extension: https://github.com/KittenBot/pxt-powerbrick
Color Gesture Module Blocks
Detecting Color
HSV Color Wheel:
Detecting Ambient Brightness
Detecting Proximity
Detecting Gesture
Controlling LEDs
Extension Version and Updates
There may be updates to extensions periodically, please refer to the following link to update/downgrade your extension.
Makecode Tutorial Video
KittenBlock Coding Tutorial
Load Powerbrick Extension
Select Powerbrick from the hardware column.
Color Gesture Module Blocks
Detecting Color
Detecting Ambient Brightness
Detecting Proximity
Detecting Gesture
Controlling LEDs
FAQ
1:Why is there no reaction when I click the blocks?
Make sure you have connected the Micro:bit correctly and flash the firmware again.
If you have any question, please feel free to contact us at Discord, we will always be there to help.
KittenBot Team
Go back to Product Documents Navigation
Go back to Powerbrick 10-in-1 Documents Navigation