How to install CircuitPython on the Seeeduino Xiao Board (SAMD21)

Поделиться
HTML-код
  • Опубликовано: 12 окт 2020
  • Dear friends welcome to another tutorial. Today I am going to show how to install CircuitPython on the Seeeduino Xiao board! Yes, believe it or not, we can program this tiny board using Python, a staggering achievement of engineering.
    📥 CircuitPython Bootloader ▶ circuitpython.org/board/seeed...
    📥 Mu Editor ▶ codewith.mu/
    📥 Putty ▶ www.putty.org/
    BLINK PROGRAM CODE
    import time, board
    from digitalio import DigitalInOut, Direction
    led = DigitalInOut(board.LED_INVERTED)
    led.direction = Direction.OUTPUT
    while True:
    led.value = True
    time.sleep(1)
    led.value = False
    time.sleep(1)
    Want to learn to program?
    👨‍💻 Check my new RUclips channel: bit.ly/3tku2n0
    🎮 My Android Game: bit.ly/QuizOfKnowledge
  • НаукаНаука

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

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

    I hope you took away lots from this video and you managed to install CircuitPython on your Xiao. Let me know below!
    PS. WANT TO LEARN CODING? CHECK MY NEW RUclips CHANNEL!
    bit.ly/3tku2n0

  • @makerming1436
    @makerming1436 3 года назад +1

    Love your illustration, very clear and informative! Thanks!

  • @AliG.G
    @AliG.G 3 года назад +2

    Brilliant videos as always. Keep it up

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

    Thank you very much for sharing this!

  • @qzorn4440
    @qzorn4440 3 года назад +1

    this is a great Christmas covid19,20,21... small toy and a wonderful diy Xiao video... thanks a lot...:)

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

    You are the king!

    • @Educ8s
      @Educ8s  3 года назад

      Yes, the ESP32-S2 dev board. I have ordered one and can't wait to test it.

  • @gr7480
    @gr7480 3 года назад +1

    Thanks. Very interresting.

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

    Thanks for the intro.

  • @rlb5261
    @rlb5261 3 года назад

    Excellent!!!!!

  • @Jayesh_Gohil
    @Jayesh_Gohil 3 года назад +1

    Great !
    Can you please arm programming video.. :)

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

    Hey, when I upload this blink code (I installed the circuitpython and everything) nothing happens, it doesnt blink but I dont see any errors in the serial. Why might this be happening what did I miss?

  • @electronic7979
    @electronic7979 3 года назад +1

    Nice

  • @JohirulIslam-lm2vz
    @JohirulIslam-lm2vz 3 года назад

    great

  • @ThatHVguyYash
    @ThatHVguyYash 3 года назад

    Will this work for wio lite w600? They have the same core processor. Thanks.

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

    wow! where did the Arduino drive come from?

  • @mihaelmiles7184
    @mihaelmiles7184 3 года назад

    For what is used that chip?

  • @arduinopl7460
    @arduinopl7460 3 года назад

    Why Arduino mode has 8MB of disk XIAO but after copying circuit phyton (363KB) only 43KB for .py files left on disk ??

  • @kamenopixel
    @kamenopixel 3 года назад

    Η φωνή σου ειναι ίδια με του konilo.. τυχαίο ?

  • @sumopanda5070
    @sumopanda5070 3 года назад

    could i add a blue tooth mod on the seeeduino?

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

    great video, but if I lose my Xiao I lose my code right? unless I save it in my computer

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

      That's a very good point! We need to be very careful each time we write a piece of code on some device. I always setup a github repository in case something happens. It also helps to see how to code evolves. Cheers!

  • @TheAstronomyDude
    @TheAstronomyDude 3 года назад +1

    I don't understand how importing a library works. In the blink code you had "import time." How does it use the time library if it doesn't compile and load anything on the chip?

    • @Educ8s
      @Educ8s  3 года назад +1

      Some libraries are built-in to the CircuitPython. All the libraries we used in this example are built in ones so they are already loaded to the chip when we loaded the CircuitPython bootloader. In the next video I will show you how to load libraries that are not built in.

  • @BYAZIT
    @BYAZIT 3 года назад

    Where did you buy it and how much it cost?

    • @Educ8s
      @Educ8s  3 года назад +1

      All the info you need is in the video description. The board costs around $6 and you can get it here: educ8s.tv/part/xiao

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

    can't find mu for 7 windows 32 bit

  • @nickdsnik1675
    @nickdsnik1675 3 года назад

    Sorry stupid question, does the led.write = true statement turn the LED on or off?
    It seems to be off for me

    • @Educ8s
      @Educ8s  3 года назад

      This must be some kind of bug of the Xiao board. The same thing happens on Arduino as well. Is this happening with built-in led or with an external led as well?

    • @Keeping_IT_Simple
      @Keeping_IT_Simple 3 года назад

      Try using ....
      led.value = True instead
      See here for explanation...
      learn.adafruit.com/circuitpython-digital-inputs-and-outputs/digital-outputs

    • @tannewt
      @tannewt 3 года назад

      It depends on how the LED is connected. If the MCU pin drains current through the LED then it'll be on when value is False. Otherwise, if the MCU powers the LED, then it'll be lit when value is True.

    • @Educ8s
      @Educ8s  3 года назад +1

      It turns out that the LED on the Xiao board is active low, so the behavior of it is normal.

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

    how do I convert it back into the original Xiao

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

      It is mentioned in the video, just updload an Arduino program using the Arduino IDE.

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

      @@Educ8s ok thanks

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

    i get this error with your code:
    code.py output:
    Traceback (most recent call last):
    File "code.py", line 5, in
    AttributeError: 'module' object has no attribute 'D13'
    it seems that the LED address is wrong?

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

      You are right. They have changed the pin definitions. The correct one for the LED is not this one: board.LED_INVERTED

  • @Turtlehands
    @Turtlehands 3 года назад

    mine does not work, I cannot get the computer to recognize the chip, on the port.

    • @Turtlehands
      @Turtlehands 3 года назад

      Never mind!! I got it to work. That was tough, because after a while, listening to 20 people, all with different solutions, can get you rattled.
      I'm not even sure how I got it to work.
      This is very cool, no compiling... nice.... now, I'm learning 3 languages at once, but hey, it's something to do.

    • @Turtlehands
      @Turtlehands 3 года назад

      This does not work well in windows 8. I can get this working 100% correctly in Windows 10, but not windows 8.

  • @user-fy1zo7hg5d
    @user-fy1zo7hg5d 3 года назад

    Can I translate your videos in marathi hindi

  • @thomas.ntiveris
    @thomas.ntiveris 3 года назад

    Έχεις σκεφτεί να κάνεις και ελληνικό κανάλι;

  • @mitch_the_-itch
    @mitch_the_-itch 3 года назад

    These tutorials are junk. Not one of them actually work.
    import board
    ModuleNotFoundError: No module named 'board'