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
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
Love your illustration, very clear and informative! Thanks!
Brilliant videos as always. Keep it up
this is a great Christmas covid19,20,21... small toy and a wonderful diy Xiao video... thanks a lot...:)
Thank you very much for sharing this!
You are the king!
@Educ8s
3 жыл бұрын
Yes, the ESP32-S2 dev board. I have ordered one and can't wait to test it.
Thanks. Very interresting.
Excellent!!!!!
Thanks for the intro.
Great ! Can you please arm programming video.. :)
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?
Nice
Will this work for wio lite w600? They have the same core processor. Thanks.
great
wow! where did the Arduino drive come from?
For what is used that chip?
Why Arduino mode has 8MB of disk XIAO but after copying circuit phyton (363KB) only 43KB for .py files left on disk ??
could i add a blue tooth mod on the seeeduino?
Η φωνή σου ειναι ίδια με του konilo.. τυχαίο ?
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
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.
great video, but if I lose my Xiao I lose my code right? unless I save it in my computer
@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!
Where did you buy it and how much it cost?
@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
Sorry stupid question, does the led.write = true statement turn the LED on or off? It seems to be off for me
@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
3 жыл бұрын
Try using .... led.value = True instead See here for explanation... learn.adafruit.com/circuitpython-digital-inputs-and-outputs/digital-outputs
@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
3 жыл бұрын
It turns out that the LED on the Xiao board is active low, so the behavior of it is normal.
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
Жыл бұрын
You are right. They have changed the pin definitions. The correct one for the LED is not this one: board.LED_INVERTED
can't find mu for 7 windows 32 bit
how do I convert it back into the original Xiao
@Educ8s
Жыл бұрын
It is mentioned in the video, just updload an Arduino program using the Arduino IDE.
@erosionreactions
Жыл бұрын
@@Educ8s ok thanks
mine does not work, I cannot get the computer to recognize the chip, on the port.
@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
3 жыл бұрын
This does not work well in windows 8. I can get this working 100% correctly in Windows 10, but not windows 8.
Can I translate your videos in marathi hindi
Έχεις σκεφτεί να κάνεις και ελληνικό κανάλι;
These tutorials are junk. Not one of them actually work. import board ModuleNotFoundError: No module named 'board'