M
MercyNews
Home
Back
DIY New Year Toy: RISC-V & WS2812B Project
Technology

DIY New Year Toy: RISC-V & WS2812B Project

A developer has created a custom New Year toy using RISC-V microcontrollers and WS2812B LEDs. The project utilizes KiCad for design and MounRiver Studio for firmware.

HabrDec 26
3 min read
📋

Quick Summary

  • 1The project utilizes the CH32V003F4P6 microcontroller and WS2812B addressable LEDs.
  • 20, while the firmware was written in MounRiver Studio II.

Contents

Project Origins and ComponentsHardware Design ️Software and FirmwareConclusion

Quick Summary#

A developer has initiated a project to create a custom New Year toy using microcontrollers acquired in 2019. The project focuses on utilizing the CH32V003F4P6 microcontroller and WS2812B addressable LEDs to build a festive device. The hardware design and firmware development were handled using specific software tools provided by the component manufacturers.

The resulting device features a straightforward circuit design centered around a RISC-V architecture. Power is supplied externally at 5V, and the system includes standard connectivity options for programming and power. This initiative serves as a practical application for dormant electronic components.

Project Origins and Components#

The project began with the decision to utilize a stock of 50 microcontrollers purchased in 2019. The developer acquired these CH32V003F4P6 units at a cost of 11 rubles per unit. The motivation for the project was to create a New Year toy and to experiment with WS2812B addressable LEDs.

The core components selected for the build include:

  • CH32V003F4P6 microcontroller (RISC-V architecture)
  • WS2812B addressable LEDs
  • Power connector
  • Programming connector
  • Power supply capacitors

The device is designed to operate on an external power supply rated at 5V. The inclusion of the WS2812B LEDs provided an opportunity to test their functionality in a practical application.

Hardware Design 🛠️#

The schematic and printed circuit board (PCB) for the device were designed using KiCad 9.0, a free CAD software. The resulting circuit is described as sufficiently simple, bordering on primitive. The design relies heavily on the integration of the CH32V003F4P6 microcontroller acting as the central processing unit.

Key hardware features include:

  • Minimalist design: The circuit avoids complex components to ensure reliability.
  • Power regulation: Multiple capacitors are placed near the power connector to stabilize the 5V input.
  • Connectivity: Dedicated connectors for both power input and programming access are included.

This approach ensures that the device is easy to assemble and troubleshoot while maintaining the necessary functionality for the holiday project.

Software and Firmware 💻#

The firmware for the microcontroller was developed using MounRiver Studio II. This integrated development environment (IDE) is specifically provided by Nanjing Qinheng Microelectronics, the manufacturer of the CH32V003F4P6 chip. Using the manufacturer's recommended toolchain ensures compatibility and optimal performance for the RISC-V architecture.

The software logic drives the WS2812B LEDs to create the visual effects required for the New Year toy. The development environment allows for efficient coding and flashing of the microcontroller, streamlining the transition from hardware design to functional device.

Conclusion#

This project demonstrates the effective utilization of older stock components to create a modern, festive device. By leveraging the CH32V003F4P6 microcontroller and WS2812B LEDs, the developer successfully built a functional New Year toy. The use of KiCad 9.0 for design and MounRiver Studio II for firmware highlights the accessibility of professional-grade tools for hobbyist electronics.

The project serves as a reminder that components purchased years ago can still be put to good use in creative ways. With a simple 5V power supply and a basic circuit, complex holiday effects are achievable using modern RISC-V microcontrollers.

Frequently Asked Questions

The project uses a CH32V003F4P6 microcontroller, WS2812B addressable LEDs, power and programming connectors, and various capacitors.

The hardware was designed using KiCad 9.0, and the firmware was written in MounRiver Studio II.

The device requires an external power supply of 5V.

#программирование микроконтроллеров#радиолюбительство#хобби

Continue scrolling for more

AI Transforms Mathematical Research and Proofs
Technology

AI Transforms Mathematical Research and Proofs

Artificial intelligence is shifting from a promise to a reality in mathematics. Machine learning models are now generating original theorems, forcing a reevaluation of research and teaching methods.

Just now
4 min
253
Read Article
Science

Who gets to inherit the stars? A space ethicist on what we’re not talking about

While it's easy to romanticize space as an escape to a pristine frontier where people will float weightlessly among the stars, it’s worth remembering there are no oceans or mountains or chirpy birds in space. It's “not nice up there,” said Rubenstein. “It is not nice at all."

18m
3 min
0
Read Article
Politics

US Strikes ISIS Leader in Syria: Third Retaliatory Attack

The U.S. military launched a third round of retaliatory strikes in Syria on Friday, killing a leader with ties to an ambush attack by an ISIS gunman, officials said.

40m
5 min
1
Read Article
Technology

Light Mode Inflation: The Hidden Cost of UI Design

A deep dive into the surprising environmental and practical costs of light mode interfaces, from battery drain to global energy consumption.

44m
6 min
1
Read Article
Politics

Syrian Army Advances Aim to End Kurdish Autonomy

Clashes erupt between Syrian forces and Kurdish groups as the military's advance across northern Syria aims to dismantle years of hard-won Kurdish autonomy, with the US seemingly turning its back on former allies.

1h
6 min
1
Read Article
Politics

Syrian-Kurdish Forces Clash Along Euphrates

As the Syrian army and Kurdish-led forces trade accusations of breaking a troop withdrawal agreement in the country's north, the region's civilian population faces displacement.

1h
5 min
1
Read Article
Politics

Gaza Oversight: Trump's New Committees Explained

A new Government of Palestinian technocrats will run daily affairs in Gaza and be supervised by the Board of Peace and by two executive boards with similar names.

1h
4 min
1
Read Article
Real_estate

Atari Hotel Las Vegas Plans Scrapped, Phoenix Focus

The ambitious plan to bring a gaming-themed Atari Hotel to Las Vegas has reportedly been abandoned. Six years after the initial announcement, the company is now focusing its resources on a single location in Phoenix, Arizona.

1h
5 min
1
Read Article
Economics

China's Digital Yuan Dominates $55B Cross-Border CBDC Platform

The mBridge cross-border CBDC platform has processed over $55 billion in transactions, with China's digital yuan accounting for approximately 95% of settlement volume.

1h
5 min
1
Read Article
Politics

Trump Threatens 10% Tariffs on 8 European Nations Over Greenland

Former President Donald Trump has issued a stark economic ultimatum to eight European nations, threatening a 10% import tax if they oppose a potential US acquisition of Greenland.

1h
5 min
6
Read Article
🎉

You're all caught up!

Check back later for more stories

Back to Home