This is the best Pico getting started video I have seen, out of more than a dozen. Some are merely infatuated with taking something out of a cardboard box, while all of them did nothing more than read the spec sheet out loud. You, on the other hand, actually showed us how to do something. Thank you. I used Putty in serial mode to get the REPL.
Thanks :) Connecting by terminal is a great "need to know" for microcontrollers, and the next level up is using an IDE such as Thonny to flash your scripts to your Pico (so they stay on there forever). Oh, and we have done a guide for that as well =) th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html
Wonderful intro video. Thanks Micheal The code didn't work initially but it worked with the following: from machine import Timer from machine import Pin tim = Timer() led = Pin(25, Pin.OUT) def tick(timer): global led led.toggle() tim.init(freq=3.5, mode=Timer.PERIODIC, callback=tick)
Wow! Thank you so much for this. I just spent 3 hours trying to follow the PDF made by raspberry pi and couldn't seem to get anything to work. Followed this and I had everything working in 10 minutes. Should have just come here first 😭
CoolTerm tip: Enabling the "Filter ASCII Escape Sequences" and "Handle BS and DEL Characters" options in the CoolTerm connection settings allows you to use CoolTerm in "Raw Mode" as opposed to "Line Mode". This gives you the same look and feel you get from the Python interpreter running on a PC. However, you will lose the ability to use the UP arrow to recall previously used commands as MicroPython on the Pi Pico doesn't appear to be supporting the UP/Down arrows.
The latest version of CoolTerm now has an option to emulate certain keys, such as the UP and DOWN arrows by sending specific ANSI escape sequences MicroPython understands. Enabling this option enables the use of the UP and DOWN arrows in "Raw Mode".
I use ESP8266 with webrepl for years for small home project. Great hoby toy! In the last few days micropython has exploded in popularity due to pi pico. (which is a good thing, I hope for the accelerated development of the program)
I really enjoyed your video even though it's a year old it gave me a huge boost of confidence and excitement watching your video reason being years ago I actually bought a Raspberry Pi device similar to yours and it got misplaced in some boxes so by watching your video it gave me this bolt of energy to go and look for it and to do what I wanted to do years ago now I know my device is probably again years old but thanks for the video and just get me excited to get back to working in starting on I should say with my Raspberry Pi device I look forward to watching your other videos in the future as well friend. Also it was very easy to listen to you and follow you you did a great job of explaining things and your video work was just really good so great job on everything regarding your video
If you want to go even further with the Pico we have made a comprehensive beginners course for it! We cover everything from the basics, reading sensors, controlling servos, and even all the way upto hosting webpages on it! So if you wanna get started, you can find the entire playlist over here: th-cam.com/play/PLPK2l9Knytg4f6qkY65dizne2yAWeIyKD.html
We've just finished a guide using Thonny - which makes it *really* easy to upload code/scripts onto your Pico (not just tinker with the REPL) th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html
While I am waiting for my order to arrive I've been having a quick look through of the Official Raspberry Pi Pico Guide digital download 'Getting Started with MicroPython on Raspberry Pi Pico'. It seems that Thonny is the simplest option and comes with Raspberry Pi OS or can be downloaded for other OSes. You can write your MicroPython code in live mode or save it as a .py file directly to the Pico.
We have a Thonny guide coming out in the next couple of hours :) We just wanted to be sure the new public release of Thonny works the same way (pretty much does, so stay tuned!)
@@wojtek-33 I know, just wondering what a WiFi enabled Pico could do, that a PiZero(W) couldn't .... Possibly enable the Pico with an USR-W610, but that's £50 !
THANK YOU !!! Oh my GOD !! I've read DOZENS of "Quick Start Guides" and "For the Absolute Beginner" tutorials and they ALL start with, "To get started type THIS into your Pi Pico" without it ever crossing ANY of their BUTT- STUPID minds that they haven't explained WHERE to type it in !! I'm not kidding. They go through the whole, hold the "BootSel" button down, plug it in, it shows up here, drag this file onto it and wait for it to reboot thing. Then the VERY next thing is "Now type THIS in". WHERE !?!?!?!?!??! God it's so frustrating how utterly stupid software people almost always are. Any 10 year old can learn to program. Doing software requires zero brains and the 100 get started tutorials out there for this demonstrate that perfectly. Thank you for NOT being an idiot !!!!!
The callback function can use the argument if it wants to do things like stopping the actual timer. If the function has no argument it will basically get an error that the type does not match, however you won’t see the error as it happens in a service routine (you can define an emergency buffer if you want to see the error as documented here docs.micropython.org/en/latest/pyboard/reference/isr_rules.html ) but it’s best to just define the argument so that the number of arguments is correct, even if you don’t use it.
Yeah I suppose it does work out like interference. I wonder what it might look like if you photographed it as long exposure, scanning it back and forth slowly
Nice work! Could you help me? Chinese calliper data reading pi pico micropyton is the few lines of code that do this! Unfortunately, I couldn't find a sample example of such a thing anywhere!
hi, I am dragging and dropping uf2 file onto rp2 drive, it dispears but I can't find micro python from drop down in Thornny in Interpretor drop down in options. can you help?
Thanks for review. Why did not you use a normal Micropython IDE? Coding in terminal, hmm... And a Raspberry Pi Foundation guys are f..ng late in creating an Arduino-style board without wireless connectivity. It can be nice in 2010 but now I don't see any advantages in switching from ESP32 to this...
I am getting this: >> from machine import pin Traceback (most recent call last): File "", line 1, in ImportError: can't import name pin Any advice, please? Ah-ha, I got it now Capital P! on the pin. Harrah I have a lit LED Thanks for the tutorial.
Capital "P" for pin :) Also, you may prefer to use Thonny for scripting and flashing your code to your Pico. We have put together a guide here th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html
I tried uploading a script into my Raspberry Pi Pico using conventional method (drag and drop into it). However, when I power the board, the code doesn't execute at all. I bought two boards and they are both having the same behaviour. However, with CoolTerm it is doing just fine.
Hey Gabriel, are the scripts named main.py? The board will only run code named that on boot. If that is not the case ensure you have installed MicroPython correctly and that the scripts are correct. Best of luck!
@@Core-Electronics Yup, they are. I tried almost everything I could find on the web, formatting it, deleting everything and then uploading, uploading the ufi file after the main.py, etc
After copying the MicroPython file, the Pico disconnects. How can I access the Pico after that? Apparently, there are no serial connections found on my computer... Edit: It was a Windows issue. Switching to my Linux machine fixed it.
I came here just out of curiosity. It looks like strange way of programming microcontroller but I guess for people who already know python it can be useful. I will definitely stick with STM32 + C + STM32cubeIDE.
Heya Bob, this is just the bare-metal approach using REPL. You might be interested with a full IDE experience such as Thonny, which we have recently done a guide for as well th-cam.com/video/HlmOqaFOOWY/w-d-xo.html
So you can make a LED blink and set up a timer to that. I was wondering if you can programm some sort of morse alphabet to it and use the Pico as a minimalistic communication device? ^^ (Note here: I'm pretty new to programming and computers in general so i have no idea what the limitations of this software and hardware is. All a have is a bit creativity, thats all atm :) )
Get one and have a go! They don't have have any wireless communication on board, so you'd have to design that yourself or wait for their wifi pack from pimoroni. You could set it up with a short range radio transmitter and then have another pico set up with a receiver and a little servo to read out your morse code. Could be a great project to get started.
Interesting they are going after Arduino. But is this the right offering? Micropython has been around for a while now and esp8266 offers wifi at the same price point. The real things I see as interesting are the 132Mhz clock and operating voltage 1.8-5v.
I have create main.py file for blinking led and now when I try to save/run another script the IDE(Thonny) shows error that the device is bussy. The previous script keeps on running. Even ctrl+c doesn't works. Any solution?
Just got my Pico, so just starting to get aquainted. Could you explain what goes on in the 2mb flash chip. I see that Adafruit has installed a 4mb on their board, please discuss.
This tutorial is can be a little outdated, the Pico has become far easier to use now and we have a newer getting started video over here: th-cam.com/video/1QqHAwCkQLU/w-d-xo.html&ab_channel=CoreElectronics
I am trying to get Hello world working with ubuntu on WSL, but the command minicom -b 115200 -o -D ttyACM0 outputs nothing, do you know what I should modify this to? (my device is on COM3)
I'm Brazilian, my name is Renan, I have an interest in learning web designer and programming in python, but I have nowhere to practice, I would like to have access to the raspberry pi, more here in Brazil with the current dollar quote, the equipment that was supposed to be easy access, very expensive, between R $ 500 and R $ 1000, with a minimum wage of R $ 1060, I am not able to acquire. would it be possible to help me in any way? I'm sorry for any typo I'm using google translator. I'm just asking for not having the conditions. Thanks in advance.
i'm at a loss here... i want to write a simple script to make a pulsing signal but i can't even get step one. i don't need it to be sent over serial or edited realtime like he did but i can't even import the required libraries. from machine doesn't even work using the latest uf2, it just isn't a thing. is there another way to use gpio that doesn't involve me spending another day trying to figure out what i did wrong or the steps people like this guy assumes everyone just knows to do?
Thanks Ramon, rshell is the "bare metal" and we've shared that guide here th-cam.com/video/IMZUZuytt7o/w-d-xo.html Releasing a Thonny version today (more user friendly)
It executes comands on the spot .... like the C64 did 40 years ago. Of course, at 1/100 the power. Still dont see the adavantage of using this approach, rather than just playing. Also, he never made a mistake, in the real woold what happens, the lines are "compiled" on the go ?.
It is pretty much "just playing" - though getting a dev board up-and-going with a terminal application is quite handy for a range of reasons, especially debugging. If you want to instead connect the Pico to an IDE, then take a look at this guide th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html
At the time of writing, Thonny is the best user experience. It will gracefully handle firmware updates and makes updating code transparent (easy). Support for VSCode shouldn’t be far away; though it would be via a plug-in of some flavor
You can run CircuitPython on the Pico as well. It appears as a drive with a python file on it that you can edit from any code or plain text editor. On save, the code will be restarted. You'll need a separate serial app to see the output. circuitpython.org/board/raspberry_pi_pico/
He is complicating a simple issue, Python is only a year 10 school stuff and simple. NOTE: You don't need to write all that timer, def etc, you can just write a simple loop which doesn't end and you will have continuous blinking : from machine import Pin import time led = Pin(25,Pin.OUT) while True: led.high() time.sleep(0.2) led.low() time.sleep(0.2)
Sorry - too fast for me. From "Hello world" to creating functions in live coding in 10 min... I look forward to the scripting - maybe that will be a better pace for beginners like me.
We didn't want to bog-down everyone with a "MicroPython Guide" - this was intended to be a clean cut example of how to get the REPL going on RP2040 (Pico) and from there, have at it! We've also released a guide for rshell (for uploading your code) and today we'll release another for Thonny
This is the best Pico getting started video I have seen, out of more than a dozen. Some are merely infatuated with taking something out of a cardboard box, while all of them did nothing more than read the spec sheet out loud. You, on the other hand, actually showed us how to do something. Thank you. I used Putty in serial mode to get the REPL.
Thanks :) Connecting by terminal is a great "need to know" for microcontrollers, and the next level up is using an IDE such as Thonny to flash your scripts to your Pico (so they stay on there forever). Oh, and we have done a guide for that as well =) th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html
Used Roger Meier's stuff for ages - he does amazing work! So useful for many different applications
Wonderful intro video. Thanks Micheal
The code didn't work initially but it worked with the following:
from machine import Timer
from machine import Pin
tim = Timer()
led = Pin(25, Pin.OUT)
def tick(timer):
global led
led.toggle()
tim.init(freq=3.5, mode=Timer.PERIODIC, callback=tick)
Do you know why CoolTerm might not execute print("Hello World")? I typed it in and hit ENTER, but the code disappeared and nothing happened.
This is so cool! I haven’t seen a touch typist since a secretary in school 15 years ago
Michael's keyboard skills are often commented upon, #manwithclass
Wow! Thank you so much for this. I just spent 3 hours trying to follow the PDF made by raspberry pi and couldn't seem to get anything to work. Followed this and I had everything working in 10 minutes. Should have just come here first 😭
Got my Pi Pico from Core and now have a flashing green led thanks to this video. :) Now for the real stuff...
CoolTerm tip:
Enabling the "Filter ASCII Escape Sequences" and "Handle BS and DEL Characters" options in the CoolTerm connection settings allows you to use CoolTerm in "Raw Mode" as opposed to "Line Mode". This gives you the same look and feel you get from the Python interpreter running on a PC. However, you will lose the ability to use the UP arrow to recall previously used commands as MicroPython on the Pi Pico doesn't appear to be supporting the UP/Down arrows.
The latest version of CoolTerm now has an option to emulate certain keys, such as the UP and DOWN arrows by sending specific ANSI escape sequences MicroPython understands. Enabling this option enables the use of the UP and DOWN arrows in "Raw Mode".
The pico is on stock,unlike the Raspberry Pi of course
This is very very very useful
REPL is cool but WebREPL through Wifi is cooler. I use it to update or debug my ESP8266s around my house. (Lights and water control)
I use ESP8266 with webrepl for years for small home project. Great hoby toy!
In the last few days micropython has exploded in popularity due to pi pico. (which is a good thing, I hope for the accelerated development of the program)
used this video to start with Pt2040 zero and it worked!
Awesome!
I really enjoyed your video even though it's a year old it gave me a huge boost of confidence and excitement watching your video reason being years ago I actually bought a Raspberry Pi device similar to yours and it got misplaced in some boxes so by watching your video it gave me this bolt of energy to go and look for it and to do what I wanted to do years ago now I know my device is probably again years old but thanks for the video and just get me excited to get back to working in starting on I should say with my Raspberry Pi device I look forward to watching your other videos in the future as well friend. Also it was very easy to listen to you and follow you you did a great job of explaining things and your video work was just really good so great job on everything regarding your video
If you want to go even further with the Pico we have made a comprehensive beginners course for it! We cover everything from the basics, reading sensors, controlling servos, and even all the way upto hosting webpages on it!
So if you wanna get started, you can find the entire playlist over here: th-cam.com/play/PLPK2l9Knytg4f6qkY65dizne2yAWeIyKD.html
In 3 weeks I will have mine. I am learning now thanks to you!
very under rated channel.
I just got started pico with you 😇
Nicely Explained
Well done Michael! Looks awesome. Love to get my hands on some soon. I'll stay tuned to see about uploading persistent code. Cheers!
Thanks Colin, we released the rshell video last night and a Thonny is on the bake today :)
Mine's coming tomorrow and I can't wait!!!
@MichaelKingsfordGray Erm I have a name, I don't want to disclose it here.
We've just finished a guide using Thonny - which makes it *really* easy to upload code/scripts onto your Pico (not just tinker with the REPL) th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html
Very cool.
Have ordered my Pico from Core but won't have it till sometime in March.
Looking forward to playing with it.
While I am waiting for my order to arrive I've been having a quick look through of the Official Raspberry Pi Pico Guide digital download 'Getting Started with MicroPython on Raspberry Pi Pico'.
It seems that Thonny is the simplest option and comes with Raspberry Pi OS or can be downloaded for other OSes. You can write your MicroPython code in live mode or save it as a .py file directly to the Pico.
We have a Thonny guide coming out in the next couple of hours :) We just wanted to be sure the new public release of Thonny works the same way (pretty much does, so stay tuned!)
.... and it's done! th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html
It is simple and step by step learning ,so good to the beginner like me ,keep it out
Ok got that ordered ofcourse...
But can't wait for a version with wifi :P
Would a pi zero not cover it ?
@@wojtek-33 I know, just wondering what a WiFi enabled Pico could do, that a PiZero(W) couldn't ....
Possibly enable the Pico with an USR-W610, but that's £50 !
THANK YOU !!! Oh my GOD !! I've read DOZENS of "Quick Start Guides" and "For the Absolute Beginner" tutorials and they ALL start with, "To get started type THIS into your Pi Pico" without it ever crossing ANY of their BUTT- STUPID minds that they haven't explained WHERE to type it in !! I'm not kidding. They go through the whole, hold the "BootSel" button down, plug it in, it shows up here, drag this file onto it and wait for it to reboot thing. Then the VERY next thing is "Now type THIS in". WHERE !?!?!?!?!??! God it's so frustrating how utterly stupid software people almost always are. Any 10 year old can learn to program. Doing software requires zero brains and the 100 get started tutorials out there for this demonstrate that perfectly. Thank you for NOT being an idiot !!!!!
Thank this was very helpful was about to give up.
Helpful video 👍
Does the Timer class require that the tick function has the argument timer? The argument is not being used inside the function.
The callback function can use the argument if it wants to do things like stopping the actual timer. If the function has no argument it will basically get an error that the type does not match, however you won’t see the error as it happens in a service routine (you can define an emergency buffer if you want to see the error as documented here docs.micropython.org/en/latest/pyboard/reference/isr_rules.html ) but it’s best to just define the argument so that the number of arguments is correct, even if you don’t use it.
nice to learn- thank you
Nice Moire pattern led blinking....
Yeah I suppose it does work out like interference. I wonder what it might look like if you photographed it as long exposure, scanning it back and forth slowly
@@MichaelRuppe Like any waveform put through a lowpassfilter
Thankyou on my order.
Thank you! appreciate your effort.
Nice work! Could you help me? Chinese calliper data reading pi pico micropyton is the few lines of code that do this! Unfortunately,
I couldn't find a sample example of such a thing anywhere!
That's good value for bucks. 4$ for a complete MC is nothing, and specially for the reason, the language can be chosen.
A dollar less gets an Arduino Uno clone from China.
Great video, well presented. keep it up!
Ordered 2 Picos from Core last week. Interested to see how it compares to the Teensy.
I have a Chromebook, would I be able to do it similar or how, it’s hard to find anything for chromebook people
This is pretty cool. Got my Pico to print "Hello World" On the screen. The only problem is I did everything you said, and my LED still won't light up.
Hi do you have a Pico or a Pico W variant?
@@Core-Electronics This might be an issue but I don’t know. I have the normal Pico variant, not the Pico W.
hi, I am dragging and dropping uf2 file onto rp2 drive, it dispears but I can't find micro python from drop down in Thornny in Interpretor drop down in options. can you help?
it have 128MB memory to save projects?
Thanks for review. Why did not you use a normal Micropython IDE? Coding in terminal, hmm... And a Raspberry Pi Foundation guys are f..ng late in creating an Arduino-style board without wireless connectivity. It can be nice in 2010 but now I don't see any advantages in switching from ESP32 to this...
I am getting this:
>> from machine import pin
Traceback (most recent call last):
File "", line 1, in
ImportError:
can't import name pin
Any advice, please? Ah-ha, I got it now Capital P! on the pin.
Harrah I have a lit LED
Thanks for the tutorial.
from machine import Pin
@@MrRadiostep yes
Capital "P" for pin :) Also, you may prefer to use Thonny for scripting and flashing your code to your Pico. We have put together a guide here th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html
@@Core-Electronics great I actually did a little video myself recommending your web site 😉
P capital , lol i did the same mistake for like 2-3 times
I tried uploading a script into my Raspberry Pi Pico using conventional method (drag and drop into it). However, when I power the board, the code doesn't execute at all. I bought two boards and they are both having the same behaviour. However, with CoolTerm it is doing just fine.
Hey Gabriel, are the scripts named main.py? The board will only run code named that on boot. If that is not the case ensure you have installed MicroPython correctly and that the scripts are correct. Best of luck!
@@Core-Electronics Yup, they are. I tried almost everything I could find on the web, formatting it, deleting everything and then uploading, uploading the ufi file after the main.py, etc
After copying the MicroPython file, the Pico disconnects. How can I access the Pico after that? Apparently, there are no serial connections found on my computer...
Edit: It was a Windows issue. Switching to my Linux machine fixed it.
I came here just out of curiosity. It looks like strange way of programming microcontroller but I guess for people who already know python it can be useful. I will definitely stick with STM32 + C + STM32cubeIDE.
Heya Bob, this is just the bare-metal approach using REPL. You might be interested with a full IDE experience such as Thonny, which we have recently done a guide for as well th-cam.com/video/HlmOqaFOOWY/w-d-xo.html
Good man, very well done. Ther's something quite exciting about programming a microcrontroller interactively in real time, eh?
Your poly-rhythm is called a "heartbeat". Hardkernel from South Korea likes to use it.
So you can make a LED blink and set up a timer to that. I was wondering if you can programm some sort of morse alphabet to it and use the Pico as a minimalistic communication device? ^^
(Note here: I'm pretty new to programming and computers in general so i have no idea what the limitations of this software and hardware is. All a have is a bit creativity, thats all atm :) )
Get one and have a go! They don't have have any wireless communication on board, so you'd have to design that yourself or wait for their wifi pack from pimoroni. You could set it up with a short range radio transmitter and then have another pico set up with a receiver and a little servo to read out your morse code. Could be a great project to get started.
Interesting they are going after Arduino. But is this the right offering? Micropython has been around for a while now and esp8266 offers wifi at the same price point. The real things I see as interesting are the 132Mhz clock and operating voltage 1.8-5v.
When i try to connect, i get a CoolTerm - Warning
An Error Occured while attempting to open the port COM4
5: Access Denied
I prefer u demo on c orC ++ for PICO. PLEASE!
I have create main.py file for blinking led and now when I try to save/run another script the IDE(Thonny) shows error that the device is bussy. The previous script keeps on running. Even ctrl+c doesn't works. Any solution?
now with micropython, led doesn;t turn on with this light. but rather,
led=Pin("LED", Pin.OUT)
led.on()
Where can I find the python functions that can be imported on the pico?
when i drag the uf2 file into the pico it immediately disconnects
Hey i have a problem so when i downled the uf2 file it shows up as notepad and i think i did something that resulted in thatbut now what can i do?
Just got my Pico, so just starting to get aquainted. Could you explain what goes on in the 2mb flash chip. I see that Adafruit has installed a 4mb on their board, please discuss.
Why is my coolterm showing a dot instead of "hello world" ?
What volt did you have in output from input/output pin ???? 5 or 3.3 ???
The Pi Pico is 3.3V only on the I/O.
After installing CoolTerm, I typed in
print("Hello World")
And I hit Enter.
Nothing happened. It did not output "Hello World."
This tutorial is can be a little outdated, the Pico has become far easier to use now and we have a newer getting started video over here: th-cam.com/video/1QqHAwCkQLU/w-d-xo.html&ab_channel=CoreElectronics
I am trying to get Hello world working with ubuntu on WSL, but the command minicom -b 115200 -o -D ttyACM0 outputs nothing, do you know what I should modify this to? (my device is on COM3)
I tried using Termite and is not working.putty works.
I'm Brazilian, my name is Renan, I have an interest in learning web designer and programming in python, but I have nowhere to practice, I would like to have access to the raspberry pi, more here in Brazil with the current dollar quote, the equipment that was supposed to be easy access, very expensive, between R $ 500 and R $ 1000, with a minimum wage of R $ 1060, I am not able to acquire. would it be possible to help me in any way?
I'm sorry for any typo I'm using google translator. I'm just asking for not having the conditions. Thanks in advance.
Only thing I'd like different is wifi capability like the zero w
what do you do if the uf2 file doesnt get saved to the pico
i'm at a loss here... i want to write a simple script to make a pulsing signal but i can't even get step one. i don't need it to be sent over serial or edited realtime like he did but i can't even import the required libraries. from machine doesn't even work using the latest uf2, it just isn't a thing. is there another way to use gpio that doesn't involve me spending another day trying to figure out what i did wrong or the steps people like this guy assumes everyone just knows to do?
Three dots is an ellipsis. The fact that there are three of them does not make it an ellipses.
#technicallycorrect :)
i cant install the machine module.....can someone help me?
I would have liked to see it running c++ as that would enable use of the Arduino library's which are very large and comprehensive.
Good idea! We'll have to get to work on one ;) word on the street is that RPi are working on a direct arduino port so it should integrate super easily
Helt OK Jag beställde tio st Pico direkt!
Har bara beställt en. Tänkte prova Forth på den, och kanske Ocaml, vi får se.
HELP: i have no module named machine on my pico
How to debug the c cide ??
Doesn't include how to upload a program to the board.
Next video as per his outtro! :-)
Thanks Ramon, rshell is the "bare metal" and we've shared that guide here th-cam.com/video/IMZUZuytt7o/w-d-xo.html
Releasing a Thonny version today (more user friendly)
Thonny guide released! th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html
Pls help. My project is Automated Pig Feeder using Rasberry pi pico.
Why are you not using a RPi 4B when you program this? ;-)
(Thanks for the video, by the way)
most have windows, less have rpi os, both can handle the repl/dropfile, putty also works on both (like coolterm)
rp2040 is not confined to rpi users.
I could not see the rpi codes in micropython/ports repository, will it be added later or will it be not "open source"?
It executes comands on the spot .... like the C64 did 40 years ago. Of course, at 1/100 the power. Still dont see the adavantage of using this approach, rather than just playing. Also, he never made a mistake, in the real woold what happens, the lines are "compiled" on the go ?.
It is pretty much "just playing" - though getting a dev board up-and-going with a terminal application is quite handy for a range of reasons, especially debugging. If you want to instead connect the Pico to an IDE, then take a look at this guide th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html
that's how interpreted languages work mate
👍 👍 👍 👍 👍 👍 👍 🍀
That global wasn't necessary. It would be only if you set the variable inside that function.
how to debug ?? without debugging its of NO professional use.....
Could you use VSCode as the code editor on your computer and send the code to Pico somehow?
At the time of writing, Thonny is the best user experience. It will gracefully handle firmware updates and makes updating code transparent (easy). Support for VSCode shouldn’t be far away; though it would be via a plug-in of some flavor
You can run CircuitPython on the Pico as well. It appears as a drive with a python file on it that you can edit from any code or plain text editor. On save, the code will be restarted. You'll need a separate serial app to see the output. circuitpython.org/board/raspberry_pi_pico/
doesn't recognize driver.
This guy either plays drums or listens to Animals as Leaders. How do I know? He knows what polyrhythms are.
It’s not turning on☹️
Have you looked into running Circuitpython? It could be a better option for new users. Let me know what you think.
He is complicating a simple issue, Python is only a year 10 school stuff and simple. NOTE: You don't need to write all that timer, def etc, you can just write a simple loop which doesn't end and you will have continuous blinking :
from machine import Pin
import time
led = Pin(25,Pin.OUT)
while True:
led.high()
time.sleep(0.2)
led.low()
time.sleep(0.2)
Not $4.00 now, $6.80 + $24.00 shipping
Is micropython the only way to program the Pico?
There's also a C++ SDK. Check out raspberry pi's literature on the subject
You can use Circuitpython. Lady Ada has done a lot of development work and they are also a manufacturer for the board.
9:00
Didn't use putty, 0/10
Jk great vid
putty works great in serial mode to get the REPL
Sorry - too fast for me. From "Hello world" to creating functions in live coding in 10 min... I look forward to the scripting - maybe that will be a better pace for beginners like me.
How to teach programming without writing a program, Doh!
We didn't want to bog-down everyone with a "MicroPython Guide" - this was intended to be a clean cut example of how to get the REPL going on RP2040 (Pico) and from there, have at it!
We've also released a guide for rshell (for uploading your code) and today we'll release another for Thonny
Here's the Thonny guide, enjoy! th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html
You're ginger and you dye your hair dark.
Sorry, I can't tolerate the keyboard noise😡 I could download your video and redo the audio, I suppose - good content!
Oh no, keyboard noise will be a problem when coding in general. Good luck :)
@@Core-Electronics - I know, I've been coding for 35 years! Thank goodness for headphones 🙂
Pity it isn't the Raspberry Pikelet. :D
Man bun. Eww.
Man do i fuckin hate python... Did they have to do that!
I hope you do reply. i tried this code . Didn't work.
import machine
import utime
power_mosfet = 0
reset_mosfet = 1
mosfet_toggle_srt = 2
mosfet_toggle_med = 5
mosfet_toggle_long = 7
def mosfet_toggle(pin_no, toggle_period):
power_on = Pin(pin_no, Pin.OUT)
power_on.value(1)
utime.sleep(toggle_period)
Pin(pin_no, Pin.OUT).value(0)
utime.sleep(2)
def toggle(pin_no):
Pin(pin_no, Pin.OUT).toggle()
mosfet_toggle(power_mosfet, mosfet_toggle_long)
"""while True:
utime.sleep(2)
mosfet_toggle(power_mosfet, 1)
utime.sleep(2)"""