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 Наука
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
Love your illustration, very clear and informative! Thanks!
Brilliant videos as always. Keep it up
Thank you very much for sharing this!
this is a great Christmas covid19,20,21... small toy and a wonderful diy Xiao video... thanks a lot...:)
You are the king!
Yes, the ESP32-S2 dev board. I have ordered one and can't wait to test it.
Thanks. Very interresting.
Thanks for the intro.
Excellent!!!!!
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
great
Will this work for wio lite w600? They have the same core processor. Thanks.
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 ??
Η φωνή σου ειναι ίδια με του konilo.. τυχαίο ?
could i add a blue tooth mod on the seeeduino?
great video, but if I lose my Xiao I lose my code right? unless I save it in my computer
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!
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?
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.
Where did you buy it and how much it cost?
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
can't find mu for 7 windows 32 bit
Sorry stupid question, does the led.write = true statement turn the LED on or off?
It seems to be off for me
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?
Try using ....
led.value = True instead
See here for explanation...
learn.adafruit.com/circuitpython-digital-inputs-and-outputs/digital-outputs
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.
It turns out that the LED on the Xiao board is active low, so the behavior of it is normal.
how do I convert it back into the original Xiao
It is mentioned in the video, just updload an Arduino program using the Arduino IDE.
@@Educ8s ok thanks
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?
You are right. They have changed the pin definitions. The correct one for the LED is not this one: board.LED_INVERTED
mine does not work, I cannot get the computer to recognize the chip, on the port.
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.
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'