Tag: RGB LED

2 articles found.

nRF52840 Dongle Library for Proteus: Bluetooth LE USB Simulation

nRF52840 Dongle Library for Proteus simulation: the busy light at BUSY, the RGB LED red and the phone connected

Hello friends, I hope you all are doing great. Today, I am going to share the nRF52840 Dongle Library for Proteus, so you can run a Bluetooth LE simulation of Nordic Semiconductor's smallest nRF52840 board: a USB stick about the size of a thumb drive. The nRF52840 inside is an Arm Cortex-M4F with 1 MB of flash, 256 KB of RAM, Bluetooth LE, 802.15.4 for Thread and native USB. With this library the dongle runs your Arduino sketch in Proteus 8.5, lights its green and RGB LEDs, reads its button and talks to a phone over Bluetooth LE. For the demo we built a Bluetooth busy light for an office door. The RGB LED shows FREE, BUSY, AWAY or DO NOT DISTURB, one click on the dongle's button moves to the next status, and a phone shows the status and how long it has lasted. NOTICE: Proteus has no nRF52840 model, so our team has put a lot of effort into building this board ourselves: the LEDs, the button and Bluetooth LE 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 nRF52840 Dongle Library for Proteus: The nRF52840 Dongle (PCA10059) is Nordic Semiconductor's low-cost USB stick for the nRF52840. The PCB itself forms the USB-A plug, so it goes straight into a laptop without a cable. On the board are the nRF52840 with its crystal, a printed antenna at the ...

WS2812B NeoPixel Library for Proteus V1.0: Ring, Stick, 8x8 Matrix

WS2812B NeoPixel Library for Proteus V1.0: a 16-LED WS2812B ring with its STATUS panel and the Advance pop-up of a stick of 8

Hello friends, I hope you all are doing great. Today, I am going to share the new WS2812B NeoPixel Library for Proteus V1.0. WS2812B LEDs, better known as NeoPixels, are the addressable RGB LEDs on the round rings, the sticks and the 8x8 matrices that every maker has in a drawer. Each LED has its own little controller, so one Arduino pin sets the colour of every LED in a chain of hundreds. Clocks, lamps, mood lights, VU meters, signs and game displays all start with them. Now you can build and test them in Proteus. Behind the parts sits our own model of the WS2812B, not a picture that changes colour. It reads the data on DIN bit by bit, by the HIGH time of every pulse, the way the real chip does: 24 bits a pixel in the order green, red, blue, the rest passed on to DOUT for the next board, and a LOW gap of 50 us that makes all the LEDs take their new colours at once. The timing really matters, so a sketch that is too slow fails here just like on your desk. You get ten devices: the rings of 12, 16 and 24 LEDs, the stick of 8 and the 8x8 matrix, each as a Simple device with a live STATUS panel and as an Advance device with a pop-up window and three test tools. The demo runs the Adafruit NeoPixel library on our Arduino UNO V4.0. NOTICE: a NeoPixel library is easy to fake: read the colour from the sketch and paint the LED. We wanted more. Our LEDs read the real bits on DIN with their real timing, pass the rest of the frame on to the next board, keep their old colours when the ...