$USD
  • EUR€
  • £GBP
  • $USD
PROJECTS micro:bit

micro:bit Projects: Yes/No Bear

DFRobot Mar 23 2018 1229

Part needed
2 x 9G servo motor
1 x microbit
1 x micro:mate(breakout board)
1 x Pan tilt kit
1 x stuffed toy bear
Some scape materials (to be the base & raise the pan tilt kit higher)


Connections
Tilt servo ( nod head Yes)
Micro:mate
 
Brown
Pin 1 Black
 
Red
Pin 1 Red
 
Orange
Pin 1 Blue
 
Pan servo (shake head No)
Micro:mate
 
Brown
Pin 0 Black
 
Red
Pin 0 Red
 
Orange
Pin 0 Blue
  
How it works?
There are 2 possible answers. Either yes or no. We randomly generate the outcome when a button is pressed. When the answer is yes, the display will show Y & the tilt servo will response. When no, the display will show N and pan servo will response.


Using some scrape materials to raise the pan tilt kit and create the base.


Remove the thread at the bottom and the neck


The head must sit nicely on the tilt bracket



The code
When running the program, you will find that when the power is supplied through the usb of the micro:bit, the power is not strong enough to drive the 2 servos. Just connect the power to the vin of the micro:mate instead.
 


 
How to make it better?
Please feel free to make changes and share your thoughts. I wanted the bear to respond by sound. I tried using the analog sound sensor but I just can’t get it to work. No matter how I shouted at the microphone, the reading did not change.  Another possible improvement is to add a button at the base of the feet instead of pressing A button.                                                          


Related Blog Post:
Microbit Tutorials
Micro:bit board: an introduction
5 Easy Steps for you to Quick Start with BBC Microbit
Micro:bit JavaScript Blocks Editor: Hello World
Micro:bit JavaScript Blocks Editor: Turning LEDs on and off
Micro:bit JavaScript Blocks Editor: Detecting button click events
Micro:bit JavaScript Blocks Editor: String interpolation
Micro:bit: MicroPython support

Microbit Projects
Mobile Doorbell System with BOSON and Micro:bit
How To Make A Micro:bit Heart Rate Monitor
Microbit Project micro:bit Laser Target
Micro:bit Surprise box
Microbit Project: Micro:bit Selfie Remote
Micro:bit Project: Light(Mood Lamp)
Micro:bit Project: Yes/No Bear
Smart Fan Control System with Micro:bit
LED writing board (micro:bit compatible)
micro:bit car with DFRobot gamepad
OBLOQ-IoT Module +Micro:bit IoT Flower Watering

REVIEW