No video

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

  • @ELECTRONOOBS
    @ELECTRONOOBS3 жыл бұрын

    Arduino Course (Spanish): bit.ly/3ldW6kO Follow me on FACEBOOK for more: facebook.com/Electronoobs Help me on Patreon: www.patreon.com/ELECTRONOOBS

  • @carlosmelomaniaco3455

    @carlosmelomaniaco3455

    3 жыл бұрын

    In Spanish please

  • @MadhuKumar-hi2qs

    @MadhuKumar-hi2qs

    3 жыл бұрын

    Please make a video on pico and Nrf24L01

  • @FUKTxProductions

    @FUKTxProductions

    3 жыл бұрын

    @@carlosmelomaniaco3455 1

  • @saurabhgawli2167
    @saurabhgawli21673 жыл бұрын

    I Luv U man... I always pray for U that u get more n more successful... Respect for you man..

  • @amirb715
    @amirb7153 жыл бұрын

    this was by far THE best tutorial on Pi pico on youtube

  • @deviljelly3
    @deviljelly33 жыл бұрын

    I love that you and GreatScott fight every Sunday for who releases first.... you beat him this time :)

  • @Haakkon

    @Haakkon

    3 жыл бұрын

    He may have beat him this time, but in the end... we're the winners.

  • @JD96893
    @JD968933 жыл бұрын

    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.

  • @MartinBgelund
    @MartinBgelund3 жыл бұрын

    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.

  • @markadyash
    @markadyash3 жыл бұрын

    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

  • @dylanpendlebury23
    @dylanpendlebury233 жыл бұрын

    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!?!

  • @msmith2961
    @msmith29613 жыл бұрын

    This is an excellent starting point for getting into Pico. Nice work!

  • @phreak074
    @phreak0743 жыл бұрын

    When the lighter went to the micro pi I was like 😵😵😵 Awesome vid, learned a bunch!

  • @piiumlkj6497
    @piiumlkj64973 жыл бұрын

    This was great, I suggest that when you finish reviewing this board to compare it with other powerful boards like the teensy 3.6

  • @FushigiMigi
    @FushigiMigi2 жыл бұрын

    I cannot believe the quality of this video. Thank you.

  • @gavinthecrafter
    @gavinthecrafter2 жыл бұрын

    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!

  • @bowesterlund3719
    @bowesterlund37193 жыл бұрын

    This is a good alternativ to the much more expensive PyBoard! Thanks for sharing!

  • @iandwyer6658
    @iandwyer6658 Жыл бұрын

    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

  • @deepakjoshi6242
    @deepakjoshi62423 жыл бұрын

    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. 👏😃

  • @davidgill2592
    @davidgill25929 ай бұрын

    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! 😃

  • @Dayhmian
    @Dayhmian3 жыл бұрын

    Nice vid, Looking forward for the c++ part. Will you be covering a speedtest between python and c++ on the pico?

  • @kirilivanov7677

    @kirilivanov7677

    2 жыл бұрын

    4

  • @elektron2kim666
    @elektron2kim666 Жыл бұрын

    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.

  • @ItsScientist
    @ItsScientist3 жыл бұрын

    I didn't know Raspberry Pi pico would be easier than Arduino ....thanx buddy❤️

  • @MahBor
    @MahBor2 жыл бұрын

    I can't believe you hit it with fire haha Just got my own pico. Thanks for the tutorial!

  • @ptipupu

    @ptipupu

    Жыл бұрын

    c'est vrai qu'il m'a tué sur ce coup là 🔥

  • @hmtech4807
    @hmtech48073 жыл бұрын

    I have been following your channel since a while you're doing great stuff . Keep going best of luck

  • @keithfetterly4111
    @keithfetterly41113 жыл бұрын

    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.

  • @neilparker2310
    @neilparker23102 жыл бұрын

    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.

  • @zajlord2930
    @zajlord29303 жыл бұрын

    fricking psycho just lit it on fire to see the sensor moving xd but really nice vid, subscribe

  • @HakAtIt
    @HakAtIt3 жыл бұрын

    That was a really great video... And I've been interested in the pico! Thank you for this!

  • @bertrandmajorik6589
    @bertrandmajorik65893 жыл бұрын

    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!!!!!

  • @maguyver
    @maguyver3 жыл бұрын

    Fantastic video. Now I have have a Raspberry Pi Pico. Your videos are very informative and easy to understand.

  • @cuarentenaviral4756
    @cuarentenaviral47563 жыл бұрын

    Este es uno de los mejores videos, no conocía ese micro controlador de raspberry, haz más videos sobre el porfa :3

  • @paulmaydaynight9925
    @paulmaydaynight99253 жыл бұрын

    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

  • @Networksandwoodworks
    @Networksandwoodworks2 жыл бұрын

    Thank you for making this video!! I can't wait to get my pico and try these projects.

  • @del_v000
    @del_v0003 жыл бұрын

    Really, I was waiting for this. Pi pico is very good and cheap in India, only about 350rupess(about 4$).

  • @ImTheReal
    @ImTheReal3 жыл бұрын

    Pretty awesome! Just waiting for your great projects XD Tnx for sharing! 🙏💎

  • @Maulhawk
    @Maulhawk Жыл бұрын

    I get an error when I type Import machine.

  • @batica81
    @batica813 жыл бұрын

    Temperature sensor testing was great! :)

  • @tiffymac256
    @tiffymac2563 жыл бұрын

    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

    @cmjoubert

    4 ай бұрын

    One sensible comment at least

  • @thomaschanut7054
    @thomaschanut70543 жыл бұрын

    Thanks for help with new board ;) First MicroPython board for myself.

  • @dishendra.
    @dishendra.3 жыл бұрын

    Thanks for sharing the Thonny tutorial! It's a great tool.

  • @CenterpointConnect
    @CenterpointConnect3 жыл бұрын

    Congrats! 300,000 Subscribers!

  • @kaylor87
    @kaylor87 Жыл бұрын

    link to the SSD1306 library no longer works :(

  • @shanepython
    @shanepython2 жыл бұрын

    Excellent video! Great production values to boot!

  • @PeetHobby
    @PeetHobby10 ай бұрын

    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.

  • @durandile
    @durandile3 жыл бұрын

    Nice video! It's cool to make videos about new hardware to keep us updated

  • @MikeNugget
    @MikeNugget3 жыл бұрын

    3:25 Does it mean that I can connect up to 16 servos to Pi Pico?

  • @stompreaper
    @stompreaper3 жыл бұрын

    Great video. Awesome production quality!

  • @valeriolombardi9744
    @valeriolombardi97443 жыл бұрын

    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 !

  • @dennisdekoster1187
    @dennisdekoster11872 жыл бұрын

    Just bought one, thanks for the tutorial!

  • @briyanpaul4617
    @briyanpaul46173 жыл бұрын

    Loved the video was waiting for u to make this video 👍👍👍👏

  • @TooSlowTube
    @TooSlowTube Жыл бұрын

    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.

  • @JohnSamuelSam
    @JohnSamuelSam Жыл бұрын

    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?

  • @ajayjoshi_aj
    @ajayjoshi_aj3 жыл бұрын

    Will you make Drone with PICO in future ? I will be waiting for that video!

  • @rdflo6739
    @rdflo67393 жыл бұрын

    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!

  • @guywhoknows
    @guywhoknows3 жыл бұрын

    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?

  • @phillipneal8194
    @phillipneal81943 жыл бұрын

    how about an example of i2c between the Pico and an ESP32 ?

  • @backdemoletor4654
    @backdemoletor46543 жыл бұрын

    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

  • @emadorabi6492
    @emadorabi64922 жыл бұрын

    What does it mean if written ‘No module named machine’?

  • @1_HighDuke
    @1_HighDuke3 жыл бұрын

    Very informative getting-started video. Thanks!

  • @makkam7575
    @makkam75753 жыл бұрын

    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

    @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

  • @stevetobias4890
    @stevetobias48903 жыл бұрын

    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

    @simonmailhot4260

    3 жыл бұрын

    I wonder where you got that nice 4$price?

  • @stevetobias4890

    @stevetobias4890

    3 жыл бұрын

    @@simonmailhot4260 from Core Electronics Australia. Current price is now $5.75 plus $3 shipping

  • @TruthSeekerAll
    @TruthSeekerAll9 ай бұрын

    Amazing tutorial, thanks.

  • @arturgomboc8188
    @arturgomboc81882 ай бұрын

    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!

  • @diyrobotronics
    @diyrobotronics3 жыл бұрын

    Video quality was great ♥️

  • @Samuel-nu1ij
    @Samuel-nu1ij3 жыл бұрын

    Nice ! I played with the pico two weeks before this video lol

  • @marc1190
    @marc1190Ай бұрын

    Any thoughts on why ADC was reading 65535 and not 4095?

  • @Evgen-Evgen-Evgen
    @Evgen-Evgen-Evgen3 жыл бұрын

    Coool! Thanks from Russia)

  • @christiaang
    @christiaang3 жыл бұрын

    Thank you for this video, it is very helpful. Are you planning to make a second video explaining UART and SPI too?

  • @mohinderkaur6671
    @mohinderkaur6671 Жыл бұрын

    Nice Tutorial! Thanks! (dont burn your pi with a lighter! )

  • @ELECTRONOOBS

    @ELECTRONOOBS

    Жыл бұрын

    LOL

  • @wcg66
    @wcg662 жыл бұрын

    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 :)

  • @kevindondrea144
    @kevindondrea1443 жыл бұрын

    I always share on Twitter and Thumbs up your videos :)

  • @jdras3
    @jdras32 жыл бұрын

    Excellent Video!!!!

  • @Sam-tg4ii
    @Sam-tg4ii Жыл бұрын

    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

  • @sumukhas5418
    @sumukhas5418 Жыл бұрын

    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

    @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

    @sumukhas5418

    Жыл бұрын

    @@TooSlowTube Great, thanks

  • @TooSlowTube

    @TooSlowTube

    Жыл бұрын

    @@sumukhas5418 You're welcome.

  • @AvinashHirekerur
    @AvinashHirekerur2 жыл бұрын

    Nice and clear explanation. Thanks

  • @alheeley
    @alheeley3 жыл бұрын

    excellent - covered a lot of ground there!

  • @danbaker2619
    @danbaker26193 жыл бұрын

    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 =)

  • @merin_here_am_i
    @merin_here_am_i Жыл бұрын

    Can I do optimization in this board? Can you suggest any optimizers which take less memory?

  • @PaawanSharma
    @PaawanSharma3 жыл бұрын

    Very nice video. Kudos

  • @ConsultingjoeOnline
    @ConsultingjoeOnline3 жыл бұрын

    Been trying to get one. Great video Thanks

  • @catalinaga
    @catalinaga2 жыл бұрын

    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??

  • @MrDeclansmith
    @MrDeclansmith2 жыл бұрын

    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..

  • @GuyaneseRasTa
    @GuyaneseRasTa Жыл бұрын

    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!

  • @robobug4167
    @robobug41673 жыл бұрын

    Hey love your tutorials and projects could you help me with potpin connections like provide a schematic

  • @isaisanchez4891
    @isaisanchez48913 жыл бұрын

    Bro.... Excelente video.... urge que lo pases a Español para toda la comunidad de Latino América

  • @erdum
    @erdum3 жыл бұрын

    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

  • @kiransalan8179
    @kiransalan8179 Жыл бұрын

    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?

  • @alecgagnon826
    @alecgagnon8263 жыл бұрын

    Can’t wait for the C++ video

  • @abymohanan9403
    @abymohanan94033 жыл бұрын

    Thank you so much for this video

  • @Just_lift_anyone
    @Just_lift_anyone3 жыл бұрын

    Fire proof too! :)

  • @benmaynard3059
    @benmaynard30593 жыл бұрын

    Great video mate 👍

  • @tomasdale5306
    @tomasdale53063 жыл бұрын

    THANK YOU SO MUCH, GREAT GREAT VIDEO, FROM EL SALVADOR

  • @aybulatabdullin1789
    @aybulatabdullin17893 жыл бұрын

    Why do you have windows on Mac?

  • @jackwilliams2010

    @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.

  • @sameerk12982
    @sameerk129823 жыл бұрын

    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++.

  • @yxhankun
    @yxhankun2 жыл бұрын

    Can you the sd card read and write fucntion? I can't do it if I follow other instruction. Please

  • @anaclettobolognies3145
    @anaclettobolognies31452 жыл бұрын

    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....

  • @czhang225
    @czhang2252 жыл бұрын

    Very detail sharing, like it so much (y)

  • @baseldaoudrajha3835
    @baseldaoudrajha38353 жыл бұрын

    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

  • @Workshop-900
    @Workshop-900 Жыл бұрын

    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

    @joonsengloo

    Жыл бұрын

    Maybe you mixed up the direction of the LED that you plugged in, just switch the direction

  • @mydisk2859
    @mydisk28593 жыл бұрын

    How about pico as a flight controller alongside nrf24l01 ?

  • @idvarhurd
    @idvarhurd Жыл бұрын

    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 :(

  • @MrGuerrero36
    @MrGuerrero363 жыл бұрын

    un duro man. severa maquinita. gracias por su enseñansa