Это видео недоступно.
Сожалеем об этом.

$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

Комментарии • 75

  • @nikodembartnik
    @nikodembartnik  3 года назад +29

    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)

    • @nuggetteam7
      @nuggetteam7 2 года назад +1

      thanks for posting the code! I appreciate this video! you got my sub!

  • @iNowHateAtSigns
    @iNowHateAtSigns Год назад +1

    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.

  • @Albertotron
    @Albertotron 3 года назад +1

    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.

  • @ChrisLocke1969
    @ChrisLocke1969 3 года назад +4

    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!

  • @elfenmagix8173
    @elfenmagix8173 6 месяцев назад +1

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

  • @josepmayoral1998
    @josepmayoral1998 3 года назад +4

    Great video and very interesting this micro-controller...
    Congratulations on yours +70K!!!

  • @UseR-ne8fm
    @UseR-ne8fm Год назад

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

  • @MrEdwardhartmann
    @MrEdwardhartmann 3 года назад +3

    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

  • @guidoramacciotti3503
    @guidoramacciotti3503 Год назад

    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!

  • @shorb2289
    @shorb2289 3 года назад +5

    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.

    • @cokeforever
      @cokeforever Год назад

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

  • @VeerDaVlog
    @VeerDaVlog 3 года назад +2

    Congrats on 70K+

  • @johnacsyen
    @johnacsyen 3 года назад

    Nice shiny solder tip.

  • @blickberg8404
    @blickberg8404 3 года назад +1

    Try a water soluble flux. Makes cleanup really easy.

  • @nake89
    @nake89 Год назад

    Very interesting video! Thank you.

  • @maxfooly
    @maxfooly 3 года назад +2

    plzzz make more video on pico
    i loved this vid

  • @VeerDaVlog
    @VeerDaVlog 3 года назад

    It's very cheap but not available here in the local market yet. But excited to work on it.

  • @rodneyhage6833
    @rodneyhage6833 3 года назад +1

    you are very smart and a good teacher. you helped me learn alot thanks

  • @ernstgennial7064
    @ernstgennial7064 3 года назад

    I'm happy about every video you make!

  • @VeerDaVlog
    @VeerDaVlog 3 года назад +2

    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.

  • @millbean13
    @millbean13 Год назад

    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.

    • @iNowHateAtSigns
      @iNowHateAtSigns Год назад +1

      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.

  • @BenKickert
    @BenKickert 3 года назад

    Well done!

  • @ashok_ign5623
    @ashok_ign5623 3 года назад

    Really helpful Thank you So much 🔥

  • @ArduinoExperiment
    @ArduinoExperiment 3 года назад +1

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

  • @johnjakeman7391
    @johnjakeman7391 Год назад

    Please could you show the pin out and resiseors ete
    bit new to this

  • @electronic7979
    @electronic7979 3 года назад +1

    Nice

  • @unuzualvizual
    @unuzualvizual 3 года назад +1

    Could you please do a more in-depth video on how to use the Pi Pico to control Nema Stepper Motors? :) Thanks!

  • @AJB2K3
    @AJB2K3 3 года назад +2

    Its a Larson scanner

  • @pirolex7843
    @pirolex7843 Год назад

    Super filmik, poznaje ze jesteś z Polski, więc napiszę tak😅.
    Napewno coś mnie stąd zainspiruje to pierwszych projektów

  • @EvoWatches
    @EvoWatches Год назад +1

    Pico won in slow motion

  • @danharold3087
    @danharold3087 3 года назад

    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?

    • @nikodembartnik
      @nikodembartnik  3 года назад +1

      Of course it has support for I2C and SPI, UART and so on

    • @danharold3087
      @danharold3087 3 года назад

      @@nikodembartnik LOL yeah missed that. But still why choose this one ?

    • @jyvben1520
      @jyvben1520 3 года назад

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

    • @housane
      @housane 3 года назад

      Yes the pio are the main thing apart from the speed as the pio’s can bit-bang while the processor does something else

  • @VeerDaVlog
    @VeerDaVlog 3 года назад +1

    Cool

  • @Moonrakerd
    @Moonrakerd 3 года назад +1

    I wonder if this is fast enough to read an old ccd

  • @Gerberko
    @Gerberko Год назад

    masz bardzo dobry angielski, dopiero po zmywaczu do pcb się zorientowałem

  • @Zwariowny
    @Zwariowny 3 года назад

    Super w końcu są napisy i słabo znając angielski już się nie domyślać tylko po polsku obejrzeć :D

  • @doncorn8835
    @doncorn8835 3 года назад

    What's the music at 3:30? 😥

  • @anandusudhakar5300
    @anandusudhakar5300 3 года назад

    good man..

  • @JUMPINGDONUT_
    @JUMPINGDONUT_ 4 месяца назад

    Polska gurom, poznalem po tym ze napis "zmywacz"

  • @matthewrease2376
    @matthewrease2376 7 месяцев назад

    Comparing Python to C++, yeah that's fair...

  • @logcom482
    @logcom482 3 года назад

    Next will be BBC microbit)

  • @SciencewithRishit
    @SciencewithRishit 3 года назад +1

    But arduino nano is cheaper than pico

  • @j.b.594
    @j.b.594 3 года назад

    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?

    • @housane
      @housane 3 года назад +1

      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

    • @j.b.594
      @j.b.594 3 года назад

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

    • @Etienne85
      @Etienne85 2 года назад

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

  • @smeggmann99
    @smeggmann99 3 года назад

    Bajo Jajo Bajo Jajo

  • @AnAlivePerson_
    @AnAlivePerson_ 3 месяца назад

    man so much to do with something like unbelibabley cheap

  • @ginalski1
    @ginalski1 3 года назад

    mmmm zmywacz PCB
    alkocholowy
    Alcohol PCB Cleaner

  • @michabartnik2728
    @michabartnik2728 3 года назад

    LOOOOOOOL

  • @Mcs1v
    @Mcs1v 3 года назад

    Arduino is not a microcontroller

    • @cuentayoutube7615
      @cuentayoutube7615 3 года назад

      Of course its the board but when people say Arduino we all think of an Atmega328p, its the use of common sense.

  • @logcom482
    @logcom482 3 года назад

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

    • @Mcs1v
      @Mcs1v 3 года назад

      what? :D

    • @logcom482
      @logcom482 3 года назад

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

    • @Mcs1v
      @Mcs1v 3 года назад +1

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

    • @logcom482
      @logcom482 3 года назад

      @@Mcs1v i didn't find a chip from the Pico board for sale.Only with the board.

    • @josephchamness9915
      @josephchamness9915 3 года назад

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

  • @TnInventor
    @TnInventor 3 года назад +1

    you absolutely have no idea what you are doing are? 6:30