
Background
Just moved in, and there are no decorative lights. #Renesas#
My computer desk only has a single light source for illumination, providing no additional functionality apart from basic lighting.
Coincidentally, I made a component box using 3D printing with transparent material, and thought about creating a light board to place under the component box.
RA0E1 Block Diagram

RA0E1 Features
-
32MHz Arm Cortex-M23 core
-
Up to 64KB Flash and 12KB SRAM
-
1KB Data Flash (100,000 programming/erase (P/E) cycles)
-
16-pin and 32-pin package options
-
Wide voltage range of 1.6V to 5.5V
-
TAU (16-bit General PWM Timer)
-
TML32 (32-bit Interval Timer)
-
Real-Time Clock
-
12-bit ADC
-
Temperature Sensor
-
SAU (UART, Simple SPI, Simple I2C)
-
UART
-
I2C Bus
-
Random Number Generator
-
Security Features
-
+-1% High Precision, High-Speed On-Chip Oscillator
-
Flexible Power Architecture with Fast Wake-Up Function
-
HAL Driver Code
-
Supports Arm Ecosystem and Renesas Original Development Tools
Method Description / Operation Instructions
Just do it, and make the PCB according to the size of the component box. I decided to use WS2812B as the light source, as this light can achieve various lighting effects and complex color changes through programming, and it only occupies one IO, which saves IO resources.
Using Lichuang EDA for design, the link for the light board is: (You can copy the link below to your browser or scan the QR code to view). You can replicate it yourself.
WS2812 Light Board – Lichuang Open Source Hardware Platform
https://oshwhub.com/edaguosaizhuanyong/ws2812-deng-ban


System Block Diagram Introduction
5V Power Supply —— RA0E1 Board —— IO Control WS2812B * 32 units.
Code Introduction
Modified based on the official code.
It’s worth mentioning that the code can be downloaded from Gitee.
Using E2STUDIO with FSP version 5.2.0.
Modifications made on RA0E1_SPI_WS2812B.

The driver uses SPI IO because the SPI hardware flipping speed is fast, ensuring IO speed. The entire code’s driver part is complete, introducing the code entry function, which is setPixelColor(i, 0, 64, 0); function.

The first parameter i indicates which light to control. The next three parameters represent the color ratio of green, red, and blue1. The maximum value is 64.

Results & Conclusion
Successfully implemented the required functions, the multi-colored decorative lights on the desktop are very beautiful.
Arm Cortex®-M23 core, 4kB of Flash, wide power supply voltage range of 1.6V~5.5V, >32MHz CPU performance. The RA0 series is suitable for cost-sensitive applications, such as low-power, low-cost consumer electronics, small appliance system control, industrial system control, and building automation.
Demonstration Video
(You can copy the link below to your browser or scan the QR code to view)
Decorative Lighting Solution
https://www.bilibili.com/video/BV1WUCpYDELX/

Decorative Lighting Solution 2
https://www.bilibili.com/video/BV1CUCpYDE4N/

Insights
Renesas microcontrollers are very cost-effective, feature-rich, and easy to develop, with good example codes that can save a lot of development time.
In practice, with a bit of foundation, you can learn to develop smoothly within a few days. Very good.


Need Product and Solution Support
Please Scan to Register
Need Technical Support?
If you have any issues using Renesas MCU/MPU products, you can scan the QR code below or copy the URL into your browser to access the Renesas Technical Forum for answers or online technical support.

https://community-ja.renesas.com/zh/forums-groups/mcu-mpu/
1
END
1
Welfare Activities Ongoing, Click to Participate!

Annual Grand Prize! Renesas Electronics MCU/MPU User Experience Prize Survey
——Activity Ends on February 28

Great Prize Activity | Renesas RA2E1 Review Collaboration Competition, Waiting for You to Participate!
——Registration Ends on February 24
Recommended Reading

Lichuang Electric Competition Exhibition Excellent Case Sharing: “Animated Clock”

Lichuang Electric Competition Exhibition Excellent Case Sharing: “Desktop Clock Design Based on Renesas”

Lichuang Electric Competition Exhibition Excellent Case Sharing: “Touch Control LED Strip Controller”
For more exciting content, please follow us



Need Product and Solution Support
Please Scan to Register