# How do i Wire And Program a Micro Bit

**URL:** <https://forum.makecode.com/t/how-do-i-wire-and-program-a-micro-bit/18968>\
**Category:** micro:bit\
**Tags:** extension\
**Created:** [April 5, 2023, 11:18pm UTC](https://forum.makecode.com/t/how-do-i-wire-and-program-a-micro-bit/18968 "2023-04-05T23:18:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ImAnAmazingPerson](https://avatars.discourse-cdn.com/v4/letter/i/d6d6ee/32.png) [@ImAnAmazingPerson](https://forum.makecode.com/u/ImAnAmazingPerson)\
**Post date:** [April 5, 2023, 11:18pm UTC](https://forum.makecode.com/t/how-do-i-wire-and-program-a-micro-bit/18968/1 "2023-04-05T23:18:04Z")

</div>

I am Trying to Use a Micro Bit to use Basically Battery Powered Xmas lights.

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [April 6, 2023, 4:26pm UTC](https://forum.makecode.com/t/how-do-i-wire-and-program-a-micro-bit/18968/2 "2023-04-06T16:26:04Z")

</div>

Idk, string lights probably need a more powerful power source! also depends on what lights you have.

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [April 6, 2023, 4:53pm UTC](https://forum.makecode.com/t/how-do-i-wire-and-program-a-micro-bit/18968/3 "2023-04-06T16:53:17Z")

</div>

Hi!

You might want to look at [microbit.org](https://microbit.org/), especially the [Getting started](https://microbit.org/get-started/first-steps/introduction/) page.

You may want to consider using [NeoPixels](https://support.microbit.org/support/solutions/articles/19000130206-using-neopixels-with-the-micro-bit) for lights (it’s also possible to do individual [LEDs](https://support.microbit.org/support/solutions/articles/19000101863-connecting-an-led-to-the-micro-bit)).

If you haven’t done electronics before, be sure to only do the types of wiring and activities listed at places like [microbit.org](https://microbit.org/), which use low power. Do not mix the micro:bit with things that are connected to bigger power sources (nothing connected to mains / wall sockets).

---

<div class="post-metadata">

**Author:** ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Post date:** [April 6, 2023, 5:52pm UTC](https://forum.makecode.com/t/how-do-i-wire-and-program-a-micro-bit/18968/4 "2023-04-06T17:52:41Z")

</div>

Hi

as others here have said - DO NOT mix wiring types / different power requirements!

If you could share a picture of the lights you want to use along with any make / model we may be able to advise further.

Do you want to just be able to turn them on/off or did you have something else in mind?

---

<div class="post-metadata">

**Author:** ![ImAnAmazingPerson](https://avatars.discourse-cdn.com/v4/letter/i/d6d6ee/32.png) [@ImAnAmazingPerson](https://forum.makecode.com/u/ImAnAmazingPerson)\
**Post date:** [April 7, 2023, 9:47pm UTC](https://forum.makecode.com/t/how-do-i-wire-and-program-a-micro-bit/18968/5 "2023-04-07T21:47:02Z")

</div>

The Lights Will Have a power source on it own

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [April 7, 2023, 11:33pm UTC](https://forum.makecode.com/t/how-do-i-wire-and-program-a-micro-bit/18968/6 "2023-04-07T23:33:41Z")

</div>

🤷 i dont really know XD

---

<div class="post-metadata">

**Author:** ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Post date:** [April 10, 2023, 5:23pm UTC](https://forum.makecode.com/t/how-do-i-wire-and-program-a-micro-bit/18968/7 "2023-04-10T17:23:25Z")

</div>

Without knowing further details it sounds like you will need to connect the lights & MicroBit to a relay . The relay will turn the lights on / off based on a signal from the MicroBit .

Several relay add-ons are available for the MicroBit…here is just one example

> **[micro:bit - electronic kits | MonkMakes](https://monkmakes.com/mb_relay)**
>
> MonkMakes is a manufacturer of electronic educational kits and add-ons for BBC micro:bit, Raspberry Pi and Arduino

---

<div class="post-metadata">

**Author:** ![ImAnAmazingPerson](https://avatars.discourse-cdn.com/v4/letter/i/d6d6ee/32.png) [@ImAnAmazingPerson](https://forum.makecode.com/u/ImAnAmazingPerson)\
**Post date:** [April 12, 2023, 3:58pm UTC](https://forum.makecode.com/t/how-do-i-wire-and-program-a-micro-bit/18968/8 "2023-04-12T15:58:36Z")

</div>

i figured out how to do it

---

<div class="post-metadata">

**Author:** ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Post date:** [April 12, 2023, 5:41pm UTC](https://forum.makecode.com/t/how-do-i-wire-and-program-a-micro-bit/18968/9 "2023-04-12T17:41:06Z")

</div>

Hi

Great to hear that !

Any chance you might be prepared to share your solution here as i am sure others may have similar project that your experience could be of benefit to

Regards
