Encouragement Bot

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


YOU WILL NEED

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

STEP 1

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

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!



STEP 3

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.



STEP 4

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!



STEP 5

(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

Made this activity? Good Job! Now spread the word. Share a photo of your creation on social media with #letsgethacking #EncouragementBot