Encouragement Bot

Want to be a smart cookie and have your micro:bit acknowledge it? This tutorial will teach you how.


You'll need

1x Tinkercademy microbit kit (of which you need: 1x microbit, 1x breakout board, 1x OLED screen)
1x battery holder (which can hold 2x AAA batteries)
1x some cardboard (optional)

Step 1

Instructions

Connect your microbit and breakout board by sticking the bottom of the microbit (where there are five holes) into the top of the breakout board.

Connect the four pins at the back of the OLED screen to a row of four holes at the bottom left segment of the breakout board.




Materials

1x microbit
1x breakout board
1x OLED screen


Step 2

Instructions

Connect the battery holder to the top right hand corner at the back of the microbit.

Now, the hardware is all set up. Let’s move on to code!




Materials


Step 3

Instructions

From the MakeCode screen, find the middle column containing the blocks.
Go to ‘Advanced’ > ‘Extensions’.
In the new ‘Extensions’ page, search for ‘tinkercademy’.
Select ‘oled-ssd1306’ from the search results.




Materials


Step 4

Instructions

Click ‘JavaScript’ in your MakeCode.

Copy and paste the code from the link below into the text space. The comments (sentences in green starting with ‘//‘) will help you understand the code.

Download the code into your microbit using a USB connector and you are done!




Materials


Step 5

Instructions

(Optional) Put your compliment bot into a nice costume of your design using cardboard and your creativity.




Materials

Some cardboard
1x pencil
1x marker
1x pen knife


Code and References

Completed this tutorial?

Spread the word! Let's get this trending on social media with #letsgethacking #EncouragementBot