![RISC-V](/img/default-banner.jpg)
- Видео 44
- Просмотров 76 453
RISC-V
Гонконг
Добавлен 13 янв 2022
Make RISC-V development more convenient
Twitter: patrick_riscv
Twitter: patrick_riscv
#35- Tutorial for Programmable I/O pin of RISC-V CH32X035
🎥 Welcome to our latest video! Today, we're diving into the powerful PIOC(Programmable I/O Controller) pins on the RISC-V MCU CH32X035 ! 🌟 These pins are a game-changer, offering the flexibility to be independently programmed and bit-banged to support a wide range of standard peripherals.
🛠️ What can you do with PIOC pins?
• 📊 Read sensor data
• 🔄 Continuously output values
• 🎨 Control WS2812B LEDs
• ⚡ Handle UART, SPI, ADC, and more!
💡 With PIOC pins, you can optimize your MCU's clock cycles, reducing the load on the main QingKe core and boosting overall efficiency. However, here's the catch: these pins can only be programmed using assembly language. But don't worry-with a little bit of assemb...
🛠️ What can you do with PIOC pins?
• 📊 Read sensor data
• 🔄 Continuously output values
• 🎨 Control WS2812B LEDs
• ⚡ Handle UART, SPI, ADC, and more!
💡 With PIOC pins, you can optimize your MCU's clock cycles, reducing the load on the main QingKe core and boosting overall efficiency. However, here's the catch: these pins can only be programmed using assembly language. But don't worry-with a little bit of assemb...
Просмотров: 404
Видео
#34- Let's DIY a Game Mouse with 8KHz Polling Rate!
Просмотров 564Месяц назад
#MouseModding #8KMouse #TechUpgrade #GamingGear #DIYTech Hey there, tech enthusiasts! 👋 In this video, we're modding a generic 2.4GHz mouse and swapping the PCB with a WCH alternative. We have ever wondered if you could upgrade your favorite gaming mouse to the latest tech. Today, we're swapping out the PCB (Printed Circuit Board) of a standard mouse with a WCH 8K mouse to boost performance and...
#33- 🎮True 8K Gaming Mouse Solution from WCH🖱
Просмотров 3062 месяца назад
#riscv #bluetooth #ch32 #mouse #keyboard #gameplay This video demonstrates an 8K polling rate mouse from WCH; you can implement a wired/wireless 8K mouse solution using our two custom solutions. ✨ Multiple options are available for the wireless-only solution, including single-chip solutions like the CH592/CH581 and the CH9160. These allow for an 8K wireless experience, with no need for driver d...
#32- WCH LinkE: Setup and Trouble shooting guide
Просмотров 5822 месяца назад
#ch32 #riscv #link Welcome to our troubleshooting guide for the WCH LinkE! 🛠 If you've been struggling with setting up or fixing errors related to the WCH Link, you're in the right place. In this video, we'll cover everything from the basics of the WCH LinkE setup to handling common issues with ease. Join us as we delve into the essentials of the WCH LinkE, including a thorough walk through of ...
#31- How to set up CMake alongside VS code for WCH RISC-V?
Просмотров 5223 месяца назад
#riscv #CH32 #mcu #vscode In this video, we are going to be looking at how to set up CMake, alongside Visual Studio Code, when working with WCH MCUs, and how we can integrate the RISCV-GCC Toolchain alongside OpenOCD for debugging and flashing. The prerequisites include CMake, Ninja, and Visual Studio Code. We recommend the following extensions in Visual Studio Code be included as well. Serial ...
#30- Hair Dryer Teardown and Analysis with RISC-V CH32V203
Просмотров 8346 месяцев назад
#riscv #mcu #ch32 In this video we breakdown a hair dryer and give a teardown of the parts and components and how WCH's MCU, in particular, the CH32V203 can be used in industrial and large-scale motor control functions as well as the inner workings and how to properly utilize the Advanced TIMER from WCH. From this video, the MCU makes use of the following WCH self-developed RISC-V IPs. An advan...
#29- How to RESET CH32V003 if PD1 is Occupied?
Просмотров 6127 месяцев назад
#mcu #riscv #rv #10cent This video illustrates how to reconfigure and also RESET the CH32V003 MCU when the PD1 (SWDIO) pin has already been programmed. Because the SWDIO Pin is already occupied we cannot call for normal Flash and PRogram protocol anymore. Instead, we use the WCH Link Utility and opt for Flashing and resetting the whole MCU instead. Download the WCH MCU Link utility and make the...
#28- How to run Arduino on Linux using RISC-V MCUs?
Просмотров 2 тыс.8 месяцев назад
#arduino #CH32 #mcu #riscv #linux In this video we introduce how to run Arduino on Linux using WCH MCUs, the video shows how to set up Arduino for WCH in Ubuntu 23.04. Firstly we downloaded the latest stable of Arduino, which is version 2.2, then we ran it from the bash terminal, and upon loading, we went to Preferences and added the external board manager link for WCH. This can be collected fr...
#27-How to erase and flash the CH641 on wireless dev board?
Просмотров 5218 месяцев назад
#riscv #mcu #wirelesscharging Dive into the fascinating wireless charging and USB Power Delivery world with the CH641! In this video, we'll guide you through the essential steps of programming and flashing the MCU of your CH641 device. We used the WCH Link, a small Type C interface, and a receptor connector. This video also shows the programming cycle; after each successful program, you will ne...
#26-CH641: USB PD and QI Wireless Charging! 4~12.6V Voltage
Просмотров 4099 месяцев назад
#riscv #mcu #pdusb #wirelesscharging Introducing CH641, your all-in-one solution for power and convenience! This USB PD-capable device packs a punch, to charge your devices swiftly. But that's not all - CH641 goes beyond the conventional with its Qi Wireless charging support, ensuring a tangle-free and effortless charging experience. Say goodbye to cable clutter and hello to a powerful, versati...
#25-The 1st ESC project based on RISC-V MCU
Просмотров 1 тыс.10 месяцев назад
#riscv #ch32 #mcu #esc If you're into drones, RC cars, or other motorized devices, understanding Electronic Speed Controllers, or ESCs, is essential. In this video, we'll cover ESCs from basics to advanced topics. This was implemented using WCH's CH32V203 and currently can support 3 protocols DShot 300 DShot 600 Conventional PWM Souce code and Schematic: github.com/openwch/RISC-V_ESC
#24-Design a PDF Data Logger with BLE SOC CH592
Просмотров 1,3 тыс.10 месяцев назад
#mcu #bluetooth #pdf #riscv Using the CH592 in-built USB Host/Device peripherals we create a data logger to record temperature and humidity, for over 90 days. Once recorded, the customer can simply plug the data logger into a PC and in return get a PDF file containing the recorded information. Because CH592 has inbuilt USB support, no drivers or any extra software is required, just plug and col...
#23-CH32V307 Arduino Guide
Просмотров 3,3 тыс.10 месяцев назад
#ch32 #arduino #riscv Many friends asked me for Arduino support for CH32V307, Soooo here you go! github.com/openwch/arduino_core_ch32
#22-Let's play SnakeGame using 1-GPIO PIOC
Просмотров 55511 месяцев назад
#ch32 #mcu #pioc #snakegame #pdusb Only one GPIO PIOC of CH32X025 completes SnakeGame's 1024 (32*32 ) WS2812 RGB Leds. In addition, the PD peripheral of X035 is used to complete the sink function, and acquire the 5V/10A from the cell phone charger to power the screen. Source code and hardward design can be checked here, github.com/openwch/ch32x035/tree/main/App/01_Snake
#21-One GPIO of PIOC Drives 1200 WS2812 RGB LEDs
Просмотров 94911 месяцев назад
#ws2812 #rgb #mcu #ch32 #riscv This video will show you how to use PIOC(programmable IO controller) to drive 1200 WS2812 RGB LEDs. As demonstrated in the video, unlike using SPI/PWM to drive WS2812, PIOC onl;y need a single bit to encode 0/1, while SPI needs to use a byte (8 bits) to encode 0/1. Therefore, when driving more than 1200 WS2812 RGB leds, the RISC-V CH32X035 integrating PIOC only ne...
#20-A Low Dropout Ideal Diode CH213 with current limiting function
Просмотров 541Год назад
#20-A Low Dropout Ideal Diode CH213 with current limiting function
#19-[QuickStart]How to use Offline Programmer for MP
Просмотров 399Год назад
#19-[QuickStart]How to use Offline Programmer for MP
#18-[QuickStart] CH343 USB-UART Converter (3rd Generation)
Просмотров 1,2 тыс.Год назад
#18-[QuickStart] CH343 USB-UART Converter (3rd Generation)
#17- The Whole Family of USB-To-Serial Bridge Chips | WCH
Просмотров 483Год назад
#17- The Whole Family of USB-To-Serial Bridge Chips | WCH
#16- Shanghai Munich Electronics Exhibition 2023 | WCH
Просмотров 175Год назад
#16- Shanghai Munich Electronics Exhibition 2023 | WCH
#15- Exploring Ethernet Cards with CH182/CH390/CH397
Просмотров 316Год назад
#15- Exploring Ethernet Cards with CH182/CH390/CH397
#14- [QuickStart] CH32 Arduino new Chip: CH32X035 test for USB PD
Просмотров 3,1 тыс.Год назад
#14- [QuickStart] CH32 Arduino new Chip: CH32X035 test for USB PD
#13- [QuickStart] GPIO and UART of CH32V003 using Arduino IDE
Просмотров 11 тыс.Год назад
#13- [QuickStart] GPIO and UART of CH32V003 using Arduino IDE
#12- The 10 cents RISC-V MCU already supports Arduino!
Просмотров 2,6 тыс.Год назад
#12- The 10 cents RISC-V MCU already supports Arduino!
#11- 32-bit RISC-V MCU with built-in USB PD PHY | CH32X035
Просмотров 1,5 тыс.Год назад
#11- 32-bit RISC-V MCU with built-in USB PD PHY | CH32X035
#10- How to develop a Bluetooth-LE project using RISC-V CH32V208 | PART3
Просмотров 682Год назад
#10- How to develop a Bluetooth-LE project using RISC-V CH32V208 | PART3
#9- Auto-Programming solution for STM32/ESP32/ESP8266/CH32 | PLUS
Просмотров 1,6 тыс.Год назад
#9- Auto-Programming solution for STM32/ESP32/ESP8266/CH32 | PLUS
#8- How to develop a Bluetooth-LE project using RISC-V CH32V208 | PART 2
Просмотров 643Год назад
#8- How to develop a Bluetooth-LE project using RISC-V CH32V208 | PART 2
#7- Awesome Auto-Programming solution for STM32/ESP32/ESP8266/CH32
Просмотров 3,1 тыс.Год назад
#7- Awesome Auto-Programming solution for STM32/ESP32/ESP8266/CH32
#6- Awesome Power Supply - USB PD Output Voltage Selector
Просмотров 864Год назад
#6- Awesome Power Supply - USB PD Output Voltage Selector
Any chance you can show how this works for the datalogger video from #24 ?
Hi, How to Generate 1ms tick uding sys timer or Timer using Interrupt. Is there any Arduino library is there for precise time interval generation ?
No Arduino library for Timer, External Interrupt
How to use ws2811 led pixel with ch32x
Looking For Periodic Timer (Interrupt base) Arduino Library for CH32V003. All peripheral Example for CH32V003 are needed for Arduino. Or how to Implement EVT Board Code in Arduino?
@rvmaking would it be possible to pair a two of CH9160? Like one CH9160 used as a USB dongle, and other one paired up with CH32V307? Could it be connected to USB port of MCU, to then create a wireless connection with PC?
Because PIOC is located on the SWD pins, shouldn't be a good idea to put a small delay before the pins initialization just to ensure not to brick the MCU??
Thank you very much for doing our request.
❤😊
Do you have a link to buy the 8k usbhid chip?
www.aliexpress.com/item/3256807037750869.html
Can you flash the ch9160 to be gamepad?
Great video, sir. Do you have a code repo and a pcb schematic/layout available?
Hello. After flashing CH32F207VC6 through openocd from MounRiver Studio under Linux i try to do Query chip info in WCH-Link Utility under Windows, and result is failed. But before flashing through openocd, WCH-Link Utility works fine. What happened? Thanks.
Can you provide link for the sample project being used here?
github.com/dreamcmi/WCH-CMake, This is link for you, please check it out
Appreciate if you can post a video on how to setup PIOC module. Thank you.
ok, will make this video
Very useful tutorial...just got me a CH32V307 board, will be trying some code soon.
thank you for this video because its really rear to see this support channel to add a new video about its own microcontroller. i have uploaded much more videos even tough i have less knowledge about this controller.
is it rear? I found it rare
You say Arduino IDE but show what looks like VScode IDE. After adding the supplied URL to 'Additional Bd Manage URLs -- Then WCH to Board Manager brings up nothing. Poor poor poor ! I won't be using ANY of this.
Hi I would like to use CH32V003F4P6 board to connect with LCD 16x2 display to show text messages, can I use Arduino IDE to implement it?
flashing CH32V002 via arduino is not possible in Linux, USB not found error, WHC-LinkE appears as ttyACM0 flashing CH32V002 via arduino is only possible in w$, WCH-LinkE appears as COM(x)
Risc-V MCU is great.
good job.
Nice
Hello, is there any future plans on adding oled support or maybe Ethernet support like the winznet modules?
How to achieve 6mbps Max baudrate?
at 0:29: WCH-LinkE photo is wrong, it is WCH-Link (without "E") , it cannot program CH32V00..
Wonderful, thanks!
Just using bitbang and I call it end of day ! 3 bytes per pixel less code size simple to use.
Are all boards in the CH32V307 supported in the Arduino IDE? I only see a selection for CH32V307VCT6.
I haven't gone through all your videos yet, since I just subscribed. Did get the CH32V003F4P6-EVT working - because of your help. I'm wondering if it is possible to do PWM on some of these pins, like we do in the Arduino and other boards. I don't seem to see it called out as a function on the CH32 boards.
I have a stupid curiosity. I just received a CH32V003F4P6-EVT. When I run the GPIO toggle, nothing happened. But if I hooked up an external LED to PC_3, it did blink as programmed. I noticed in your program, that the LEDs on the board blinked. How did that happen?
Never mind. I did some trace tracking on the board and realized that there are LED pins. I see you simply jumpered PC_3 to one of those pins. :) I thought they might be built-in LEDs, so I spent a lot of time looking through the documentation to see how to access them. I should have simply looked at the board more closely.
First of all, thank you for your effort. Any suggestions about a problem: PD6 (RX pin) of the CH32V003F4P6 does not receive data over UART communication. PD5 (TX pin) works fine, sending data is not an issue. Tested with WCH LinkE + WCH-LinkE-R0-1v3 board and with ESP32 C3 too, CH32 was able to send but unsuccessful in receiving data. edit: Arduino Ide 2.3.2
Great opportunity to make Qi-capable device with lower BOM. Where can I buy some of this MCUs and possibly a dev board? Nothing is available from Ali shop and 3rd party sellers.
Here I noticed that this simple led blinking program using nearly 65% of program memory space and more than 10% of RAM.. what's the reason? Is it bcos of Arduino?
Hi, can i use ch32x035 USB pd to make a pd charger that can supply 20v or can it only act as client side
Look at the datasheet on page 244, it says: "Built-in USB type-C interface, master/slave detection support, DRP, Sink/Consumer and Source/Provider support;"
Hello, can you help me with one problem? I want to make an automatic window blind with servo and photoresistor, but i couldn’t figure it out, thanks CH32V003J4M6 Using only chip, without board
I use minichlink for this. The "-u" option will "unbrick" a chip. It needs to control power and be connected to pd1. I have never had it not work and I have tried to. I disabled PD7/nRST and PD1/SWDIO set them to GPIO immediately on startup. It still reaet it.
Im glad i found this channel. It helped alot in terms of understanding design. Thanks for your demo.
Nice work, nice project, thanks!
:)
Fun project!
👍
please guide for check spi communication in ch32v003???
hey, how do you make a analogRead? with analogRead(PA2) or other Analogpins i got nothing in return? digitalread is working? any ideas? thx
Hi there, just got this working, the ADC is disabled by default, you just need to edit the .arduino15/packages/WCH/hardware/ch32v/1.0.4/variants/CH32V00x/CH32V003F4/variant_CH32V003F4.h file and remove the '//' from the line that says #define ADC_MODULE_ENABLED
*Abstract* This transcript details the design and implementation of a compact PDF-generating data logger that measures temperature and humidity. The device is built around the CH592 microcontroller, featuring embedded USB 2.0 for seamless data transfer to a PC. It offers up to 90 days of battery-powered data logging. Upon connection to a computer, the device autonomously generates a PDF report containing tabular and graphical representations of the collected data. This unique approach requires no external drivers or software. The transcript covers hardware specifications, program flowchart, and the PDF generation process. disclaimer: i used gemini advanced 1.0 to create an abstract based on the transcript.
*Summary* *Introduction* * 0:01 - Project overview: Creating a temperature/humidity data logger with PDF generation using the CH592 microcontroller. * 0:20 - Project features: Long battery life, PDF creation when connected to a PC, ease of use. *CH592 Microcontroller Specifications* * 0:54 - MCU details: RAM, Flash memory, RF transceiver, Bluetooth support, USB 2.0, peripherals, low power supply. *LCD Segment Display* * 1:48 - LCD segment overview, driving mode, and implementation for displaying values. *Data Logger Application* * 2:06 - Basic workflow: CH592 as MCU, connection to the temperature/humidity sensor, battery power, use cases. * 2:39 - Key feature: USB connectivity triggers PDF creation for data visualization. *Schematic and Program Flow* * 2:54 - Simple schematic: CH592, battery, LEDs. * 3:11 - Program flowchart overview: USB connection handling vs. data logging initialization. *Data File Creation* * 3:39 - Data storage in memory, allocation for temperature and humidity. *Device Demonstration* * 4:01 - Overview of the assembled data logger with USB connection. * 4:14 - Powering on with 3v3, button functions (initiate logging, reset). * 5:31 - Device turns on and displays fluctuating temperature and humidity values. * 6:43 - Demonstration of the final product with a soldered battery. *PDF Generation* * 7:43 - PDF contents: Device information, graphical representation of data, table with timestamps and readings. * 8:18 - User-friendliness: No external drivers, CH592 acts as a storage device. *Closing and Contact Information* * 8:44 - Invitation to ask questions in the comments. * 8:52 - Contact information provided on Twitter or via QR code.
*Abstract* This transcript addresses a common issue experienced by users of certain microcontroller units (MCUs) - the misconception that the device is broken when, instead, the PD1 pin is occupied. The video details how to correctly resolve this situation by completely resetting the MCU. This is achieved using the WCH link utility tool to clear all code from the MCU, thus freeing the PD1 pin and restoring full functionality. I used Gemini Advanced 1.0 to create this abstract of the transcript.
*Abstract* This presentation explores the creation of an Electronic Speed Controller (ESC) suitable for controlling brushless motors, such as those commonly found in drones. The design utilizes the CH32 V203 microcontroller and the AM32 firmware. We'll cover the basic principles of ESCs, along with the process of preparing the ESC, including flashing the bootloader and firmware. The speaker demonstrates changing the operational modes (PWM, DSHOT 300, and DSHOT 600) with a servo testing tool to provide input signals, showcasing the differences in frequencies and their impact on motor control responsiveness and power consumption. This project, utilizing WCH chips, illustrates the potential to create custom ESC controllers capable of supporting various configurations and protocols. I used Gemini Advanced 1.0.
In the case of CH340C, why can´t we just hook RTS and DTR pins to BOOT0 and nRST pins of a STM32 micro, and set them high or low as needed to enter and exit bootloader mode? Why there is the neeed to use a NPN and a PNP transistor?
Patrick, hello! Great job! Can you share the source code of the project?
Patrick, hello! Great job! Can you share the source code of the project?
ordered mine, great device. Thanks for video
Is there way to do this via openocd?