micro bit is an entry level development board designed by BBC for teens programming education. It supports the PXT graphical programming interface developed by Microsoft and can be used under Windows, MacOS, IOS, Android and many other operating systems without downloading the compiler.
relay breakout board for micro:bit has integrated a 4-way 5V relay module, fully compatible with micro bit development board. It can work only need to insert micro bit into relay shield, then input DC 5V voltage on the relay VIN GND port, pretty simple and convenient.
4-way relay on the board is active high. Its control terminals are respectively connected to P4, P3, P7 and P6 of the micro bit development board. You only need to control the high or low output level of P4, P3, P7 and P6 , thus control the 4 relay on/off.
- Input Voltage:DC 5V
- Working Mode:high level in effective
- Contact Capacity: AC120V/3A
You can make the code below on the micro:bit Blocks Editor ; finally save the code and send it to your micro:bit.
Insert micro:bit development board into keyestudio relay breakout board; send the code to micro:bit main board and power up, you can see the 4-way relay is connected and then disconnected one by one.
You can connect the additional circuit to realize your project designs.
Note that here we use a power transfer module to supply voltage input 5V.
Finally the leds on 4-way relay breakout board are connected and then disconnected one by one, and the external LEDs are on and off one by one, circularly.
Download Datasheet and Code: