Makecode Coding and ObjectBlocks
Last updated
Last updated
The following tutorial is for WifiBrick and Robotbit, for KOI users, some programs may need adjustments to work on KOI.
Create an account on ObjectBlocks.
Log in and create a new project.
Select Channels from the menu.
Add a new channel.
Specify the type to be either text or numeric.
Remember to choose YES for the webhook option.
The webhook option contains credentials for accessing your channel, please keep confidential.
Publishing and subscribing to the channels requires credentials.
In order to visualize the data on ObjectBlocks, we need to create a dashboard. Add a new dashboard via the menu.
Add a tool.
Many kinds of representations are available, for this tutorial, text will be used.
Select the channel we’ve just created.
Search for Kittenbot and import KittenWifi.
Fill in the authentication credentials for ObjectBlocks.
MQTT Host: hub2.objectblocks.cc Node: Does not matter Username: Your username(Host) Password: Your password(Pass)
Copy and paste your ObjectBlocks topic into the publishing block.
Copy and paste your ObjectBlocks topic into the subscribing block.
Press A to publish a random number to ObjectBlocks, the number is shown on the Dashboard as well as the Micro:bit.
There may be updates to extensions periodically, please refer to the following link to update/downgrade your extension.