Тёмный

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

educ8s.tv
Подписаться 124 тыс.
Просмотров 25 тыс.
50% 1

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

Наука

Опубликовано:

 

12 окт 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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 RU-vid CHANNEL! bit.ly/3tku2n0
@makerming1436
@makerming1436 3 года назад
Love your illustration, very clear and informative! Thanks!
@AliG.G
@AliG.G 3 года назад
Brilliant videos as always. Keep it up
@lakemast
@lakemast 3 года назад
Thank you very much for sharing this!
@qzorn4440
@qzorn4440 3 года назад
this is a great Christmas covid19,20,21... small toy and a wonderful diy Xiao video... thanks a lot...:)
@gr7480
@gr7480 3 года назад
Thanks. Very interresting.
@rlb5261
@rlb5261 3 года назад
Excellent!!!!!
@nirtzezana627
@nirtzezana627 3 года назад
You are the king!
@Educ8s
@Educ8s 3 года назад
Yes, the ESP32-S2 dev board. I have ordered one and can't wait to test it.
@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?
@anycatdessai
@anycatdessai 2 года назад
Thanks for the intro.
@Come_with_me9
@Come_with_me9 3 года назад
Great ! Can you please arm programming video.. :)
@electronic7979
@electronic7979 3 года назад
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?
@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 ??
@mihaelmiles7184
@mihaelmiles7184 3 года назад
For what is used that chip?
@kamenopixel
@kamenopixel 3 года назад
Η φωνή σου ειναι ίδια με του konilo.. τυχαίο ?
@sumopanda5070
@sumopanda5070 3 года назад
could i add a blue tooth mod on the seeeduino?
@TheAstronomyDude
@TheAstronomyDude 3 года назад
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!
@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 года назад
It turns out that the LED on the Xiao board is active low, so the behavior of it is normal.
@yxhankun
@yxhankun 2 года назад
can't find mu for 7 windows 32 bit
@BYAZIT
@BYAZIT 3 года назад
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
@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
@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
@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'
Далее
Угадай МОБА 1 🥵 | WICSUR #shorts
01:00
Просмотров 614 тыс.
Каха заблудился в горах
00:57
Просмотров 826 тыс.
Arduino VS CircuitPython Speed Comparison
5:48
Просмотров 39 тыс.
CircuitPython: Python on hardware (Dave Astels)
26:05
Program Seeeduino XIAO Using CircuitPython
3:03
Просмотров 4,6 тыс.
Adafruit Trinket M0  and CircuitPython
15:18
Просмотров 39 тыс.
Новые iPhone 16 и 16 Pro Max
0:42
Просмотров 1,4 млн
Красиво, но телефон жаль
0:32
Просмотров 1,5 млн
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 17 тыс.