Raspberry Pi PICO | Starting With MicroPython + Examples | I2C OLED, ADC, PWM
High quality PCB prototypes: www.pcbway.com
🔥We have a new microcontroller on the market, the Raspberry Pi PICO. Here I show you how to start with this board, upload the MicroPython and start programming in Thonny. See all the examples.
🔀LINKS
-------------------------------------
Download MicroPython: bit.ly/36QWgKk
Download Thonny: thonny.org/
Prepare the PICO: electronoobs.c...
Blink Example: electronoobs.c...
Permanent code main.py: electronoobs.c...
ADC example: helectronoobs.c...
SSD1306 library: electronoobs.c...
i2c OLED example: electronoobs.c...
PWM Example: electronoobs.c...
🤝SUPPORT
-------------------------------------
Join my Arduino Course (Spanish): bit.ly/2JY8icE
ELECTRONOOBS.io: electronoobs.io
Help my projects on Patreon : / electronoobs
my Q&A page: electronoobs.i...
Facebook page: / electronoobs
Canal en Español: / electronoobs en español
00:00 Intro
01:51 Main Specs
03:41 Micropython
04:56 Install Micropython
05:50 Blink Example
07:22 Permanent main.py
08:26 ADC example
09:46 i2c Example
13:23 PWM Example
15:15 Outro
Like share and subscribe to motivate me. Thank you
#raspberry
#programming
#micropython
Пікірлер: 269
Arduino Course (Spanish): bit.ly/3ldW6kO Follow me on FACEBOOK for more: facebook.com/Electronoobs Help me on Patreon: www.patreon.com/ELECTRONOOBS
@carlosmelomaniaco3455
3 жыл бұрын
In Spanish please
@MadhuKumar-hi2qs
3 жыл бұрын
Please make a video on pico and Nrf24L01
@FUKTxProductions
3 жыл бұрын
@@carlosmelomaniaco3455 1
I Luv U man... I always pray for U that u get more n more successful... Respect for you man..
this was by far THE best tutorial on Pi pico on youtube
I love that you and GreatScott fight every Sunday for who releases first.... you beat him this time :)
@Haakkon
3 жыл бұрын
He may have beat him this time, but in the end... we're the winners.
What I like most about this is micropython! Programing arduino isn't easy, where as python IS very easy to learn and use and has a massive user base.
Please consider making videos about the PIO's. I think these are an interesting addition to a microcontroller with many great applications, but they are somewhat hard to grasp conceptually.
sir you are my tech guru mean great teacher , im an electronic engineering student and your videos are more useful to me and I appreciate your work thank you sir so much love you
I love that you're covering the new pi pico! I am trying to upgrade some of my old projects with this new board, many which use the popular nRF24L01 transceiver module. I would love to see a guide that uses these two together, like your universal RC transmitter, or a two-way terminal to terminal messenger. It looks like nobody out there as a guide with the nRF24L01 and Micro Python!?!
This is an excellent starting point for getting into Pico. Nice work!
When the lighter went to the micro pi I was like 😵😵😵 Awesome vid, learned a bunch!
This was great, I suggest that when you finish reviewing this board to compare it with other powerful boards like the teensy 3.6
I cannot believe the quality of this video. Thank you.
This is a great video! I'm thinking about making a tiny game console using one of these and a display and controller. Then I can program a few games in MicroPython, flash it to the Pico, and have a game console I can carry with me and use whenever I plug in a micro USB charging cable!
This is a good alternativ to the much more expensive PyBoard! Thanks for sharing!
THANK YOU!!! This fixed multiple serial initialization issues I had. I am using the arduino ide, and putting a 100ms delay at the start of setup() fixed it
Just reserving my comment space to edit after watching complete video 😅😂 Edit : Awesome video man. Although it looks quite impressive on paper and in first look, please use it in some projects to ensure the usability of this board. Thanks for the video, awesome. 👏😃
I found this rather odd: I have a Pi 400 and a Pi Pico, but they completely fail to communicate with each other. However, in desperation I downloaded Thonny onto my Windows computer, and it connected with the Pico instantly and works absolutely fine! 😃
Nice vid, Looking forward for the c++ part. Will you be covering a speedtest between python and c++ on the pico?
@kirilivanov7677
2 жыл бұрын
4
It's quite the same ARM tech as Psion and others from the 80's for those thinking it's super tech (the low price now is). I have a "NetPad" from 2001 which is speedy and I wish my power issue with it can be solved. I just like the Symbian/Epoc OS'es and have emulators (nostalgia and programming fun). The GPIO idea is very interesting to me. Also the modular constructs. Wouldn't have started with RPi stuff recently without the connection options and various modules in existence.
I didn't know Raspberry Pi pico would be easier than Arduino ....thanx buddy❤️
I can't believe you hit it with fire haha Just got my own pico. Thanks for the tutorial!
@ptipupu
Жыл бұрын
c'est vrai qu'il m'a tué sur ce coup là 🔥
I have been following your channel since a while you're doing great stuff . Keep going best of luck
You killed it once again! Great job! 👍 I'm on board with your fans, I'd love to see you do another drone using this board.
Thanks - enjoyed your video. It showed the basics of how to get up and running as well as a good selection of various i/o modes.
fricking psycho just lit it on fire to see the sensor moving xd but really nice vid, subscribe
That was a really great video... And I've been interested in the pico! Thank you for this!
I was going to get an Arduino but now....... I'll ge this Raspberry pi micro controller instead, and wait for the C++ video. Thank you!!!!!
Fantastic video. Now I have have a Raspberry Pi Pico. Your videos are very informative and easy to understand.
Este es uno de los mejores videos, no conocía ese micro controlador de raspberry, haz más videos sobre el porfa :3
c.o steven behnke very useful info everyone should know. if you add a momentary switch to the 'run' pin and ground you can use it as a reset ,hold the new reset button, press 'boot sel' button at the same time , then release the reset, you dont need to keep replugging the usb power any more
Thank you for making this video!! I can't wait to get my pico and try these projects.
Really, I was waiting for this. Pi pico is very good and cheap in India, only about 350rupess(about 4$).
Pretty awesome! Just waiting for your great projects XD Tnx for sharing! 🙏💎
I get an error when I type Import machine.
Temperature sensor testing was great! :)
9:00 you say wierd but the documentation for MICRO PYTHON for pico says the 12bit ADC "samples" a value from 0-4095 and CONVERTS it to a 16bit value from 0-65535 so it behaves as other python controllers.
@cmjoubert
4 ай бұрын
One sensible comment at least
Thanks for help with new board ;) First MicroPython board for myself.
Thanks for sharing the Thonny tutorial! It's a great tool.
Congrats! 300,000 Subscribers!
link to the SSD1306 library no longer works :(
Excellent video! Great production values to boot!
If you use MicroPython, it's possibly 4 times faster than 16Mhz Arduino. However, when you use C, the RPI Pico is significantly faster, approximately 30 times faster than when using Python. So, when using C, the RPI Pico at 133 MHz is maybe 120 times faster than the Arduino Uno at 16 MHz.
Nice video! It's cool to make videos about new hardware to keep us updated
3:25 Does it mean that I can connect up to 16 servos to Pi Pico?
Great video. Awesome production quality!
Hello do you know if the pico will be supported with the simulink support package ? Because that is an advantage with the nano ! It's much easier to create a control logic with simulink. Thanks man !
Just bought one, thanks for the tutorial!
Loved the video was waiting for u to make this video 👍👍👍👏
The Pi Pico ADCs look better on paper, but they're actually very noisy and non-linear, with spikes in the response that shouldn't be there. There's a design fault in the RP2040 chip that makes the ADCs only equivalent to 9 bits, and you have to give some thought to how to get a smooth 9 bit response to a smoothly varying input voltage. Also, the Ardunos all have a decent number of ADCs, while the Pi Pico only has three, and could have had four, if they'd connected that up to a GPIO pin. Not everything about the Pi Pico is better - for some applications the AVR based Arduinos are still a better choice.
This is so clear to add modules and start with raspberry pi. Can you please do a session on how to use 4 wire stepper motor and hmc5883l digital compass with raspberry pi pico?
Will you make Drone with PICO in future ? I will be waiting for that video!
Great video! It's nice to show people to are used to Arduino hoe to het started on the Rpi. I'm curious about the power use, the Rpi is a lot faster, but does it use a lot more power? For battery or solar powered devices this could be interesting. Thanks again!
This seems to be on par with the esp8266, a bit late for pi to be bringing out as the esp32 S2 is available with more and for less. Following this a power consumption would be good information. Personally I don't like the compiler and manual uploading files and/on calls for things to work, I wonder if it will get porting to A ide?
how about an example of i2c between the Pico and an ESP32 ?
Amazing video.. absolutely fantastic.. Also currently I am working on my custom development board which is based on the PIC microcontroller si this video was kinda helpful
What does it mean if written ‘No module named machine’?
Very informative getting-started video. Thanks!
Amazing video as always and waiting for your amazing projects using the pico. Just at 2:52 you say 264 but write 64 in the video. Also english is not really my thing but according to data sheets, they always state the bit in singular not plural for example 8 bit microcontroller not 8 bits
@makkam7575
3 жыл бұрын
I hate to be that guy but also at 9:05 In 16 bits you have 65536 values. Computers start counting from 0 so the values will go from 0 to 65535
Very cool mate, my 3 Pico boards should be here in 3 weeks, I had to back order them but at $4 a board and $3 shipping what's not to like. Well worth waiting for. I should order another 3-4.
@simonmailhot4260
3 жыл бұрын
I wonder where you got that nice 4$price?
@stevetobias4890
3 жыл бұрын
@@simonmailhot4260 from Core Electronics Australia. Current price is now $5.75 plus $3 shipping
Amazing tutorial, thanks.
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!
Video quality was great ♥️
Nice ! I played with the pico two weeks before this video lol
Any thoughts on why ADC was reading 65535 and not 4095?
Coool! Thanks from Russia)
Thank you for this video, it is very helpful. Are you planning to make a second video explaining UART and SPI too?
Nice Tutorial! Thanks! (dont burn your pi with a lighter! )
@ELECTRONOOBS
Жыл бұрын
LOL
You can also run Arduino on the Pico as well. I ran an Arduino performance test on the Pico vs my Uno. It's more than 10x faster :)
I always share on Twitter and Thumbs up your videos :)
Excellent Video!!!!
If the Pico can do all these, do we even need Rpi? Can Pico connect to my laptop wirelessly and read the code? Rpi is so expensive these days so I am trying to figure out if I can make DIY projects with Pico and my laptop alone, without Rpi. Thanks
Great video !! But I have a question We have I2C0 in Gp0 Gp1 We also have the same I2C0 GP16 GP17 But if I run that scan it shows only one device so the big question is Why do we have 2+ sets of i2c0 in pi pico what is the potential advantage of having it like that ?
@TooSlowTube
Жыл бұрын
You can choose which pins a device (like i2c) appears on - but there are only certain choices because each pin can only do so many different functions. Normally, you just configure it once in a declaration at the start of the program. I'm used to C++/Arduino, but the same presumably applies to MicroPython / CircuitPython too. Physically, the chip can do it, so it's just a question of whether the programming language gives you the option.
@sumukhas5418
Жыл бұрын
@@TooSlowTube Great, thanks
@TooSlowTube
Жыл бұрын
@@sumukhas5418 You're welcome.
Nice and clear explanation. Thanks
excellent - covered a lot of ground there!
who ease feels silly for buying Arduino? joking i love python i refer to it as the interpretive dance of code i have used it mostly to exploit things i think. fun bit is the code never seems to really follow the rules of the code i use to exploit with it. i don't know i am no coder but there just seems to be a little gypsy magic in python lol. love the channel and find you easy to follow and understand thanks bro. i still love arduino got me through the door into the world of the lightning gods and the harnessing the universal laws of nature so i can write silly comments on you tube, thank you lightning gods i feel imporatant now =)
Can I do optimization in this board? Can you suggest any optimizers which take less memory?
Very nice video. Kudos
Been trying to get one. Great video Thanks
Hello, so I have a question, what is a real life use of this technology? I want to use it as my thesis subject but I struggle to find a use for it other than it being a nice gimmick??
You don't have to refresh the LCD all screen all the time. Only when needed on certain part of the screen so it won't worn too fast.. And also no flickering on video.. Unless you playing video on it.. It do need refresh rate... Just saying..
HI, thanks for this, i could use some help. I entered the code exactly as shown on 10:04 and im getting: Traceback (most recent call last): File "", line 7, in IndexError: list index out of range please help!
Hey love your tutorials and projects could you help me with potpin connections like provide a schematic
Bro.... Excelente video.... urge que lo pases a Español para toda la comunidad de Latino América
I recommend you to make bare metal programming videos on pi micro, means programming in c/c++ without any HAL or libraries direct register manipulating
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?
Can’t wait for the C++ video
Thank you so much for this video
Fire proof too! :)
Great video mate 👍
THANK YOU SO MUCH, GREAT GREAT VIDEO, FROM EL SALVADOR
Why do you have windows on Mac?
@jackwilliams2010
3 жыл бұрын
Best of both worlds. Excellent hardware, specifically the display. Biggest variety of software to choose from especially if you're a power user. Most microcontroller and single board computer manufacturers only support Windows.
Thank you very much for great video... I have a request... Please use python only with this board for future projects... It would be easier for us compare to C++.
Can you the sd card read and write fucntion? I can't do it if I follow other instruction. Please
Hellow, I was wondering if you will be willing to help? I have a pico that literally and no matter what I do "Do Not Get recognized by my raspberry pi" I have read all the micropython information changed the ports and follow all direction but still I can not make this microcontroller to be recognized or get any kind of interaction between computer and microcontroller....
Very detail sharing, like it so much (y)
Thats great I loved it But can you Please make a short video on SPI communication and and UART (in micropython) cuz I'm having trouble with them
Nice easy to follow video, although I think I've missed something as I can't get the on board LED to light on my R Pi Pico W, despite checking all the steps on this and other resources. Any idead would be most helpful (no doubt its something simple I've missed off).
@joonsengloo
Жыл бұрын
Maybe you mixed up the direction of the LED that you plugged in, just switch the direction
How about pico as a flight controller alongside nrf24l01 ?
I keep getting "Device is busy or does not respond" in Thonny despite doing everything as you did. I drag-dropped newest micropython, connected while pressing boot, but no change :(
un duro man. severa maquinita. gracias por su enseñansa