SmoothOperator Micro:bit Two-Way Pager
by Vafanasj in Circuits > Microcontrollers
433 Views, 0 Favorites, 0 Comments
SmoothOperator Micro:bit Two-Way Pager
![images.png](/proxy/?url=https://content.instructables.com/FT7/DOSI/KRUN6695/FT7DOSIKRUN6695.png&filename=images.png)
![download.png](/proxy/?url=https://content.instructables.com/FZH/RK80/KRWGG0KQ/FZHRK80KRWGG0KQ.png&filename=download.png)
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
![download.jpg](/proxy/?url=https://content.instructables.com/FDZ/0PNV/KRWGG0K8/FDZ0PNVKRWGG0K8.jpg&filename=download.jpg)
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
![download.png](/proxy/?url=https://content.instructables.com/FBO/9XRP/KRWGG0L3/FBO9XRPKRWGG0L3.png&filename=download.png)
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.
![download (1).png](/proxy/?url=https://content.instructables.com/FSO/3AMC/KRWGG0LI/FSO3AMCKRWGG0LI.png&filename=download (1).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