Это видео недоступно.
Сожалеем об этом.
$4 Raspberry Pi Pico - Simple Projects
HTML-код
- Опубликовано: 17 авг 2024
- A few simple projects with the new Raspberry Pi Pico and a quick comparison with Arduino
My gear:
Camera: amzn.to/3VdbfGH
Lens: amzn.to/44nY2z0
Better lens: amzn.to/424iuCX
Tripod: amzn.to/3Nh2Cca
3D printer: bit.ly/43SS7S5
Label printer: amzn.to/3oW55yn
Headphones: amzn.to/3LDTXz6
Speakers: amzn.to/3nl34eJ
Oscilloscope: amzn.to/3HmGMjN
Lab bench power supply: amzn.to/3HpotdD
Soldering station: amzn.to/3Vd39xH
Instagram: nikodembartnik
#pipico #raspberrypi #electronics
Here you can find my python code:
Blink:
from machine import Pin
import utime
led = Pin(25, Pin.OUT)
while True:
led.value(1)
utime.sleep(1)
led.value(0)
utime.sleep(1)
Knight rider:
from machine import Pin
import utime
pins=[]
for x in range(0, 9):
pins.append(Pin(x, Pin.OUT))
while True:
for on_led in range(0, 9):
for x in range(0, 9):
pins[x].value(0)
pins[on_led].value(1)
utime.sleep(0.1)
for on_led in range(0, 9):
for x in range(0, 9):
pins[x].value(0)
pins[8-on_led].value(1)
utime.sleep(0.1)
Stepper motor:
from machine import Pin
import utime
dir = Pin(0, Pin.OUT)
step = Pin(1, Pin.OUT)
dir.value(1)
while True:
step.value(1)
step.value(0)
utime.sleep_us(200)
Temperature sensor:
import machine
import utime
temp_sensor = machine.ADC(4)
conversion_factor = 3.3/(65535)
while True:
temp = temp_sensor.read_u16() * conversion_factor
print(27 - (temp - 0.706)/0.001721)
utime.sleep(2)
thanks for posting the code! I appreciate this video! you got my sub!
The oscillating red LEDs are typically referred to as a "Larson Scanner," named after the guy who produced "Knight Rider" and other TV series where he commonly deployed the visual effect.
1:34 Yeah I get the same thing when I solder. I use no clean flux but sometimes I use alcohol to clean the flux and it leaves sticky residue. If I don't clean it then it doesn't leave any residue.
Great video, you've inspired me to pick one up after being a stubborn arduino user for years.
Any chance you can share your wiring for the silent stepper motor driver? I've struggled to find proper pinout wiring and setup for these drivers, and so i would greatly appreciate it, thank you kindly!
$4 for the Pico, but $2 for the Arduino Nano (The one that requires an external programmer).
Just too many variables to to go through, as in the 3.3v Arduino id 8MHz compared to a 5v Arduino of the same board type runs at 16MHz Plus you can override the internal clock of the of the Arduino and put in any speed clock you want (within reason).
Plus you are comparing a Dual Core Pico with a Single Core Arduino, that is like comparing an i3 to a Pentium 4, even at the same speed, the i3 will always win.
A microcontroller is best for programming its I/O and have it do things like you have done here. Years ago I built a tank tread vehicle using a Arduino Micro. It moved forward and back, turns, flashed lights and judged distances to obstacles (walls) and avoided them. A bit more programming and it could follow a line.
The Raspberry Pi Pico is good, But I think it distracts from the Raspberry Pi itself.
Put up more videos like this!
Great video and very interesting this micro-controller...
Congratulations on yours +70K!!!
Thanks a lot!
Really great and well structured video, nice and clean desk and organised pegboard from Ikea. Have a great time and enjoy your future career after the school is finished. I am very much impressed!!!
I would love to see your code for the squarewave for both the Arduino and the Pico. (It does not seem to be in the first comment) I expect that you did not use the PIO capability of the Pico which I am sure would have produced a much higher rate squarewave
Hi! greetings from argentina, your video inspired me to take a pi pico that i had laying arround and trying to make something usefull wit it.
Thanks!
It is slow because python is an interpreted language whole Arduino uses a compiled language. basically think of it this way every time the pico runs the code it looks at the code and translates it while on Arduino it's already compiled and put in a way computers can easily read.
Are you an idiot? It is a chip... it does not run interpretters))) whether you use python, c or asm to write code for rpi it is compiled and then linked into actual 1s and 0s...
Congrats on 70K+
Thank you so much 😀
Nice shiny solder tip.
Try a water soluble flux. Makes cleanup really easy.
Very interesting video! Thank you.
plzzz make more video on pico
i loved this vid
It's very cheap but not available here in the local market yet. But excited to work on it.
you are very smart and a good teacher. you helped me learn alot thanks
I'm happy about every video you make!
Have you worked on Raspberry Pi 4?
I'm facing some issues as I installed Ubuntu on it & trying to work on face recognition system using python 3.6.
Go with raspberry pi os
ok, I will try that.
Knight rider led program. Named for the 80’s tv show of the same name cause the car, KITT, had red LED’s in the grill that did the same on-off motion.
The oscillating red LEDs are typically referred to as a "Larson Scanner," named after the guy who produced "Knight Rider" and other TV series where he commonly deployed the visual effect.
Well done!
Really helpful Thank you So much 🔥
Glad it helped!
Thanks For Sharing Raspberry Pi Pico Board Definition and Python Coding 🖥️
🙌❤️ //Love this Pico Board ✨
I'm so excited for your next raspberry pi pico project video . . . . .
//So excited++ 🙌
Please could you show the pin out and resiseors ete
bit new to this
Nice
Could you please do a more in-depth video on how to use the Pi Pico to control Nema Stepper Motors? :) Thanks!
Its a Larson scanner
Super filmik, poznaje ze jesteś z Polski, więc napiszę tak😅.
Napewno coś mnie stąd zainspiruje to pierwszych projektów
Pico won in slow motion
Thanks for the video. Looked at the docs and did not see SPI or I2C support? Its slower than the ESP32 which can be had for the same price. What did I miss?
Of course it has support for I2C and SPI, UART and so on
@@nikodembartnik LOL yeah missed that. But still why choose this one ?
@@danharold3087 originally meant for young beginners in school, if programmed in C will be much faster than arduino, 16mHz versus 125 mHz for the pico, also has 4 pio ( which work apart from the main cores )
Yes the pio are the main thing apart from the speed as the pio’s can bit-bang while the processor does something else
Cool
I wonder if this is fast enough to read an old ccd
masz bardzo dobry angielski, dopiero po zmywaczu do pcb się zorientowałem
Super w końcu są napisy i słabo znając angielski już się nie domyślać tylko po polsku obejrzeć :D
What's the music at 3:30? 😥
good man..
Polska gurom, poznalem po tym ze napis "zmywacz"
Comparing Python to C++, yeah that's fair...
Next will be BBC microbit)
But arduino nano is cheaper than pico
Actually no, not true.
I don't really understand why everyone is so hyped about it because an Esp32 is as far as I know more powerful for almost the same price and has bluetooth and wifi. Can somebody tell me the Reason of the Hype?
Good mix of cheap, fast, new company into microcontrollers and 4 programmable pio’s allowing it to bit bang to pretend it has more signal channels. This can occur separately to the 2 cortex cores so it can be fast for complex tasks. But mainly it is bc RPi has stepped into microcontrollers with custom made silicone
@@housane i understand the reason, that it is their first chip. But it is only half as fast as the esp32(also 2 cores) and lacks Wifi and can be only 4$.
I thought could be interesting if you design your custom PCB and ask the manufacturer to solder the RP2040 chip alone which is very cheap 1$ . the same can probably be done though with ESP32 which I believe would cost around 2$.
Bajo Jajo Bajo Jajo
man so much to do with something like unbelibabley cheap
mmmm zmywacz PCB
alkocholowy
Alcohol PCB Cleaner
LOOOOOOOL
Arduino is not a microcontroller
Of course its the board but when people say Arduino we all think of an Atmega328p, its the use of common sense.
It's not open source and open hardware. Better Arduino if you want to sell yours product and device in the future. Raspberry microcontroller it's only for learning uses. 🙂
what? :D
@@Mcs1v You will not find a microcontroller chip for sale. And this is very important when you want to sell your device and put there a microcontroller from raspberry pico.For more information Google that In wiki :"open source ","open hardware " and "arduino microcontroller".And you will be understand about what I speak.
@@logcom482 Absolutely wrong. First of all, theres no arduino microcontroller. The arduino is a platform and an IDE (ecosystem) with various microcontroller support (atmel/stm/etc and RP2040 too). The raspberry pico is a board supplied with RP2040 microcontroller (and the schematic is available for the board), and last, you can buy the RP2040 alone, without the board
@@Mcs1v i didn't find a chip from the Pico board for sale.Only with the board.
@@logcom482 Some people have samples of the chips so they can test their boards they are going make with the RP2040. And raspberry will be selling the chips soon.
you absolutely have no idea what you are doing are? 6:30
Why?