SmoothOperator Micro:bit Two-Way Pager
by Vafanasj in Circuits > Microcontrollers
455 Views, 0 Favorites, 0 Comments
SmoothOperator Micro:bit Two-Way Pager


This is a micro:bit radio system which uses the "Radio" function on the micro:bit to send messages to other micro:bits
Supplies
2 micro:bits
A computer or phone
The micro:bit app or one of the emulators/compilers on the micro:bit site
Setting Up the Micro:bits

Setting up the micro:bits is fairly simple: plug them into a socket to turn them on, and then use the micro:bit app on your phone or use your computer (depends on whether or not you plug the micro:bit into a wall or computer) to pair with the micro:bit. After that, you can use either device to program your micro:bit.
Coding the Micro:bits

Either using the micro:bit compiler/emulator on the computer or using the micro:bit app, you have to program the micro:bits. This is the easy part, because both micro:bits share the same code and because there is a revised example here: https://makecode.microbit.org/_4b6g4Lc4mH2i
(Note: written in MicroPython)
Finishing Touches.
.png)
Once you have done the steps above, feel free to change out the variables for the words that you will radio to the other micro:bit. Both micro:bits use a message state, which changes what will be said depending on the situation (Example: In message state one a person asks "Do you want to play a game?", and then somebody else (now in message state 2) responds by saying "Yes."
Instructions:
Press button A = (Question1) or "Yes" on message state 1 or 2, respectively
Press button B = (Question2) or "No" on message state 1 or 2, respectively
Instructions:
Press button A = (Question1) or "Yes" on message state 1 or 2, respectively
Press button B = (Question2) or "No" on message state 1 or 2, respectively