Это видео недоступно.
Сожалеем об этом.
What is a microcontroller? ft. Raspberry Pi Pico
HTML-код
- Опубликовано: 19 янв 2021
- We've released our own microcontroller...but what exactly IS a microcontroller?
Subscribe to our channel: rptl.io/youtube
Looking for kid-friendly projects, educator-led seminars, and information about our non-profit work? Check out the Raspberry Pi Foundation RUclips channel: rptl.io/rpfyt
BUY A RASPBERRY PI
--------------
Raspberry Pi Pico: rptl.io/pico
Raspberry Pi 4: rptl.io/raspber...
Raspberry Pi 400: rptl.io/400
All Raspberry Pi products: rptl.io/products
Raspberry Pi Store, Cambridge: rptl.io/cambridge
READ OUR BOOKS & MAGAZINES
--------------
The MagPi magazine: rptl.io/themagpi
HackSpace magazine: rptl.io/hackspace
Wireframe magazine: rptl.io/wireframe
Custom PC: rptl.io/custompc
Raspberry Pi Press online store: rptl.io/raspber...
GET HELP WITH YOUR RASPBERRY PI
--------------
Getting started with your Raspberry Pi: rptl.io/getting...
Raspberry Pi Help Guides: rptl.io/help
Raspberry Pi Forums: rptl.io/forums
Technical documentation: rptl.io/techdocs
FOLLOW US
--------------
Twitter: rptl.io/twitter
Instagram: rptl.io/instagram
Facebook: rptl.io/facebook
Raspberry Pi blog: rptl.io/blog
SUPPORT RASPBERRY PI FOUNDATION
--------------
Free coding projects: rptl.io/rpfproj...
Digital Making at Home: rptl.io/dmah
Free online courses: rptl.io/rpfcourses
Raspberry Pi Foundation: rptl.io/rpf
Donate: rptl.io/donate
#RaspberryPi
I wish it had type-c cable variant, other than that perfect
or the usb mini. the micro its very problematic. it breaks easily or become loose. the mini its rough
It seems Adafruit is making one that is smaller and has type c
Adafruit Feather RP 2040 has usb-c 🙂
Usbc will not be profitable at 4 dollars. Also pico only supports usb1.1 which means extra pins increase cost and manufacture failure rates
@@DD-zh3jj That's a good point
What a great explanation. No-nonsense and to the point, much appreciated!
Love the price, above all I really love the amount of effort that is being put into documentation and educational material, really disappointing it isn't fully open source silicon using RISC-V cores (hopefully that comes as the foundation gets better at this kind of thing). In the end I think this is going to bring many more people to the world of microcontrollers.
Wow I didn't even understand that but I think it means its good
Does this chip have a bootloader or something? How to import if any
So in theory, could I use this as a way to add more GPIO pins to my current raspberry pi?
yes, as long as you dont need realtime output from those pins into your PC (and even that should be achievable somehow...)
Providing you have a program talking to the Pico to tell it what GPIO pin action it should take, yes.
Yes if you devise a way to communicate with the Pico from the Pi. But it is much better to use IO expander chips that are made for this purpose.
Yup! you'd be using this as a multiplexer!
It's supposed to be standalone.
This is going to save so much money for makers who have been using pi zeros (a computer with half a gig of RAM!) for tiny projects that are only using a couple of GPIO pins. I like it! What kind of support does it have for small displays from the GPIO pins I wonder... I'm sensing that there will be some retro gaming projects done even off of the Pico.
It is fast enough to send video. So OLED or even a VGA monitor.
why not esp8266 or esp32? Very cheap and they got wifi too.
@@sledgex9 they are actually not that cheap. But you could use blue pill. What is good with the esp:s is that they got Wifi.
If there was a BlueTooth radio in the RPi pico that would have been really nice though, but would been more expensive. Guess it will come within one year though. :-)
@Richard Harris, yes, it is fast enough for video for VGA standard resolution.
No WiFi
Somebody is gonna make this run Doom. I don't know how, but they will.
Try me
Wow
Either that or bad apple
They did
Could the pin numbers also be on the front of the board? They're kind of hard to see when you've soldered the board or have stuck it into a breadboard.
Pin 1, 2 and 39 are on the top, if I remember right. But yes, all pin numbers on the top silk screen would have been nice.
My goto strategy is to solder the headers on up-side-down, then plug it into a bread board with the bottom facing up. you may have to also use an external button for resets, but this is generally not hard as most micro controller breakouts have a dedicated reset pin
As a work around, you can use the diagram
I'm assuming it's hard to put it on the front but thankfully they have a separate diagram online
I'm absolutely in love with the RPi Pico. I bought 25 or 30 of them for different projects. And thinking about how you upload the firmwares into it, I thought that it was a wrong way of doing that; but now I realize that this is the best, avoiding the users to buy an expensive hardware programmer.
I'm totally expecting the new generation of RPI Pico (version 2, maybe?) with more SRAM, 4 cores and more I/O processors (and more pins?? It could be very competitive in FPGA-related applications)... Thanks RPi Foundation!!!!!!
Does this chip have a bootloader or something? How to import if any
This looks so cool, I can't wait to get one of these
this would be a great tool to donate to highschools and trade schools.
Inferior to TTGO 32/VGA
Trade schools can pay for them. They're rolling in cash and pico is not expensive.
Hmm, I wonder if RP2040 is Raspberry Pi's way of dipping their toes into silicon design... maybe a full-blown RPi with their own CPU (not Broadcom) in the works?
hmm interesting that would be amazing to see
It would be great, man!! I'm waiting for RP4040 or RP2080 in the future too!!
They could be doing their way to create/design silicon chips as ARM did i the past...
Im in love with pico
I liked this explanation. It's quite clear and useful.
Should have called it Raspberry PiCO
Well done, raspberry pi never disappoints. I already own a RPI 4 and a RPI 3B, both products are amazing:)
264 KB Memory - that is more then the maximum amount the first IBM PC had. Typically it had less. Processor wise and regarding storage it is way superior.
it looks kinda like a ardunio nano which price is more than this
But it's not open source and open hardware ( Only for learning. Impossibl too but only microcontroller to put in the real massive product. Only for learning but not for prototyping.🙂
12bit ADC and 16bit PWM? If I get Pico, I'd make a guitar pedal.
12bit ADC @500 ksps for 4$ this is insanity :o
Is this information accurate?
16 Bit Pwm signal ???
@@yeet1337 Can you really buy it for $4 though?
$12 on Ali, but not sure how they manage to sell Raspberry branded ARMs..
Need to get one of these for my diy thermostat project, can't wait
Love you guys. :)
Can you buy RP2040 chips alone and plop them on your own board? Like to use it as a controller for game console flashcarts? Also what's the power needed to run it?
Currently not and probably will not be available to be bought individually
@@not3oF Yes you can buy the RP2040 alone.
Hope the availability is better than that of the RTX 3070 :)
Great explanation, what program do you use to make that cool animations?
I'm incredibly excited about this! Can't wait to pick one up! Congrats on the launch!
The PIO's are the best thing in this microcontroller.
Great presentation 👍
Will there be a version of this board but with Bluetooth,wifi and presoldered
At that point your just better off getting an esp232. The reason this thing is exciting is becuase for its bang for my buck. I know that adding those featueres will increase picos price and then its not as attractive:(
Arduino is releasing a version using this CPU with Wifi and Bluetooth.
That would be the Arduino Nano RP2040 Connect
I think they have what youre asking for already.
this bouta be my 3rd RPi i already got a RPi 4 and 3b. I want five of these
Would it makes sense to use a RP-Pico to make a startup/safe shutdown switch for a mobile raspberry pi 4 project? The pico uses such little power that you could have the pico monitor a switch for powering on the Pi4 and for monitoring the battery level? So the pico would always be running and could cut the power or start the power to the Pi4 and possibly also monitor battery level of the system? Does that make sense?
Yes, and it's more or less ideal for such a task. Even lower power consumption than most of it's elder siblings.
This is revolutionarily great. Love it!
This will be big.
first microcontroller I see that clearly runs and OS underneath. The "mass storage" is just simulated right? and python interpreted
No OS, the bootrom runs a bootloader which runs bare metal ARM binaries like micropython. No indirection (unlike ESP32's FreeRTOS layer) needed. No, python is not interpreted unless you're using the REPL over the serial port to type out individual lines of code and run them. Otherwise, the micropython bytecode compiler is invoked; and the runtime executes the bytecode after caching it. Code is still stored in an uncompiled plain text form before bytecode conversion, or can be converted into a .mpy bytecode for deployment if you don't wish to distribute the plaintext source. And yes, USB Mass Storage's FAT Filesystem is simulated by the 2nd stage bootloader held in the 2MB flash chip; completely synthetic and never needs to be fscked/chkdsk'd, and will always show up marked as "clean", ready for the host machine's OS to mount.
Can you use it to make custom macro keyboards?
Awesome video!
Why micro usb and not usb type c?
How you edit these type of videos.
i have a speedo meter works on encoder. encoder purse rate 0- 500 pulses per second on both channel A & B .my meter has 5% errror i wanted to feed this to micro controller and make 5% more pulses out put on both channel to compensate the error. (for examble if frequency 100 hz i need 105 hz output) could you please guide me
I'd like to see C and Processing options. Also, wouldn't this duplicates Adafruit feather board?
You can use C already
There are several different microcontrollers, such as the Arduino. That's a whole family of different boards, with variations in inputs and outputs. So is the Adafruit feather system of boards and add-ons. Not really duplicates, but people might not want the hassle of crossing over to a different family.
Once thing the Pico has which is new in the Pi family is the ADC inputs. Bit of a superficial read so far, but it looks as if a Pico could convert an old-style analogue joystick to USB.
@@raspberrypi I now have read the documentation on the blog post. It's certainly very extensive. Obviously, there's a lot of work already done on C programming side. Why not even a mention? It feels like you are promoting python at the expense of everything else.
Maybe this dates me, but I always think embedded computer programming involves cycles and bytes counting, and that means Assembly language, or C. None of these higher level languages such as C++ or Python.
I think this board is excellent for learning C and Assembly, and I hope that there would be resources dedicated toward that endeavor beyond a simple introduction. Otherwise, it'd feel like a wasted opportunity.
But then again, maybe it's just me. When I learned FPGA programming, I wanted to know how to program specific individual gates, but found no information on the subject. Obviously, nobody else wants to learn that, or even think that's actually worthwhile.
@@simpletongeek There's a place for assembly and cycle counting in the Raspberry Pi microcontroller (RP2040); primarily in the PIO state machines, which can run at configurable rates. They're not CPUs, but allow you to do real time logic independently, like video or sound output. Combined with the multiple memory banks and bus crossbar, you can design your own choice of dedicated hardware. It's quite neat IMHO. Most FPGAs don't have a lot of individual gates, by the way, but use LUTs and muxes. Actel (now Microsemi) sea of gates models are the exception. Manufacturers seem opposed to the idea of people knowing everything about their FPGAs, but projects like Icestorm support a few models. Xilinx Lava was an interesting design language with the ability to plan not just logic but its placement.
@@simpletongeek dude, microPython is written in C.
Is it possible to power from LiPo and what is the consumption? SD card support? Or Flash to store collected data?
The official Raspberry Pi board will run off anything from 1.8-5.5V but doesn't have power management, so you can use LiPo, but you'll need to charge with a different device.
But Adafruit have announced an RP2040 version of their Featherboard, and that has battery management and charging onboard.
Full details on the RPi Foundation's announcement:
www.raspberrypi.org/blog/raspberry-pi-silicon-pico-now-on-sale/
Since Pi Pico does not have wifi or ethernet, can it communicate with Raspberry Pi 4? over UART may be? Its like Pi 4 being a central hub & a dozen Picos gathering data & communicating Pi 4.
Certainly. USB by default, but heaps of other connections can be made, including multi-drop UART.
With how much lines of python code can it be programmed ?
264kb. Assume one screen is one kilobyte.
one line is enough to do hello world with MicroPython. It depends upon your task how many lines you need to express your ideas
@@bob-ny6kn 264kb is the ram. the storage is 16mb if i’m correct.
Hahaaa! I ordered 10 from sparkfun! this morning. couldn't be more happier!
Ingenious!! Now all we need is a RPi4 in a zero form factor.
Also , I'm eagerly looking forward to the sale of the silicon chip alone.
Can't wait to start using C language with this. so many capabilities! i can't wait!
when you write program, does it save forever on the pico or the pc storage
264KB of RAM is such an odd size... You can address a maximum 256KB of RAM with 18 address bits, so for the addition of only 8KB more RAM, you have to add a 19th bit to your CPU's addressing system (and the bus, and all the rest of the subsystems).
Unless you plan to release one that has 512KB of RAM at some point, in which case it would make sense...
Anyway -- neat device you have here! And for only $4?! Makes me want to buy one just so I can figure out things to do with it. :-)
What is a principal compenant of a microcontrôleur
Bought one about an hour ago and I can't wait :)
Can i run it with arduino IDE?
Or do i have to use Mpython
Ok i need buy dis NOW
Time to make a homemade keyboard
Arduino IDE support?
Yes, quite soon. Arduino is busy designing their own RP2040 based product, and it will be supported with their own C++ based IDE
I think it is going to be supported by the arduino ide soon
Awesome! This is so cool!
Awesome! Cool comment.
I'm new to raspberry pi. Does the board come with preload bootloader? I don't want go through the process of burning bootloader to the board. Can I write the code in Visual Code and upload to the board?
Board comes with a 2nd stage bootloader on the 2MB SPI NOR flash for consuming .UF2 files delivered over USB Mass Storage. You buy bare RP2040 chips and you either fork the foundation's bootloader, or write your own. Write your code in Visual Code, click compile, and it should spit out a .UF2 file instead of a .hex, .bin, or .raw. No need to use a serial programming application like esptool.py or ponyprog, ETC. Just drag the .uf2 file over. Soon as the file handle is closed, it'll write the image to the SPI NOR flash and restart itself immediately into your code. Can also script delivery of a .UF2 whenever an appropriate device appears (as you must hold bootsel to enter programming mode first.)
Boom!!! A new piece of art❤
what's next? Arduino Pi? lmao
Waiting for long time
Why micro USB
Ok but its not available in my country and it can't be shiped to Bahrain
Same issue 😔
I'm going to buy a ton of these.
Love raspberry because it cheap and i afford it
Didn't think I'd be first! Great video + explanation!
Rust Lang Support would be amazing.
Cant wait for the 6 core raspberry pi 5 + hw acce
controller that is smol.
So Arduino substitute with more options and memory?
And a lot cheaper as well.
considering supply shortage of stm32...
MicroUSB is the only way to power this board?
Or give it 3.3v on the power pin directly. No inbuilt regulator though, need to supply regulated 3.3v externally
if it would be arduino ide compatible we would not need any guides .and all sketch would work
why micro-usb and not usb-c ?
usb C doesn't support USB 1.0 protocol, which is where the PICO tops out at. microcontrollers can rarely pull of USB 2.0, much less 3.0 and beyond
Is it able to multitasking at same time?
If you code it that way then yes, the same way that all single core chips can switch back and forth between which program, or part of the same program, that they are running.
it's a dual core m0, so an extra thread should be possible
Yes, there is being worked on an RTOS
To use the GPIO would i need to solder the pins to the board, or is there another way to do this? I have shaky hands so i think id ruin the board.
Why do I need to drag and drop the UF2 file onto the controller if I got it from an html page I also accessed from the same Controller? Doesnt that mean it is already there?
Can it run node instead of python?
And is it easy to do?
You could make a similar implementation, like how MicroPython and CircuitPython relate to Python. Espruino could be a good candidate to port. It's not easy until someone's done it.
What is TTGO?
Will it programable with the Arduino API?
Is it usable as a HID ?
Yes to HID.
@@davidste60 And soon yes to Arduino IDE
Is there a relatively straightforward way to add a second USB port to it, perhaps even just dedicating one of the cores to running the second port entirely in software? I'm looking to make a little macroing keyboard that converts keypresses or controller button presses for custom shortcut keys and was going to use a ZeroW and connect it to the PC with Bluetooth, but this looks like it would be more efficient if I ran it as a pass-through USB dongle, powering itself and the keyboard or control pad off the USB bus power.
I doubt it, but I think you can just skip the Pi Zero enterly and use just a PICO if your making a macro keyboard.
Unless you mean you want it to be a macro keyboard for a pi zero which will also have another usb device. In that case, you could get a MCP23017, which lets you give anything with an I2C port 16 extra GPIOs, which should be plenty for a macro keyboard. That's 64 buttons if you use active polling.
Or a small usb hub like maybe this one designed specifically for the RPi0 www.adafruit.com/product/3298
although strictly speaking you could just wire some buttons to your pi zero's GPIOs and write a script to check if the buttons are pressed then emit a key combo or whatever if so
Still gonna try to install retro pi on it
Enjoy playing Pitfall on your VCS emulator. ;-)
It's a microcontroller... You can't do that.
You had me until Micropython... Get Deno, Dart or Typescript to support this and we'll have a revolution
Why would you ever use a high level “programming language”?
@@supahx1421 More libraries available. More community support. Less details to juggle so easier to maintain. Less hardware specific code so can run in more places, including browsers, watches, TV's, cars and iPhones without permission from Apple.
Need it
can i code in that... because i am a beginner...
yes, using micropython
So, would I be able to use this as an Ipac2 type keyboard encoder?
Why not usb C ???
Good news, however I miss the rp zero.
It hasn't gone anywhere...
$3 microcontroller has more features than a $25 arduino uno
Question, i plan on building an "autonomous" rc car, i basically want to remove the rc part, and make it that it drive itself to the setted designation, with the vehicle correcting its path via sensor input
Microcontroller or small pc like pi 3/4?
IMO, both. Use the microcontroller to make a permanent interface to the servos. Use the SBC for vision/sensors. Connect the two via USB. Later, when you outgrow your SBC, you can get a faster one without having to rewrite all of your motion-control code. Use something like the pico as a GPIO to USB bridge. This is also quite handy when dealing with DC motors and the like, which are often noisy and cause power brownouts; the MCU can tolerate such things much better than an SBC's boot time of up-to-tens-of-seconds, and fscks of up-to-tens-of-hours based on storage size. It also adds a margin of safety; if your DC motor gets a drop of water inside and fries something, it'll be the cheap replacable pico, not the $15-to-$350 SBC. USB Webcam & a Pi4's a good starting choice, with eyes on a Jetson Nano B01 [1] to replace it once you get more confident with machine vision libraries. Look into ROS.org [2], the robot operating system, and it's companion ROS nodes for microcontroller motor drivers.
[1]: www.arducam.com/nvidia-jetson-nano-b01-update-dual-camera/#5-highlight-of-b01-update-the-2nd-camera-connector-exposed
[2]: github.com/micro-ROS/micro_ros_raspberrypi_pico_sdk
Any updates on the 'autonomous' rc car???
Just bought 5 from Pishop.us - they are in stock.
Can it have TypeScript?
Nah only C and python
I guess you can transpile the Typescript to Python. Other than that, not really
Teensy 4.0
Is it the teensy $4?
So theres no point in buying arduino?
Yup
This is what I've waiting for...
I love screwing around with microcontrollers.
Awesome....
What's a Brian?
Tl;DR: THIS IS NOT A COMPUTER. It's a Pi Zero that consumes 20x less power and comes with storage and a temp sensor. It can run on double A batteries for a year with good batteries and a little optimization, while supporting cameras and RF transmission. #RIPArduino
It's not a Pi Zero in any way except maybe the form factor lol
It's not a Pi Zero, no way no how. It doesn't have floating point arithmetic, for a start.
But yes, #RIPArduino
@@yeet1337 kinda what I meant... It's made by the foundation, has the same-ish usb port, similar GPIO and feature rich silicon. On the flip side, this microcontroller is powerful enough to pass as a computer in the 80s
I posted that because I originally didn't see the point of this when a Zero costs on extra dollar and has 40 times more RAM. It's about milliwatts more than anything.
USB-C? Please?
Why is this cheaper than a real raspberry pie?
💘 😘 😘 😘 😘 😘 😘 😘 😘... Seriously waiting this to happen... Lol rip arduino 😜... But I also love arduino 💕
Well considering that arduino nano cost half of pico's price and cheapest Attiny(can be programmed using arudino IDE and arduino as ISP ) cost quarter of pico's price, i bet that arduino will be living for a while, i mean yes pico have great parameters, bu there are quite a bit of applications where this is overkill and arduino or even Attiny would do the job for smaller price.
But of course i wish long life for both brands.
Honestly, I don't like it. Being pretty much advanced with SBCs and usually coding microcontrollers in Assembly rather than, uh, Python, I'd deem this board cool if it was half of its size. It seems half of the PCB is empty anyway, and the only point of making it so big is to accommodate all that GPIO nobody would never use to full extent. How about an option to snap off a useless half of the board?
Stick WiFi on board, and the job's a good 'un
Brian Lough?
can the micropython be programmed to run a car engine EFI system?
Probably. Do you want to do that? Probably not. :-D
#RIPArduino