CH32V003F4P6 Tutorial - Part 1 - Basic GPIO operations

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

ความคิดเห็น • 30

  • @wolpumba4099
    @wolpumba4099 หลายเดือนก่อน +2

    *CH32V003F4P6 Tutorial - Part 1: Basic GPIO Operations*
    * *0:00** Introduction:* The video begins by introducing the CH32V003F4P6 microcontroller, highlighting its affordability and the lack of in-depth tutorials available.
    * *0:15** CH32V003F4P6 vs Arduino Nano:* The CH32V003F4P6 is compared to the Arduino Nano, noting its lower flash memory but similar peripherals and GPIO capabilities.
    * *2:44** Essential Documentation:* The importance of studying the chip's datasheet and reference manual is emphasized.
    * *3:14** Exploring Example Code:* The video demonstrates using the example code provided by the manufacturer, but emphasizes the need for clearer explanations and documentation.
    * *4:44** Hardware Setup:* The tutorial utilizes a CH32V003F4P6 development board and a programmer that also provides serial communication capabilities.
    * *7:00** Creating a New Project in M-RISC Studio:* A new project is created within the M-RISC Studio development environment, demonstrating the setup process.
    * *7:51** Modifying the Default Code:* The default main.c file is cleaned up and modified to print a simple message to the serial terminal, showcasing basic serial communication.
    * *11:29** GPIO Configuration for LEDs:* The code is further expanded to configure specific GPIO pins on Ports C and D as outputs to control LEDs.
    * *16:14** Toggling LEDs:* A function is created to toggle the state of the LEDs (on/off), demonstrating basic GPIO output manipulation.
    * *20:33** Reading GPIO Input from a Button:* The tutorial introduces reading the state of a button connected to a GPIO pin configured as an input, demonstrating how to detect button presses.
    * *23:49** Combining Buttons and Serial Output:* The code is enhanced to use two buttons to increment and decrement a variable, with the variable's value being printed to the serial terminal.
    * *28:07** Conclusion:* The tutorial concludes by summarizing the basic GPIO operations covered, highlighting their importance as building blocks for future projects.
    * *29:06** Call to Action:* Viewers are encouraged to subscribe to the channel, become members, and visit the website for more resources and affiliate links.
    I used gemini-1.5-pro-exp-0827 on rocketrecap dot com to summarize the transcript.
    Cost (if I didn't use the free tier): $0.03
    Input tokens: 20849
    Output tokens: 512

    • @CuriousScientist
      @CuriousScientist  หลายเดือนก่อน

      I was honestly hoping you to show up in the comment section, because I wanted to ask (again) how you generate these things. I have 4 more tutorials already uploaded and I want to create these things and pin them as a top comment so the viewers can navigate easier. Especially, because I have twice as long videos, too. Thank you for your contribution!

    • @wolpumba4099
      @wolpumba4099 หลายเดือนก่อน

      @@CuriousScientist You can go to the link from the disclaimer. There is a short video tutorial and a link to the source code. You can actually use any LLM to make such summaries from youtube transcripts.

    • @CuriousScientist
      @CuriousScientist  หลายเดือนก่อน

      I already used your tool for the next part and also left a comment, and like at your explanation video! Thanks for the great tool!
      PS: For me, it seems that anyone can see what the previous person did in your tool. When I opened the site, I saw your prompt and results, and when I generated my transcript, I saw mine afterward. I don't know if it is intentional or not, but I thought I might mention it.

    • @wolpumba4099
      @wolpumba4099 หลายเดือนก่อน +1

      @@CuriousScientist yes. this is intended. it was just the easiest to implement

  • @giuseppetrainiti1525
    @giuseppetrainiti1525 หลายเดือนก่อน +2

    Please keep them coming! This tutorial is the clearer so far! Nice job

    • @CuriousScientist
      @CuriousScientist  หลายเดือนก่อน +1

      Thank you! Definitely more will come! Don't forget to check the article I wrote for accompanying the video with more info.

  • @mttdgf
    @mttdgf หลายเดือนก่อน +1

    The math: $15/50 = $.30 each. Awesome tutorial, thank you!

    • @CuriousScientist
      @CuriousScientist  หลายเดือนก่อน

      Thank you very much! Yes, they are insane cheap. Sure, you need to learn a bit extra coding, but that's where I will be able to help, hopefully. 😅

  • @Frisky0563
    @Frisky0563 หลายเดือนก่อน

    This pretty cool! I enjoyed this first video. So this just like programming STM32 microcontrollers? The data structures are similar and the functions also. I will be following along wanting to learn more about this thank you! 😊

    • @CuriousScientist
      @CuriousScientist  หลายเดือนก่อน

      Thank you! Yes, it has a rather similar "API" as the STM32 chips. So, even though the CH32 chips don't yet have a big community and good software support, it can survive on the resources for STM32 due to the similarities.

  • @YigalBZ
    @YigalBZ หลายเดือนก่อน

    Nice tutorial. Thank you. The price is very attractive, yet what is the drive of using a board without the USB connection? Thant would make the design easier. Also, Why not going to ESP32 based boards? the price is not much higher.

    • @CuriousScientist
      @CuriousScientist  หลายเดือนก่อน

      Why would you need a USB? If you design a standalone device, you 99% don't need USB. And the programming is done via the SWIO pin anyway.

    • @YigalBZ
      @YigalBZ หลายเดือนก่อน

      @@CuriousScientist In most of my designs, I have frequent software updates, The USB brings me easy access, including debug. I am willing to pay the small amount of money for that. When i go to vey small designs, I use ATTiny. I designed a programmer for that.

    • @CuriousScientist
      @CuriousScientist  หลายเดือนก่อน

      You can do all that with the SWIO... No need for USB.

    • @YigalBZ
      @YigalBZ หลายเดือนก่อน +1

      @@CuriousScientist Agreed, but you need the external programmer.

    • @CuriousScientist
      @CuriousScientist  หลายเดือนก่อน

      It's a very cheap instrument, I'd not worry about it. But it all comes down to personal preferences and the requirements of the device.

  • @ziprock
    @ziprock หลายเดือนก่อน

    Love learning about cheap boards

  • @ivolol
    @ivolol หลายเดือนก่อน +2

    I'm more interested in the CH32V203, which has proper USB connection, a lot faster and more memories, and while still more expensive, is still pretty darn cheap for an MCU.

    • @CuriousScientist
      @CuriousScientist  หลายเดือนก่อน +2

      They'll be introduced when I run out of peripherals on this module. It is already in the production pipeline. 😎

    • @ivolol
      @ivolol หลายเดือนก่อน

      @@CuriousScientist Had you seen WCH have started making an Arduino compatibility layer as well? Makes things a bit simpler if you're mostly doing very simple stuff. But you showing the native API also makes me wonder about contributing to it to improve it.

    • @CuriousScientist
      @CuriousScientist  หลายเดือนก่อน +1

      You haven't read my article. 😉 I even linked the Arduino library, and I explained that it lacks many functions.

    • @ivolol
      @ivolol หลายเดือนก่อน +1

      @@CuriousScientist OK I will read it

  • @imrichmorvay2227
    @imrichmorvay2227 หลายเดือนก่อน +1

    very good tutorial magyaros kiejtessel 🙂

    • @CuriousScientist
      @CuriousScientist  หลายเดือนก่อน

      Thanks for your valuable remarks!

  • @Frisky0563
    @Frisky0563 หลายเดือนก่อน

    I couldn't download that IDE you 404 error

    • @CuriousScientist
      @CuriousScientist  หลายเดือนก่อน

      Hi! Please message the WCH support. I am not affiliated with them. Something is wrong with their website.