# Andruino Nano 33 BLE as LED controller

**URL:** <https://forum.core-electronics.com.au/t/andruino-nano-33-ble-as-led-controller/14467>\
**Category:** Product Questions\
**Created:** [29 June 2022 02:50 UTC](https://forum.core-electronics.com.au/t/andruino-nano-33-ble-as-led-controller/14467 "2022-06-29T02:50:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve205187](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/steve205187/32/6960_2.png) [@Steve205187](https://forum.core-electronics.com.au/u/Steve205187)\
**Post date:** [29 June 2022 02:50 UTC](https://forum.core-electronics.com.au/t/andruino-nano-33-ble-as-led-controller/14467/1 "2022-06-29T02:50:54Z")

</div>

Hi everybody,

I’m a reasonably experienced software developer but this is my first adventure into hardware. The last time I touched a soldering iron was in high school and I spent most of my time making solder balls on the workbench.

My partner is wanting to build a handheld motion-controlled light (think shake to turn on and change brightness/color) in something the size of a 250ml drink can or thereabouts. I’ve had Andruino suggested as the control board and based on some light review of the options the Nano 33 BLE seems like a good option as it has an IMU built-in.

Next, I was looking at LED options something RGB(W), addressable and low/no solder is needed.  
Given the size constraints, a NeoPixel Stick seems like a good option but I’m not sure the Arduino Nano 33 BLE can power it directly?

Lastly, power is something that I’m having a lot of trouble with my initial thought was to just use a little USB battery and run the Nano off that and the LEDs off the Nano? If I can’t manage that I’m guessing I’ll need separate power for both or can they share a battery either in series or parallel?

Thanks in advance for any advice, nothing above is set in stone if there’s a simpler solution that can fit the brief I’m happy to explore it.

Cheers,  
Steve

---

<div class="post-metadata">

**Author:** ![Jeff105671](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jeff105671/32/3729_2.png) [@Jeff105671](https://forum.core-electronics.com.au/u/Jeff105671)\
**Post date:** [29 June 2022 04:01 UTC](https://forum.core-electronics.com.au/t/andruino-nano-33-ble-as-led-controller/14467/2 "2022-06-29T04:01:29Z")

</div>

> [@Steve205187](#):
>
> I’ll need separate power for both or can they share a battery either in series or parallel?

There should be no need for 2 supplies: The LEDS can be driven from the same supply as the MCU. If it’s a 5V supply then you drive the Nano BLE from the USB port… You then use use a logic level shifter between the Nano and a 5v LED module, although a simple resistor divider would work just as well. If you use a 3.3V supply then you would drive the Nano BLE through VIN and connect direct to a 3.3V LED module. In either case, if you are not using modules for the LEDs you can use a dropping resistor. Your power supply can be either a module with battery, charger and regulator, or you can use a battery with separate regulator and expose the battery connections for use with an external charger.

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [29 June 2022 04:11 UTC](https://forum.core-electronics.com.au/t/andruino-nano-33-ble-as-led-controller/14467/3 "2022-06-29T04:11:09Z")

</div>

Hi Steve,

> LED options something RGB(W), addressable and low/no solder is needed.

Check out our GlowBit sticks:

> **[GlowBit™ Stick - 1x8](https://core-electronics.com.au/glowbit-stick-1x8.html)**
>
> Add eight dazzling LEDs to your project or daisy chain for a longer display.

They have new WS2812v5s that are more efficient than older WS2812s, so they are better in battery-powered projects.

You’ll need to solder 3 connections total between your microcontroller and strip, but that should be it.

If you’re looking to avoid soldering entirely, our piicodev line-up uses polarised connectors that don’t require soldering and help prevent wiring errors:

> **[Raspberry Pi Pico (with Soldered Headers)](https://core-electronics.com.au/raspberry-pi-pico-soldered-headers.html)**
>
> Raspberry Pi Pico with male headers pre soldered to the board by our skilled makers here at Core Electronics.

> **[SparkFun Triple Axis Accelerometer Breakout - KX132 (Qwiic)](https://core-electronics.com.au/sparkfun-triple-axis-accelerometer-breakout-kx132-qwiic.html)**
>
> This SparkFun Triple-Axis Accelerometer Breakout is a simple Qwiic breakout for the KX132 digital accelerometer from Kionix. The KX132 is a low-power, 16-bit resolution...

> **[PiicoDev Expansion Board for Pico (Non-Recharging)](https://core-electronics.com.au/piicodev-expansion-board-for-raspberry-pi-pico.html)**
>
> Start experimenting with high-tech sensors and modules with Raspberry Pi Pico/RP2040. Use the on-board PiicoDev connector to quickly and easily connect with the PiicoDev family of sensor modules without soldering.

> **[PiicoDev 3x RGB LED Module](https://core-electronics.com.au/piicodev-3x-rgb-led-module.html)**
>
> Add dazzle to your project with three individually controllable RGB LEDs.

Another added bonus is that it features a LiPo charger in the expansion board, so you could use that for portable power, though you may have trouble with idle power consumption.

You may also want to look into vibration sensors if you wanna simplify things a bit:

> **[Medium Vibration Sensor Switch](https://core-electronics.com.au/medium-vibration-sensor-switch.html)**
>
> The "poor man's" accelerometer/motion sensor! These spring-vibration switches are medium sensitivity non-directional vibration induced trigger switches. Inside is...

Let us know if this gives you more questions 🙂  
-James

---

<div class="post-metadata">

**Author:** ![Steve205187](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/steve205187/32/6960_2.png) [@Steve205187](https://forum.core-electronics.com.au/u/Steve205187)\
**Post date:** [29 June 2022 06:07 UTC](https://forum.core-electronics.com.au/t/andruino-nano-33-ble-as-led-controller/14467/4 "2022-06-29T06:07:25Z")

</div>

Thanks, Jeff and James.  
I’d looked at the GlowBit briefly but gathered it wasn’t out-of-the-box compatible with the Nano 33 but I may have misinterpreted the description.  
The Rasberry Pi Pico looks like a really good option when paired with the accelerometer breakout and led module or glowbit module.

What battery would you recommend Jeff? Overall run time doesn’t need to be huge as it’s more of a prototype project but it does need to sit with the LEDs off but the controller and accelerometer running to detect being picked up.

---

<div class="post-metadata">

**Author:** ![Jeff105671](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jeff105671/32/3729_2.png) [@Jeff105671](https://forum.core-electronics.com.au/u/Jeff105671)\
**Post date:** [29 June 2022 07:38 UTC](https://forum.core-electronics.com.au/t/andruino-nano-33-ble-as-led-controller/14467/5 "2022-06-29T07:38:35Z")

</div>

There are any number of different batteries that will suit, depending on how much capacity you need. The actual design question is the recharging and regulating. If you go the pico route then it’s all done for you in one add-on module:

> **[Pimoroni LiPo SHIM for Pico](https://core-electronics.com.au/pimoroni-lipo-shim-for-pico.html)**
>
> This SHIM provides a convenient way of powering your Raspberry Pi Pico from a LiPo/LiIon battery. You can recharge the battery easily by providing power to the Pico's USB port.

A similar option for any 5V MCU and removable rechargeable AA batteries:

> **[AA Boost Module](https://core-electronics.com.au/aa-boost-module.html)**
>
> The AA boost Module is DFrobot's exclusive product.One key feature is solving the 5V battery power supply problem. As we all know, a dry battery is 1.5V , with two or three you still cannot reach 5V.

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [29 June 2022 22:11 UTC](https://forum.core-electronics.com.au/t/andruino-nano-33-ble-as-led-controller/14467/6 "2022-06-29T22:11:41Z")

</div>

This is probably a good starting point.  
It takes you through most of the hardware and software to get it working.  
Highly recommend the RPi Pico, easy to use and program using Thonny and Python.

> **[GlowBit Stick 1x8 - Python and MicroPython Guide - Tutorial Australia](https://core-electronics.com.au/guides/glowbit/glowbit-stick-1x8-Python-and-MicroPython-Guide/)**
>
> Introduction 
> 
> This guide will cover the basic functionality of the GlowBit Python library when driving a GlowBit Stick 1x8 module. 
> 
> To follow along, it's best to have: 
> 
>  
> 
> A GlowBit Stick 1x8 
> 
> A Raspberry Pi Pico or Raspberry Pi 
> 
> Some Pin...

Mounting the Pico on this allows easy connection of a LiPo battery and connection to an I2C device.  
It has a built in charge IC for the LiPo.  
The Glowbit would be connected to the LiPo for power.

> **[PiicoDev LiPo Expansion Board for Raspberry Pi Pico](https://core-electronics.com.au/piicodev-expansion-board-for-raspberry-pi-pico.html)**
>
> The PiicoDev® LiPo Expansion Board for Raspberry Pi Pico is a great way to start experimenting with Raspberry Pi Pico/RP2040. Use the on-board PiicoDev connector to quickly and easily connect with the PiicoDev family of sensor modules without...

This device can be used to detect shaking etc. I2C interface. (cheapest that will do the job)

> **[Pimoroni MSA301 3DoF Motion Sensor Breakout](https://core-electronics.com.au/pimoroni-msa301-3dof-motion-sensor-breakout.html)**
>
> A simple 3 Degrees of Freedom accelerometer breakout that measures acceleration in three axes - X, Y, and Z. If you need simple and reliable motion detection for your project, then this is a great choice!

Just a few ideas. Highly recommend the tutorial as a start.  
Cheers  
Jim
