# Bluetooth > Connect Breeze Booth to Bluetooth LE devices such as LED controllers and sensors, and build your own with CircuitPython or Arduino. ## About Bluetooth Breeze Booth can connect to compatible Bluetooth LE devices, so it can work with hardware such as lights, LED strips, buttons, sensors and payment systems. The app tells the device which screen is showing, and the device can send commands back, such as starting a session. ## Connect a device 1. Go to **App Settings** and turn on **Show advanced settings**. 2. Select **Connect to Bluetooth**. 3. Tap **Set Bluetooth prefix** and enter the start of your device's ID (see below). The line under **Connect to Bluetooth** shows the status: | Status | Meaning | |---|---| | Scanning… | No compatible device found yet. It may also list compatible devices whose IDs don't match your prefix | | Connected to: `` | Connected to the device with that ID | ### Bluetooth prefix The prefix sets which devices the app will connect to. For example, for an LED controller with the ID `Breeze_LED_3c03056712`, set the prefix to `Breeze_LED`. > **Tip** > > With several booths, each with its own controller, enter the **full** ID as the prefix (e.g. `Breeze_LED_3c03056712`) so each booth connects to the right one. ## Messages to the device While an event is running, the app sends a status message each time a screen is shown. For example, on the ready screen: ``` s:cameleon/portrait/.: stillsReady ``` ### Custom commands per screen You can also set your own command string for each screen. This is for advanced users and integrators building their own devices. In the Event Editor, open **General › Bluetooth commands…**, pick a state such as `stillsReady`, and enter the string to send. When the booth reaches that state, the string is sent to the connected device. ## Technical details Breeze Booth connects to devices that provide the **Nordic UART service**. End each command with a new line. ### Commands the device can send | Command | What it does | Example response | |---|---|---| | `?d` | Model name | `d:iPad 9.7" 2018` | | `?i` | Device name | `i:My iPad` | | `?s` | Current screen | `s:cameleon/portrait/.: stillsReady` | | `?v` | Vendor ID (shown at the bottom of the settings screen) | `v:5A3B4974-C0AC-44BD-8CFA-8635367E0FC3` | | `?m` | Memory free / total in MB | `m:21742/30507` | | `?b` | Battery % and state (unplugged, charging, full, unknown) | `b:98,unplugged` | | `?t` | Date and time, `YYYYMMDD_hhmmss` | | | `?` | Value of one or more tokens | `?{date}` returns `?{date}=2022-06-30` | | `start` | Enter photo booth mode from the start screen | | | `!msg` | Show `msg` in the start screen's status area. Use `\n` for two lines | | | `` | Run any touch screen action in photo booth mode, e.g. `switchToStillsAndStart` | | For action names, see [Touch Screen Actions](https://www.breezesoftware.com/help/breeze-booth/touch-screen-actions). ### Sending text strings Send up to 10 strings with `bt:` and use them anywhere with the tokens `{bt1}` to `{bt10}`: ``` bt1:My name bt2:sales@breezesys.com bt10:string 10 ``` ## Build your own device It's fairly easy to program a microcontroller to control LED strips or read sensors and talk to Breeze Booth over Bluetooth. CircuitPython is the simplest way. Suitable boards: - **Adafruit ItsyBitsy nRF52840 Express** (recommended). Low cost, and its 5V logic output makes NeoPixels easier. - **Adafruit Feather nRF52840 Express** ### CircuitPython Set up the board for CircuitPython and install the Mu editor using Adafruit's [CircuitPython Essentials](https://learn.adafruit.com/circuitpython-essentials). The board then appears as a drive called **CIRCUITPY**, and you program it by editing `code.py`. **Example 1: Simple Bluetooth connection** - Hardware: ItsyBitsy nRF52840 Express - Download: [CircuitPython_BLE.zip](https://www.breezesoftware.com/downloads/CircuitPython_BLE.zip) Unzip it to the CircuitPython drive, open `code.py` in Mu and click **Serial** to see the output. Turn on **Connect to Bluetooth** in Breeze Booth, and status messages appear in Mu. **Example 2: NeoPixel LED strips** - Hardware: ItsyBitsy nRF52840 Express and an RGBW NeoPixel or SK6812 strip - Download: [CircuitPython_NeoPixel_BLE.zip](https://www.breezesoftware.com/downloads/CircuitPython_NeoPixel_BLE.zip) Unzip it to the CircuitPython drive and open `code.py`. Once connected, the LEDs change colour and animation for each screen. Edit `code.py` to change the number of pixels, brightness and animations. > **Warning** > > Read Adafruit's [NeoPixel Überguide](https://learn.adafruit.com/adafruit-neopixel-uberguide) on powering LEDs before connecting a strip. ### Arduino 1. Set up the Arduino IDE using Adafruit's tutorial for your board. 2. Open **File › Examples › Adafruit Bluefruit nRF52 Libraries › Peripheral › bleuart** and upload it to the board. 3. In Breeze Booth, set the Bluetooth prefix to `Bluefruit52` and connect. The status shows **Connected to: Bluefruit52**. 4. Open the Arduino Serial Monitor and run an event. A status message appears for each screen change. Sample sketch: [Breeze_Booth_LED_strips.zip](https://www.breezesoftware.com/downloads/Breeze_Booth_LED_strips.zip) ### Ideas - A button that starts the session - A proximity sensor that wakes the booth from standby when a guest walks up - A payment system that switches to the ready screen after payment > **Info** > > The examples are provided without warranty and need some programming knowledge. --- Source: https://www.breezesoftware.com/help/breeze-booth/bluetooth