XIAO ESP32C3 RISC-V Dev Board and Arduino IDE

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 71

  • @explodingonc2782
    @explodingonc2782 2 года назад +19

    6:30 I don't think that current limiting resistor is doing anything here. It's shorted out by the bread board.

    • @LeonAnavi
      @LeonAnavi  2 года назад +1

      Yes, sorry, there is a silly mistake as noted in description of the video and some of the other comments. A link to the proper wiring is in the description. I was doing the wiring while looking through the camera screen and picked the wrong hole on the breadboard. Sorry.

    • @vannoo67
      @vannoo67 2 года назад +1

      @@LeonAnavi Which hole were you aiming for? I can't think of any reasonable candidates.
      The only thing that would have made sense is if you had soldered the resister in series with the LED, bridging between your GPIO and Ground.

    • @LeonAnavi
      @LeonAnavi  2 года назад

      @@vannoo67 one of ends of the resistor and the anode (longer leg) of the LED should be on the vertically connected line (blue or red) on the breadboard as per this diagram: files.seeedstudio.com/wiki/XIAO_WiFi/connect-led-2.png

    • @vannoo67
      @vannoo67 2 года назад

      @@LeonAnavi Yep, that would do it

    • @LeonAnavi
      @LeonAnavi  2 года назад

      @@vannoo67 well... next time :)

  • @dromeosaur1031
    @dromeosaur1031 2 года назад +2

    Thanks for the review!

    • @LeonAnavi
      @LeonAnavi  2 года назад

      I am happy to hear you like the video :)

  • @paul-adriencormerais8995
    @paul-adriencormerais8995 Год назад

    Thank you Leon for taking the time to share this review 🙏 Do you think this kind of module is suitable for simple, low volume (few thousands pieces) production application ?
    If feels like this would be much cheaper and safer (less error in hard and FW as well as supply chain risk) than building our own board.
    I’m thinking something like: build a custom casing, weld the required connectors, pot the whole thing. Keen to have your opinion on reliability of such a setup :-)

  • @RandyGlissmann
    @RandyGlissmann 2 года назад +1

    The board's low price is another advantage. Have you tried using Espressif's ESP-IDF programming environment with the board?

    • @LeonAnavi
      @LeonAnavi  2 года назад

      I totally agree: the price is definitely a huge advantage. I haven't tried ESP-IDF programming environment yet. Honestly, right now I am more interested in MicroPython and CircuitPython and probably I will try them on esp32c3 soon.

  • @osmanmurativegen2526
    @osmanmurativegen2526 2 года назад +1

    I liked it and want to get asap to programm.:)

    • @LeonAnavi
      @LeonAnavi  2 года назад

      Yes, XIAO ESP32C3 definitely worth it! RISC-V, USB-C and an antenna for less than $5 per single unit is a bargain :)

  • @Clark-Mills
    @Clark-Mills 2 года назад +1

    8:15 That resistor ain't doing nothing... You are driving the LED directly. You may want to look at the wiring layout of a breadboard.

    • @LeonAnavi
      @LeonAnavi  2 года назад

      Yes, sorry about this silly mistake on my side. Wrong hole on the breadboard. I have updated the description of the video and it contains a note about the mistake and a link to the correct wiring.

  • @alzalame
    @alzalame 2 года назад +1

    Nice review , but insted of explaining how to run simple blink example ,,,please explain a much more about how to implement RISC V core in more advanced example .

    • @LeonAnavi
      @LeonAnavi  2 года назад +1

      Yes, absolutely. I wanted to keep the video short because the focus is on the tech specs of XIAO ESP32C3 as a dev board. In next video I am interested in covering the WiFi features as well as also some other programming languages and environments like MicroPython. Do you have a particular example you are interested in?

    • @alzalame
      @alzalame 2 года назад

      @@LeonAnavi Yes , how does RISC V improve the performance of ESP32C3 ?

    • @LeonAnavi
      @LeonAnavi  2 года назад

      A few months ago cnx-software published a comparison table between ESP32S3, ESP8266 and ESP32C3. The RISC-V based MCU ESP32C3 has better power consumption specs for sleep modes:
      www.cnx-software.com/2022/01/12/esp32-s3-esp32-c3-esp8266-modules-comparison/
      However, the major benefit of RISC-V in my opinion is not better performance but the philosophy of the business model. The open standard instruction set is a game changer for the hardware industry. This will affect companies like ARM with business model relying on royalty per chip basis. RISC-V is open standard so there is no room for royalties. In long term RISC-V should disturb the market one way or another by leading to more innovation and even potential relative overall price drop.
      Btw, I am curious to try the real-time OS Zephyr on RISC-V and ESP32C3 is a good fit for this purpose. It will be an interesting example. If I find spare time I may give it a try.

    • @JC.72
      @JC.72 2 года назад +1

      In some ways it’s slightly similar to comparing iOS vs Android. as Android originally was meant to be open so more people got in to building it using it and improve upon it. But on the other hand not saying iOS is bad in fact it is good but their internals are closed and not really meant for others to change it.

    • @LeonAnavi
      @LeonAnavi  2 года назад

      @@JC.72 I really like your comparison to Android because indeed an open standard instruction set architecture is not the same as open source hardware (as defined by Open Source Hardware Association). I hope RISC-V will disturb the industry the way Android did to the smartphone market back in the day. However, there are some differences: back then before Android there were some Linux open source alternatives as Maemo and MeeGo (even Symbian for its last releases) while now we don't have anything similar to RISC-V philosophy on the market.

  • @fluiditynz
    @fluiditynz 2 года назад

    There aren't many pins on the C3 chip anyway. I've been playing with a few of the ESP32-C3 The lolin mini and also the one with the really tiny display and the ceramic aerial. Who cares if it's Risc five, other than as talking point? It's cheap, fast-ish and has BLE and wireless. The battery charge circuit, the castelation, the radio functions and especially the aerial socket are the big features. It's a good start for a custom radio control receiver. I think only 11 pins though. 2 for an i2C accelerometer, 2 for GPS, 1 for neopixels and you have 6 left for Servo PWM

    • @LeonAnavi
      @LeonAnavi  2 года назад +1

      I agree that from the perspective of the end user the instruction set architecture doesn't make a significant difference if the device works as expected. However, RISC-V is a huge new thing for the whole supply chain: from the R&D to the manufacturing. RISC-V cuts the costs and fosters innovation.
      The 11 GPIOs available on XIAO ESP32C3 are good enough for most of IoT projects that come to my mind. It is an awesome module!

  • @DiyintheGhetto
    @DiyintheGhetto 2 года назад +2

    Very nice. One mistake at 8:33 you do not have the led wired up correctly. You have both resistor legs going to same esp32 pin along with the led pin.

    • @LeonAnavi
      @LeonAnavi  2 года назад

      I connected a resistor in series to limit the current through the LED. The resistor is between D10 and the LED. The cathod (aka the shorter leg) of the resistor is connected directly to GND on XIAO ESP32C3. The resistor prevents excess current that can burn out the LED. Actually, it can be located on either side of the LED when it is series. You can have a look at the wiring diagram for more details: files.seeedstudio.com/wiki/XIAO_WiFi/connect-led-2.png

    • @DiyintheGhetto
      @DiyintheGhetto 2 года назад +1

      @@LeonAnaviAll the wholes on the boradbard in that row are connected together. that is not a correct way of breadboarding a led. i2.wp.com/www.esp32learning.com/wp-content/uploads/2017/11/esp32-and-led_bb.png?resize=696%2C537

    • @LeonAnavi
      @LeonAnavi  2 года назад +3

      Ops you are right about this, it ends up as a single resistor which is in parallel to the breadboard line. I should have done it cleaner.

    • @DiyintheGhetto
      @DiyintheGhetto 2 года назад +3

      @@LeonAnavi it’s okay I made that mistake myself many times. Green leds even through only can handle up to 2.6v for some odd reason I have worked them on 3.3v without problem. But I myself need to stop doing that 😂 😆 😝

    • @LeonAnavi
      @LeonAnavi  2 года назад +1

      I should have used one of these mini breadboards to make things cleaner in the video. Next time :) Anyway, the wiring in the link and the diagram provided with the tutorial are correct.

  • @sandipkumarnandi
    @sandipkumarnandi Год назад +1

    What's the power consumption in deep sleep, can we switch off the power Led?

    • @LeonAnavi
      @LeonAnavi  Год назад

      According to Seeed Studio XIAOESP32C3 power consumption documents in deep sleep mode it is 43uA.

  • @kychemclass5850
    @kychemclass5850 Год назад +1

    Hi. @ 6:34. You have not wired the resistor to the LED properly. On your circuit the resistor has no function.

    • @LeonAnavi
      @LeonAnavi  Год назад +1

      Yes, sorry, I made a silly mistake. It is noted in description of the video and some of the other comments. A link to the proper wiring is in the description of the video: wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started/

    • @kychemclass5850
      @kychemclass5850 Год назад +1

      @@LeonAnavi No worries. We all make mistakes. It's can be good to have people that care enough to point it out to help us improve / not make the same mistake next time. Thanks for your video. Keep it up. I've subscribed :)

    • @LeonAnavi
      @LeonAnavi  Год назад

      thank you :)

  • @michaelbishton9439
    @michaelbishton9439 2 года назад +1

    What does 32bit single precision arithmetics mean and how do I take advantage of it?
    Thanks

    • @LeonAnavi
      @LeonAnavi  2 года назад

      According to the information provided by Seeed Studio, the ESP32C3 MCU in this XIAO module includes an FPU (Floating Point Unit) for 32-bit single-precision arithmetic, for example variable type float in C and C++:
      wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started/

  • @mikedunning265
    @mikedunning265 Год назад +1

    Good review. I've been using C3 modules for a while but having issues getting anything loaded to spiffs. Ideas?

    • @LeonAnavi
      @LeonAnavi  Год назад

      Thank you. No, I haven't experienced this type of an issue (yet). What is the source code that fails to load to spiffs? Which dev board with ESP32C3 are you using?

    • @mikedunning265
      @mikedunning265 Год назад

      @@LeonAnavi I'm using arduino ide v 1.8.19 , and have tried on the Xiao esp32-C3 and also TTGO TOI PLUS.

    • @mikedunning265
      @mikedunning265 Год назад

      Ah, also it's not spiffs as such, it's ESP32 Sketch upload tool, that I'm using to upload files to spiffs. My bad.
      A fatal error occurred: This chip is ESP32-C3 not ESP32. Wrong --chip argument?
      SPIFFS Upload failed!

    • @LeonAnavi
      @LeonAnavi  Год назад

      @@mikedunning265 there is a big difference between ESP32C3 and other ESP32 microcontollers because C3 is based on RISC-V. Have you configured the dev tools to use specifically ESP32C3?

    • @mikedunning265
      @mikedunning265 Год назад +1

      @@LeonAnavi yes, i realised that after i messaged you. :( I've not updated the esptool that is used for uploading data to flash maybe that is the issue.

  • @FabricioBiazzotto
    @FabricioBiazzotto Год назад +1

    06:30 that resistor is useless, as the LED is conected directly to pin D10...

    • @LeonAnavi
      @LeonAnavi  Год назад

      yes, sorry, please note in the video the resistor isn't properly wired on the breadboard so stick to the diagram in the tutorial: wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started/

  • @Schroeder9999
    @Schroeder9999 Год назад

    Did I jus see you shot the two lead from the "current limiting" resistor at 6:30?

    • @LeonAnavi
      @LeonAnavi  Год назад

      yes, sorry in the video the resistor isn't properly wired on the breadboard. I got distracted while recording and doing it. So please stick to the diagram in the tutorial: wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started/

  • @east_alex
    @east_alex Год назад

    Disappointed with the Xiao ESP32-C3's battery performance. The device operates in a voltage range of 4.2V-3.4V, which seems to limit battery usage efficiency. It's frustrating to see shorter usage times due to this. Hope they consider widening the voltage range to make the most of the battery's capacity without harming its longevity

    • @LeonAnavi
      @LeonAnavi  Год назад

      thanks for the feedback and sharing your experience. Have you tried the deep sleep mode and wake-up on XIAO esp32c to extend usage times on batteries?

    • @east_alex
      @east_alex Год назад

      @@LeonAnaviyes, sure, but I use additional custom circuit with sensor button to power the board

  • @sodiko100
    @sodiko100 Год назад

    Hello, if I connect lipo battery to the bottom batt pads, then do I need any battery charging module and load sharing circuit ? I would like to design a macropad that can be used wired and wireless but cannot find any resource on how to do this safely with lipo battery

    • @LeonAnavi
      @LeonAnavi  Год назад

      XIAO ESP32C3 module is equipped with a battery charge chip.

  • @subahashsuman9183
    @subahashsuman9183 2 года назад

    Is there any particular pin to read battery status,or only having small led that shows charging status

    • @LeonAnavi
      @LeonAnavi  2 года назад

      XIAO ESP32C3 has a built-in battery charging chip but as of the moment I am not sure how to read the battery level. I'll ask Seeed Studio for more information about this.

  • @subahashsuman9183
    @subahashsuman9183 2 года назад

    Same code for esp32 regular board and this one is not giving same results ,is there any speed issue in this xiao board

    • @LeonAnavi
      @LeonAnavi  2 года назад

      What kind of problem do you have? Please note in the video the resistor isn't properly wired on the breadboard so stick to the diagram in the tutorial: wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started/

  • @pavloskairis9994
    @pavloskairis9994 4 месяца назад

    I keep getting, A fatal error occurred: No serial data received.

    • @LeonAnavi
      @LeonAnavi  4 месяца назад

      Could you please provide any details? Is this in Arduino IDE? If yes which version of the IDE? Which OS are you using Arduino IDE with?

    • @pavloskairis9994
      @pavloskairis9994 4 месяца назад

      @@LeonAnavi Linux Mint 21.3, Arduino IDE 1.8.19, Board ESP32C3 DEV Module. Sometimes, I make the ESP32C3 work if I enable Erase Flash. It takes 16 sec to erase flash ram. I cannot upload a screenshot.

    • @LeonAnavi
      @LeonAnavi  4 месяца назад

      @@pavloskairis9994 which board have you selected from Tools in Arduino IDE? It should be XIAO_ESP32C3 and after that you should select the Port as shown at 7:43 of the video.

  • @negvorsa
    @negvorsa Год назад +1

    Wrong R connection!!

    • @LeonAnavi
      @LeonAnavi  Год назад

      Yes, sorry, I did a silly mistake. It is noted in description of the video and added a link to the proper wiring. Sorry again, I was doing the wiring while looking through the camera screen and picked the wrong hole on the breadboard.

  • @nuovovideo
    @nuovovideo Год назад +1

    does bluetooth works without antenna also? and how many meters?

    • @LeonAnavi
      @LeonAnavi  Год назад +2

      Yes, XIAO ESP32C3 supports Bluetooth 5 (LE) connectivity. It should work without the antenna but the range will be significantly smaller. Here is an example how you can use and test Bluetooth on this module: wiki.seeedstudio.com/XIAO_ESP32C3_Bluetooth_Usage/

    • @nuovovideo
      @nuovovideo Год назад +1

      @@LeonAnavi Thanks so much

  • @paul-adriencormerais8995
    @paul-adriencormerais8995 Год назад

    Thank you Leon for taking the time to share this review 🙏 Do you think this kind of module is suitable for simple, low volume (few thousands pieces) production application ?
    If feels like this would be much cheaper and safer (less error in hard and FW as well as supply chain risk) than building our own board.
    I’m thinking something like: build a custom casing, weld the required connectors, pot the whole thing. Keen to have your opinion on reliability of such a setup :-)

    • @LeonAnavi
      @LeonAnavi  Год назад +1

      yes, absolutely! These XIAO modules are exactly for this purpose. They are good for both makes and for low-volume manufacturing because the XIAO ESP32C3 module is CE and FCC certified. Btw I am using the other version XIAO RP2040 in mechanical keyboards.

    • @paul-adriencormerais8995
      @paul-adriencormerais8995 Год назад

      @@LeonAnavi Perfect ! I've ordered them yesterday following your feedback :) I'll let you know how it goes.