CH32V003 Programming Tutorial

Pallav Aggarwal
2 min readOct 30, 2023

--

WCH Electronics has released an Ultra Low Cost MCU of just 0.1$ in volumes, CH32V003.

If you are an embedded Engineer, learn about the MCU, the hardware and basic programming. It will be very helpful for your projects.

Low-end products could very well be done with CH32V003, or you can also offload some part of the work to this MCU in a complex project like MCU providing extra IOs or diving OLED or Character Display, and you send data over I2C or UART, just an example.

CH32V003 Programming Tutorial

  1. Basic Introduction about CH32V003
  2. CH32V003 Pinout, Packages and Altium Sch / PCB Library
  3. How to Setup Development Environment
  4. How to use GPIO as Output
  5. How to use GPIO as Input (Polling, Interrupt)
  6. How to use UART (Polling, Interrupt)
  7. How to generate PWM
  8. How to read 64-bit Unique ID
  9. How to generate Period Timer Interrupt
  10. How to use I2C
  11. More articles will be added soon.

Real-world Examples:

  1. How to interface Sensirion’s SHTC3 Temperature Humidity Sensor on I2C
  2. How to interface OLED Display (GPIO Bit-Banging)

I am currently working as an embedded systems design consultant and helping companies build custom embedded products and develop test automation solutions for their PCB.

If you need help designing a product based on CH32V003 or any other MUC, don't hesitate to contact me.

--

--

Pallav Aggarwal
Pallav Aggarwal

Written by Pallav Aggarwal

As an Embedded Systems Design Consultant, I help companies build embedded hardware products. My Blog: https://pallavaggarwal.in/. My Company: https://capuf.in

No responses yet