Hello friends, I hope you all are doing great. Today, I am going to share the Circuit Playground Bluefruit Library for Proteus, so you can run a NeoPixel and Bluetooth LE simulation of Adafruit's Circuit Playground Bluefruit. This round board packs an nRF52840, a ring of ten NeoPixels, two buttons, a light sensor, a temperature sensor and an accelerometer onto 50.6 mm - everything a first project needs without a single wire. Our part has its real size and its 14 alligator pads, and it runs your Arduino sketch in Proteus 8.5.
Circuit Playground Bluefruit Library for Proteus
Latest version: V1.0 (November 2026, this tutorial)
Other new Arduino boards: UNO R4 WiFi · Nano ESP32 · UNO WiFi Rev2 · Nano 33 IoT · UNO Q · UNO R4 Minima · Nano Every · MKR WiFi 1010 · Nano RP2040 Connect · STM32 Black Pill · Nucleo-F401RE · STM32 Blue Pill · Teensy 4.1 · Arduino Due · Arduino Leonardo · Arduino Micro · BBC micro:bit V2 · GIGA R1 WiFi · MKR WAN 1310 · Nano 33 BLE Sense · XIAO nRF52840 Sense · RAK4631 WisBlock · Nano Matter · nRF52840 DK · nRF5340 DK · nRF9151 DK · nRF7002 DK · Nordic Thingy:53 · xG24 Dev Kit · xG24 Explorer Kit · Thunderboard BG22 · SiWx917 Dev Kit · B-L475E-IOT01A · NUCLEO-WB55RG · NUCLEO-WL55JC1 · NUCLEO-H743ZI2 · SAM R21 Xplained Pro · FRDM-MCXN947 · Portenta H7 · LP-CC2652R7 · PSoC 6 WiFi-BT · Feather nRF52840 · Thingy:91 X · xG26 Dev Kit · nRF52 DK · nRF52833 DK · nRF52840 Dongle · nRF5340 Audio DK · nRF54H20 DK · nRF54LM20 DK · nRF9160 DK · nRF9161 DK · nRF21540 DK · Thingy:52 · Thingy:91 · ItsyBitsy nRF52840 · SparkFun Pro nRF52840 Mini · Adafruit CLUE · XIAO nRF54L15 · Heltec T114 · nRF9160 Feather
RF modules: nRF24L01 · nRF24L01 PA LNA · CC1101 · RFM69HCW · HC-12 · 433MHz RF · XBee
Temperature and weather sensors: DHT11 / DHT22 · DS18B20 · BME280 · BMP280 · SHT31 · AHT20 · BME680 · MLX90614 · MAX6675
Helping Tools
- Laptop WiFi Monitor: a laptop on the Wi-Fi of your design: a browser, a TCP / UDP terminal and ping
- Mobile WiFi Monitor: a smartphone that opens the pages of your board and sends it commands
- Serial Monitor Advance: a serial terminal window for the UART of your board
For the demo we built a Bluetooth LE mood ring: the NeoPixels show the room's temperature, turn into a night light in the dark, play a rainbow on a button press and sparkle when you shake the board - and a phone reads it all over Bluetooth.
NOTICE: Proteus has no nRF52840 model, so our team has put a lot of effort into building this board ourselves: the ten NeoPixels, the buttons, the sensors and Bluetooth LE to the phone are all our own model, and your sketch compiles with our free TEP Boards for Proteus add-on. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below. And if our free libraries help you, you can buy us a coffee. So, let's get started with the Circuit Playground Bluefruit Library for Proteus:
What is the Circuit Playground Bluefruit?
The Circuit Playground Bluefruit is Adafruit's round learning board built around Nordic's nRF52840 (an Arm Cortex-M4F with Bluetooth LE). It was made for classrooms, wearables and makers: the parts you would normally wire on a breadboard are already on the board, and 14 large pads take alligator clips or conductive thread, so it can be sewn into clothes. It runs Arduino sketches, CircuitPython and MakeCode.
| Part | The real board | In the library |
|---|---|---|
| Processor | nRF52840, Bluetooth LE 5 | your Arduino sketch, ArduinoBLE |
| NeoPixels | 10 RGB LEDs in a ring on D8 | all 10 light in your colours |
| Buttons | A (D4) and B (D5), HIGH when pressed; RESET | A and B clickable, RESET |
| Sensors | light sensor A8, thermistor A9, LIS3DH accelerometer | set from the Sensors window |
| Sound | a speaker on D12, a PDM microphone | tone() on the AUDIO pad; the microphone drawn |
| Pads | 14: A1 to A6, TX, AUDIO, 3.3V, VOUT, GND | the same pads, as pins of the part |
| Size | 50.6 mm round | drawn at real size |
NeoPixels in a Few Words
A NeoPixel is a red, a green and a blue LED with a tiny controller in one package. All ten share one data wire: the board sends 24 bits for the first pixel, which keeps them and passes the rest down the chain. So one pin sets every colour on the ring, and the colours stay until the next update. In the Arduino world you set the colours first and then call show() to send them all at once.
The Circuit Playground Family
The family started with the Circuit Playground Classic (an ATmega32u4), followed by the Express (an ARM SAMD21) and the Bluefruit. They share the round shape, the ring of NeoPixels and the 14 pads; the Bluefruit adds Bluetooth LE, so a phone can read and control a project without any cable.
A simulation lets you try a whole idea before the board is on your desk: the NeoPixel patterns, the buttons, the sensors and the phone. When the sketch works in the Proteus simulation, the real board only has to confirm it.
Features of the Circuit Playground Bluefruit Library for Proteus
- The board as it looks: the round blue board with the ring of NeoPixels, buttons A and B, RESET, the slide switch, the speaker, the sensors, the micro-B USB, the JST battery socket and all 14 pads, at its real size, with our small TEP signature.
- Ten NeoPixels: every pixel lights in the colour your sketch sends, with the brightness you set.
- Adafruit's names:
CircuitPlayground.begin(),setPixelColor(),leftButton(),temperature(),lightSensor(),motionX()and more, through the board package's Adafruit_CircuitPlayground. - A Sensors window: set the temperature, the light and the movement while the simulation runs.
- Bluetooth LE: ArduinoBLE with services, characteristics, descriptors and notifications; our Mobile WiFi Monitor is the phone.
- A complete package: about 3.4 MB with the part, the add-on, the phone and the demo, without the source code of the models.
The Circuit Playground Bluefruit in Proteus Simulation
Search PLAYGROUND in Pick Devices; the device CIRCUIT PLAYGROUND BLUEFRUIT is in TEPCPB.LIB (Microprocessor ICs, Bluetooth Boards), with the prefix U. The USB port opens the serial monitor, a click on the nRF52840 the Sensors window.
The Pads
| Pads | What the library does with them |
|---|---|
| A1, A2, A3 (6, 9, 10) | GPIO, PWM, interrupt, analogRead 0 to 1023 |
| A4 / SCL, A5 / SDA (3, 2) | GPIO, analogRead, Wire |
| A6 / RX, TX (0, 1) | GPIO, Serial1; A6 also analogRead |
| AUDIO (D12) | the speaker's pad: PWM and tone() |
| 3.3V, VOUT, GND | the supplies |
| on the board | buttons A 4 and B 5, the slide switch 7, the NeoPixels 8, the red LED 13, light A8, temperature A9 |
Download Circuit Playground Bluefruit Library for Proteus
Click the button below to download Circuit-Playground-Bluefruit-Library-for-Proteus-v1.0.zip (about 3.4 MB, without the source code of the models):
Circuit Playground Bluefruit Library for Proteus V1.0- README.txt: installation, the demo, the pins, the properties, troubleshooting and the limits.
- Proteus Library Files:
TEPCPB.LIBand the phone and laptop libraries. - Proteus Model Files:
TEPNET.DLL. - Arduino Code: the demo sketch and the TEP Boards for Proteus add-on 1.98.0, with its own Adafruit_CircuitPlayground and ArduinoBLE.
- Proteus Simulation: the demo project, its HEX file and a copy of the DLL.
No Proteus yet? Read How to Download and Install Proteus 7 and 8. New to libraries? Follow How to Install a New Library in Proteus.
How to Install Circuit Playground Bluefruit Library for Proteus
- Close Proteus and extract the whole zip file, for example to your Desktop.
- Copy the files from Proteus Library Files into the LIBRARY folder of Proteus.
- Copy
TEPNET.DLLfrom Proteus Model Files into the MODELS folder, replacing an older one. - Delete
TEPCPB.IDXfrom the LIBRARY folder if it is there. - For your own sketches, copy Arduino Code\TEP Boards for Proteus\hardware into your Arduino sketchbook (Documents\Arduino) and restart the Arduino IDE; the board is Adafruit Circuit Playground Bluefruit (TEP Proteus). Do not install Adafruit's Circuit Playground library for this board - the add-on brings its own.
- Start Proteus, press P and search for PLAYGROUND.
Demo: a Bluetooth LE Mood Ring in Simulation
A ring of coloured lights is a friendly way to show a number: a glance tells you whether the room is cool or warm. Our mood ring turns the Circuit Playground into a small thermometer lamp for a desk or a child's room, with a night light that switches itself on in the dark and a phone that shows the values.
Open CPB-BLE-Mood-Ring.pdsprj. U1 runs CPB_BLE_Mood_Ring.hex; everything else is on the board itself - the NeoPixels, the buttons and the sensors. MOB1 is the phone, our Mobile WiFi Monitor.
| What | What the ring does |
|---|---|
| THERMOMETER | one pixel for every 2 C above 15 C, from blue to red |
| the room goes dark | the whole ring turns amber: the night light |
| button A | THERMOMETER or RAINBOW |
| button B | the ring off or on |
| a shake | a white sparkle |
| the red LED | a phone is connected |
The Thermometer
thermoPixels() turns the temperature into a number of pixels - 2 C each, starting at 15 C, never more than ten:
int thermoPixels() { // how many pixels the temperature lights
int n = (int)((tempC - T_LOW) / C_PER_PIXEL + 0.5);
return n < 0 ? 0 : n > 10 ? 10 : n;
}
Drawing the Ring
drawRing() sets all ten colours and then sends them with one show(), so the ring changes in one step. The thermometer blends from blue to red as it fills; the rainbow uses colorWheel() and turns a little every 100 ms:
void drawRing() { // the whole ring, then one show()
CircuitPlayground.strip.clear();
if (!ringOn) { CircuitPlayground.strip.show(); return; }
if (millis() < sparkleUntil) { // a shake: white
for (uint8_t k = 0; k < 10; k++) CircuitPlayground.strip.setPixelColor(k, 255, 255, 255);
} else if (night) { // the night light: warm amber
for (uint8_t k = 0; k < 10; k++) CircuitPlayground.strip.setPixelColor(k, 255, 110, 10);
} else if (mode == THERMO) { // the thermometer: blue to red
const int n = thermoPixels();
for (int k = 0; k < n; k++) CircuitPlayground.strip.setPixelColor(k, 25 * k, 0, 255 - 25 * k);
} else { // the rainbow, turning
for (uint8_t k = 0; k < 10; k++) CircuitPlayground.strip.setPixelColor(k, CircuitPlayground.colorWheel((uint8_t)(k * 25 + wheel)));
}
CircuitPlayground.strip.show();
}
Reading the Room
Five times a second readRoom() reads the temperature, the light and the accelerometer. The ring is only redrawn when something changed: half a degree, the light crossing a limit, or a shake - the acceleration more than 6 m/s² away from gravity:
void readRoom() { // the sensors: the temperature, the light, a shake
tempC = CircuitPlayground.temperature();
light = CircuitPlayground.lightSensor();
if (fabs(tempC - shownTemp) >= 0.5) {
shownTemp = tempC;
Serial.print(F(">> Temperature ")); Serial.print(tempC, 1); Serial.print(F(" C: ")); Serial.print(thermoPixels()); Serial.println(F(" pixels"));
tellPhone(); drawRing();
}
if (!night && light < DARK_BELOW) { night = true; Serial.println(F(">> DARK: the night light ON")); tellPhone(); drawRing(); }
else if (night && light > LIGHT_ABOVE) { night = false; Serial.println(F(">> Light again: the night light OFF")); tellPhone(); drawRing(); }
const float x = CircuitPlayground.motionX(), y = CircuitPlayground.motionY(), z = CircuitPlayground.motionZ();
if (fabs(sqrt(x * x + y * y + z * z) - 9.8) > SHAKE_MS2 && millis() >= sparkleUntil) {
sparkleUntil = millis() + SPARKLE_MS;
Serial.println(F(">> SHAKE: a sparkle"));
drawRing();
}
}
The Buttons
Buttons A and B read HIGH when pressed, as on the real board. readButtons() acts on the press, after a 30 ms debounce:
void readButtons() { // A: the mode, B: on / off (HIGH = pressed)
const bool a = CircuitPlayground.leftButton(), b = CircuitPlayground.rightButton();
if (a != lastA && millis() - changedA >= DEBOUNCE_MS) {
lastA = a; changedA = millis();
if (a) {
mode = mode == THERMO ? RAINBOW : THERMO;
Serial.print(F(">> BUTTON A: ")); Serial.println(mode == THERMO ? F("THERMOMETER") : F("RAINBOW"));
CircuitPlayground.playTone(880, 40, false);
tellPhone(); drawRing();
}
}
if (b != lastB && millis() - changedB >= DEBOUNCE_MS) {
lastB = b; changedB = millis();
if (b) {
ringOn = !ringOn;
Serial.println(ringOn ? F(">> BUTTON B: the ring ON") : F(">> BUTTON B: the ring OFF"));
tellPhone(); drawRing();
}
}
Telling the Phone
Three Bluetooth LE characteristics carry the temperature, the light and the ring's mode as text, each with notifications:
void tellPhone() {
char b[16];
dtostrf(tempC, 0, 1, b); strcat(b, " C");
tempChar.writeValue(b);
lightChar.writeValue(String(light));
ringChar.writeValue(ringName());
}
Run the Simulation
Press Run. The serial monitor - the same window as our TEP Serial Monitor Advance for Proteus - shows the start; the ring is a thermometer at the room's 23.5 C:
Circuit Playground Bluefruit BLE Mood Ring - The Engineering Projects
>> Temperature 23.5 C: 4 pixels
Advertising as "CPB Ring" A = the mode, B = the ring off / on, shake = a sparkle
Status: 23.5 C, light 101, THERMOMETER
Phone connected
Connect the Phone
On the phone open the Bluetooth app, press SCAN and connect to "CPB Ring". The red LED lights:
A Warmer Room
In the Sensors window press +10 at Temperature: 33.5 C fills nine pixels, the last ones red:
Lights Out
Press DARK: the light sensor reads almost nothing, and the whole ring turns into a warm amber night light:
A Rainbow
Press ROOM again, then click button A on the board: the rainbow turns round the ring. Here is the complete circuit while the simulation runs:
Shake and Switch Off
Press SHAKE in the Sensors window for a white sparkle, then click button B: the ring goes dark, and a second click brings it back:
>> Temperature 33.5 C: 9 pixels
Status: 33.5 C, light 101, THERMOMETER
>> DARK: the night light ON
Status: 33.5 C, light 2, NIGHT LIGHT
>> Light again: the night light OFF
>> BUTTON A: RAINBOW
Status: 33.5 C, light 101, RAINBOW
>> SHAKE: a sparkle
>> SHAKE: a sparkle
>> BUTTON B: the ring OFF
>> BUTTON B: the ring ON
Brightness and the Eye
NeoPixels are very bright, so Adafruit's library starts them at a brightness of 20 out of 255; the demo uses 60. The brightness scales every colour before it is sent. Our eyes see light on a curve - a small current already looks quite bright - so the part shows the pixels as the eye would see them, and a low brightness still glows on the screen.
What the Data Wire Carries
NeoPixels of this kind listen to a single-wire signal at 800 kilobits per second. Each pixel takes 24 bits - eight for green, eight for red and eight for blue, in that order - and passes everything after them to the next pixel. A short pause on the line tells all pixels to show their new colours together. The library does the timing for you, so a sketch only sets colours and calls show().
Power and Current
A NeoPixel at full white draws roughly 60 mA, so ten of them could ask for more than half an ampere. Adafruit's guide says the board's regulator gives about 500 mA in total and advises budgeting about 300 mA for your own parts, or 450 mA when the NeoPixels are not used. That is one more reason to keep the brightness moderate; on the real board pin D35 can even switch the NeoPixels and the light sensor off to save power.
Colours by Hue
Picking colours as red, green and blue numbers is easy for fixed colours but awkward for smooth changes. colorWheel() takes one number from 0 to 255 and walks round the colour wheel from red through green and blue back to red; the strip's ColorHSV() does the same with a hue from 0 to 65535 plus saturation and brightness. The rainbow in the demo just adds a step to each pixel's position on the wheel.
The Pads as Touch Sensors
On the real board every pad except AUDIO can sense a touch through capacitance, so a fruit or a piece of foil on an alligator clip becomes a key. Touch is not part of the simulation - readCap() answers 0 - but the pads work as normal pins, so a push button from a pad to 3.3V does the same job on the sheet.
Using the Pads with Other Parts
The pads are pins of the part, so you can wire other Proteus parts to them: an LED with a resistor on A1, a sensor on SCL and SDA with the Wire library, a serial module on RX and TX as Serial1, or a potentiometer on A2 for analogRead. AUDIO carries the tone of playTone(), ready for a small buzzer.
The Temperature Sensor
The board measures the temperature with a 10k NTC thermistor in a divider with a 10k resistor on A9. As it warms, its resistance falls and the reading rises; the B equation (B 3380 for this part) turns the resistance into degrees. The Sensors window sets the temperature, and analogRead(A9) answers as the real divider would.
The Light Sensor
The light sensor is a small phototransistor on A8: the more light falls on it, the more current flows and the higher the reading. It reads a few counts in the dark and around a hundred in a lit room. The demo uses two limits - below 10 the night light comes on, above 30 it goes off - so a reading that wobbles near one limit does not make the ring flicker.
Detecting a Shake
At rest the accelerometer feels only gravity: 9.8 m/s² in total, whichever way the board is tilted. A shake adds quick, strong changes. The sketch takes the length of the acceleration vector and compares it with gravity; a difference of more than 6 m/s² counts as a shake, and tilting the board alone never does.
Bluetooth LE on a Wearable
Because the board is small and runs from a battery, it is often sewn into a costume or a bag. Bluetooth LE lets a phone read it without a cable, and notifications send each change the moment it happens. The descriptors with the code 2901 give each value a readable name, so the phone shows "Temperature", "Light" and "Ring" instead of long UUIDs.
Try It Yourself
- Let the phone choose the night light's colour.
- Show the light level as a second bar in green.
- Play a short tune with playTone() when the room gets too warm.
- Use the slide switch to choose Celsius or Fahrenheit on a real board.
Ideas to Extend the Ring
- A timer that counts down on the ring, one pixel a minute.
- A spirit level: light the pixel that points down.
- A step counter with the accelerometer.
- A reaction game with buttons A and B.
- A binary counter: count the presses of button A and show the number on the ring.
Your Own Sketches
Write the sketch in the Arduino IDE with the board Adafruit Circuit Playground Bluefruit (TEP Proteus), use Sketch > Export Compiled Binary and set the part's PROGRAM property to the .hex.
Moving to a Real Circuit Playground Bluefruit
- Install Adafruit's nRF52 board package and Adafruit's Circuit Playground library.
- Keep the CircuitPlayground calls: the names are Adafruit's own.
- For Bluetooth use Adafruit's Bluefruit library or an ArduinoBLE-compatible one for the nRF52840.
- Connect a 3.7 V Li-Po to the JST socket if the project should run without USB.
The colours, the limits and the logic stay the same; on the real board Adafruit's core takes the place of ours.
Properties of the Circuit Playground Bluefruit
| Property | What it does |
|---|---|
| PROGRAM | the sketch: a .hex from TEP Boards for Proteus (board "Adafruit Circuit Playground Bluefruit") |
| MONITOR, BAUD, AUTOOPEN | the built-in serial monitor: on, its baud rate (115200), open at Run |
| TEMPERATURE | the room at Run (C): the Sensors window starts there |
Troubleshooting
- The NeoPixels stay dark: call
CircuitPlayground.begin(); onCircuitPlayground.stripcallshow()after setting the colours. - A button never reads pressed: the buttons read HIGH when pressed, not LOW.
- The light never reads DARK: set DARK in the Sensors window - a click on the nRF52840 opens it.
- The IDE takes the wrong library: remove Adafruit's Circuit Playground library from Documents\Arduino\libraries.
- A number goes wrong above 32767: int is 16 bits in the simulation - use long.
Limitations of the Simulation
- The slide switch is drawn and reads its left position; the microphone, the touch pads and the speaker's sound are not modelled.
- Use CircuitPlayground.strip for the NeoPixels; a separate NeoPixel library on pin 8 is not supported.
- Your sketch gets 8 KB of RAM in the simulation, and int is 16 bits there.
- Circuit Playground, Bluefruit and NeoPixel are names of Adafruit Industries, nRF52840 of Nordic Semiconductor ASA and Arduino of Arduino; this library is not made or endorsed by them or by Labcenter.
- Tested in Proteus 8.5 in November 2026 (the demo as shipped, about 35 s of simulation). Proteus 7 is not supported.
So, that was all about the Circuit Playground Bluefruit Library for Proteus. I hope it helps you try your NeoPixel and Bluetooth ideas in a simulation before the board is on your desk. If you have any questions, ask in the comments and I will help you out. Till the next tutorial, take care and have fun!