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

Ғылым және технология

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 KZread channel: bit.ly/3tku2n0
🎮 My Android Game: bit.ly/QuizOfKnowledge

Пікірлер: 43

  • @Educ8s
    @Educ8s2 жыл бұрын

    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 KZread CHANNEL! bit.ly/3tku2n0

  • @makerming1436
    @makerming14363 жыл бұрын

    Love your illustration, very clear and informative! Thanks!

  • @AliG.G
    @AliG.G3 жыл бұрын

    Brilliant videos as always. Keep it up

  • @qzorn4440
    @qzorn44403 жыл бұрын

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

  • @lakemast
    @lakemast3 жыл бұрын

    Thank you very much for sharing this!

  • @nirtzezana627
    @nirtzezana6273 жыл бұрын

    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
    @gr74803 жыл бұрын

    Thanks. Very interresting.

  • @rlb5261
    @rlb52613 жыл бұрын

    Excellent!!!!!

  • @anycatdessai
    @anycatdessai2 жыл бұрын

    Thanks for the intro.

  • @Jayesh_Gohil
    @Jayesh_Gohil3 жыл бұрын

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

  • @swagoverload9222
    @swagoverload9222 Жыл бұрын

    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
    @electronic79793 жыл бұрын

    Nice

  • @ThatHVguyYash
    @ThatHVguyYash3 жыл бұрын

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

  • @JohirulIslam-lm2vz
    @JohirulIslam-lm2vz3 жыл бұрын

    great

  • @jamescullins2709
    @jamescullins2709 Жыл бұрын

    wow! where did the Arduino drive come from?

  • @mihaelmiles7184
    @mihaelmiles71843 жыл бұрын

    For what is used that chip?

  • @arduinopl7460
    @arduinopl74603 жыл бұрын

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

  • @sumopanda5070
    @sumopanda50703 жыл бұрын

    could i add a blue tooth mod on the seeeduino?

  • @kamenopixel
    @kamenopixel3 жыл бұрын

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

  • @TheAstronomyDude
    @TheAstronomyDude3 жыл бұрын

    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 жыл бұрын

    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.

  • @ragder13
    @ragder13 Жыл бұрын

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

  • @Educ8s

    @Educ8s

    Жыл бұрын

    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!

  • @BYAZIT
    @BYAZIT3 жыл бұрын

    Where did you buy it and how much it cost?

  • @Educ8s

    @Educ8s

    3 жыл бұрын

    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

  • @nickdsnik1675
    @nickdsnik16753 жыл бұрын

    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 жыл бұрын

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

  • @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

  • @yxhankun
    @yxhankun2 жыл бұрын

    can't find mu for 7 windows 32 bit

  • @erosionreactions
    @erosionreactions Жыл бұрын

    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

  • @Turtlehands
    @Turtlehands3 жыл бұрын

    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-fy1zo7hg5d3 жыл бұрын

    Can I translate your videos in marathi hindi

  • @thomas.ntiveris
    @thomas.ntiveris3 жыл бұрын

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

  • @mitch_the_-itch
    @mitch_the_-itch3 жыл бұрын

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

Келесі