$4 Raspberry Pi Pico - Simple Projects

แชร์
ฝัง

ความคิดเห็น • 75

  • @nikodembartnik
    @nikodembartnik  4 ปีที่แล้ว +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 3 ปีที่แล้ว +1

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

  • @guidoramacciotti3503
    @guidoramacciotti3503 2 ปีที่แล้ว

    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!

  • @ChrisLocke1969
    @ChrisLocke1969 4 ปีที่แล้ว +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!

  • @UseR-ne8fm
    @UseR-ne8fm 2 ปีที่แล้ว

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

  • @Albertotron
    @Albertotron 4 ปีที่แล้ว +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.

  • @MrEdwardhartmann
    @MrEdwardhartmann 3 ปีที่แล้ว +4

    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

  • @josepmayoral1998
    @josepmayoral1998 4 ปีที่แล้ว +4

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

  • @johnacsyen
    @johnacsyen 3 ปีที่แล้ว

    Nice shiny solder tip.

  • @VeerDaVlog
    @VeerDaVlog 4 ปีที่แล้ว +2

    Congrats on 70K+

  • @blickberg8404
    @blickberg8404 3 ปีที่แล้ว +1

    Try a water soluble flux. Makes cleanup really easy.

  • @nake89
    @nake89 ปีที่แล้ว

    Very interesting video! Thank you.

  • @VeerDaVlog
    @VeerDaVlog 4 ปีที่แล้ว

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

  • @johnjakeman7391
    @johnjakeman7391 ปีที่แล้ว

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

  • @millbean13
    @millbean13 2 ปีที่แล้ว

    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.

  • @shorb2289
    @shorb2289 4 ปีที่แล้ว +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 2 ปีที่แล้ว

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

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

  • @elfenmagix8173
    @elfenmagix8173 11 หลายเดือนก่อน +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!

  • @VeerDaVlog
    @VeerDaVlog 4 ปีที่แล้ว +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.

    • @nikodembartnik
      @nikodembartnik  4 ปีที่แล้ว +1

      Go with raspberry pi os

    • @VeerDaVlog
      @VeerDaVlog 4 ปีที่แล้ว

      ok, I will try that.

  • @rodneyhage6833
    @rodneyhage6833 4 ปีที่แล้ว +1

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

  • @maxfooly
    @maxfooly 3 ปีที่แล้ว +2

    plzzz make more video on pico
    i loved this vid

  • @doncorn8835
    @doncorn8835 4 ปีที่แล้ว

    What's the music at 3:30? 😥

  • @danharold3087
    @danharold3087 4 ปีที่แล้ว

    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  4 ปีที่แล้ว +1

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

    • @danharold3087
      @danharold3087 4 ปีที่แล้ว

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

    • @jyvben1520
      @jyvben1520 4 ปีที่แล้ว

      @@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 4 ปีที่แล้ว

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

  • @ernstgennial7064
    @ernstgennial7064 4 ปีที่แล้ว

    I'm happy about every video you make!

  • @AJB2K3
    @AJB2K3 4 ปีที่แล้ว +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

  • @ashok_ign5623
    @ashok_ign5623 4 ปีที่แล้ว

    Really helpful Thank you So much 🔥

  • @BenKickert
    @BenKickert 4 ปีที่แล้ว

    Well done!

  • @unuzualvizual
    @unuzualvizual 4 ปีที่แล้ว +1

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

  • @electronic7979
    @electronic7979 4 ปีที่แล้ว +1

    Nice

  • @Gerberko
    @Gerberko ปีที่แล้ว

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

  • @ArduinoExperiment
    @ArduinoExperiment 4 ปีที่แล้ว +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++ 🙌

  • @Moonrakerd
    @Moonrakerd 4 ปีที่แล้ว +1

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

  • @Zwariowny
    @Zwariowny 4 ปีที่แล้ว

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

  • @VeerDaVlog
    @VeerDaVlog 4 ปีที่แล้ว +1

    Cool

  • @j.b.594
    @j.b.594 4 ปีที่แล้ว

    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 4 ปีที่แล้ว +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$.

  • @anandusudhakar5300
    @anandusudhakar5300 4 ปีที่แล้ว

    good man..

  • @SciencewithRishit
    @SciencewithRishit 4 ปีที่แล้ว +1

    But arduino nano is cheaper than pico

  • @JUMPINGDONUT_
    @JUMPINGDONUT_ 9 หลายเดือนก่อน

    Polska gurom, poznalem po tym ze napis "zmywacz"

  • @EvoWatches
    @EvoWatches ปีที่แล้ว +1

    Pico won in slow motion

  • @logcom482
    @logcom482 4 ปีที่แล้ว

    Next will be BBC microbit)

  • @matthewrease2376
    @matthewrease2376 ปีที่แล้ว

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

  • @AnAlivePerson_
    @AnAlivePerson_ 9 หลายเดือนก่อน

    man so much to do with something like unbelibabley cheap

  • @Mcs1v
    @Mcs1v 4 ปีที่แล้ว

    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 4 ปีที่แล้ว

    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 4 ปีที่แล้ว

      what? :D

    • @logcom482
      @logcom482 4 ปีที่แล้ว

      @@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 4 ปีที่แล้ว +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 4 ปีที่แล้ว

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

    • @joseph9915
      @joseph9915 4 ปีที่แล้ว

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

  • @smeggmann99
    @smeggmann99 4 ปีที่แล้ว

    Bajo Jajo Bajo Jajo

  • @TnInventor
    @TnInventor 4 ปีที่แล้ว +1

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

  • @ginalski1
    @ginalski1 4 ปีที่แล้ว

    mmmm zmywacz PCB
    alkocholowy
    Alcohol PCB Cleaner

  • @michabartnik2728
    @michabartnik2728 4 ปีที่แล้ว

    LOOOOOOOL