PragmaticPhil
Published © GPL3+

Grow Room Pt1: Control Mains with XinaBox and micro:bit

Turn mains electricity on and off using a micro:bit with an IX01 breakout and a 3rd party relay.

BeginnerFull instructions provided30 minutes331
Grow Room Pt1: Control Mains with XinaBox and micro:bit

Things used in this project

Hardware components

IX01
XinaBox IX01
A simple breakout board that we can plug 3rd party peripherals into and address using PIN0 and PIN1 on the micro:bit
×1
XinaBox - IM01
A bridge to connect XinaBox xChips to micro:bit.
×1
XC10
XinaBox XC10
Connectors to join xChips together. We only need 1 for this
×1
BBC micro:bit board
BBC micro:bit board
We use this as our microprocessor.
×1
Generic mains extension cord
We use an extension cord here - we attach the relay to the cord then turn power to the cord on and off. You can use an appliance instead.
×1
1 channel 3.3V mains relay
This is just the best priced one I could find - any option that is graded for mains and which runs on 3.3V should do.
×1

Software apps and online services

MakeCode
Microsoft MakeCode
We use this to write and flash the code onto the microbit.

Hand tools and fabrication machines

10 Pc. Jumper Wire Kit, 5 cm Long
10 Pc. Jumper Wire Kit, 5 cm Long
Any wires will do - needed to connect the IX01 breakout to the relay

Story

Read more

Credits

PragmaticPhil

PragmaticPhil

17 projects • 13 followers
Hobbyist: some of this I write from scratch, some I work with developers and test / edit. Java + micro:bit are my thing. Work at XinaBox.cc.
Thanks to KalbeAbbas.

Comments

Add projectSign up / LoginAbout BBC micro:bit