CBiS Education generously sent me two of their new range of robotics development kits - Consumable Robotics (consumable-robotics.com), these are a range of cardboard based kits (so far a robot and a UFO) with electronic components for example LEDs; sensors and buzzers, depending on the kits. What makes the kits interesting though is they are designed to be controlled by either by a BBC Micro:bit or a CodeBug.
This blog documents, briefly, an initial play with the UFO kit (see below) using a Micro:Bit for control.
The UFO model came together readily, the instructions were fairly easy to follow. Personally, a feature I especially liked about the model was the LEDs being both on the top and bottom of it - increasing it usefulness. CBiS Education.
They have also provided a webpage / portal with some example projects and code.
My first project I built, was to pulse the LEDs on and off (one set of LEDs on Pin 0, the other on Pin 1). Pin 2 was connected to the buzzer, so produce a low buzz every few seconds. The code below is written using the Block Editor (https://www.microbit.co.uk/create-code)
The video below shows the LEDs pulsing. I do need to decorate the UFO though!
Now I am going to play with it a bit more and add the light sensor, included in the kit, to it; so it can detect different light levels. Again it is controlled using the Micro:Bit.
Stage 1 - Decorating it
The kit comes with some stickers so I added a few.
Stage 2 Wiring
Pins 0 and 1 are outputs to the LEDs
Pin 2 is the input from the light sensor
The red lead from the light sensor connects to 3v and the grounds to the ground.
Stage 3 Code
The light sensor works more as a low light level detector, the darker the higher the value returned (in this case) on pin 2. So in low light level, the LEDs flash relatively quickly, when the light level rises half of the LEDs start to pulse more slowly.
All opinions in this blog are the Author's and should not in any way be seen as reflecting the views of any organisation the Author has any association with.
No comments:
Post a Comment