Getting Pushy by adding a Button to the Raspberry Pi Pico (CircuitPython)

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

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

  • @Alex-ql4si
    @Alex-ql4si 26 วันที่ผ่านมา

    I was stuck on why my circuit wasn't working. Thanks to you I figured out that I have put the button the wrong way. Thank you!

    • @profgallaugher
      @profgallaugher  26 วันที่ผ่านมา +1

      Keep hacking. I continue to make just about every error possible. The corrections get faster over time. Cheers!

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

    Hi, I'm currently using Thonny but see you are using Mu and it has autocomplete is it worth changing over to help learn?

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

      Mu isn’t great. My biggest complaint about working with CorcuitPython is the lack of easy integration with better development tools. I plan to look at options later in the year, but Mu is free so it’s easy to try out if you find it useful. The interface is supposed to be easier to use, for young kids, but I find it more trouble since it’s non standard. Good luck and feel free to share your experiences!

  • @bertmonkey8457
    @bertmonkey8457 5 หลายเดือนก่อน

    As a total newby... am getting No Module Named board or digitalio... any suggestions?

    • @profgallaugher
      @profgallaugher  5 หลายเดือนก่อน

      Are you using CircuitPython and not microphone? Those modules are built into CircuitPython. They don’t need to be added to “lib”. So if you installed CircuitPython (earlier lesson) you should be fine. Just use the import statement in your code.

    • @profgallaugher
      @profgallaugher  5 หลายเดือนก่อน +1

      Also make sure you've installed the proper CircuitPython library for your board. For example: Raspberry Pi Pico W if you're using the "W" board, Raspberry Pi Pico for that board. Has that solved you issue? Good luck!

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

    Do I need a breadboard? I want to just connect a button directly into the raspberry pi in the bottom slots (35 onwards) I can't seem to find any videos / reading on this.

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

      A breadboard is useful. And you’ll want your pico to have headers soldered on, too. Check the earlier lessons in the playlist. You’ll see one on breadboards.

  • @eklabofficial
    @eklabofficial 5 หลายเดือนก่อน

    Could you possibly give me some links for all the pieces needed?

    • @profgallaugher
      @profgallaugher  5 หลายเดือนก่อน

      Look at the Google sheet link in the very first video at bit.ly/circuitpython-tutorials (it’s in the video description - those are below the TH-cam videos. Sometimes you have to click to expand them). That link has all of the parts, links, etc.

    • @eklabofficial
      @eklabofficial 5 หลายเดือนก่อน

      @@profgallaugher Is it ok to buy a Pico WH because that is what the link takes me to that was on the spreadsheet.

    • @profgallaugher
      @profgallaugher  5 หลายเดือนก่อน

      That's the one to get. It has the headers pre-soldered on it. You'll want to get a breadboard, too. If you're just experimenting, the CircuitPlayground Bluefruit (CPB) board is a great first board. The CircuitPython you'll learn will mostly translate to the Raspberry Pi Pico, but the CPB has a bunch of sensors, lights, and other hardware on board, and it can be easily expanded with alligator clips. Feel free to use either, or both, but the CPB is a great first choice given it has so much embedded in it. CircuitPython will be mostly standard across the >500 boards that run the language.

    • @profgallaugher
      @profgallaugher  5 หลายเดือนก่อน

      Know that the Raspberry Pi Pico-WH doesn't do a whole lot on its own. You'll likely want some additional hardware if that's the one. you go with. Get a breadboard, a neopixel light strip, pin-alligator clip wires, and most of the sensors I use (e.g. the 12-pad touch sensor, distance sensor, etc) use the STEMMA-QT standard, so this product is good to use with STEMMA-QT expansion since these devices can be daisy-chained together. www.adafruit.com/product/4209. You'll also need a STEMA-QT cable to go from the port on that product to any of the STEMMA-QT expansion items - something like this will work: www.adafruit.com/product/4210 Again, the CPB is really nice as a first board because it includes so much & you can experiment with motional detection / accelerometer, lights, sounds, light sensing, buttons, and more, all on the board. This may make it easier to choose hardware for a board like the Pico-WH in the future. Cheers & good luck. Also know that Adafruit Discord is a GREAT place to ask for help. I mention this site in the intro videos.

    • @eklabofficial
      @eklabofficial 5 หลายเดือนก่อน

      @@profgallaugher I already have A CPB do you recommend any buttons on adafruit that could hook up to alligator clips.

  • @minkloco619
    @minkloco619 10 หลายเดือนก่อน

    I’m trying to hook up 40 buttons what would I need?

    • @joshguy43
      @joshguy43 2 หลายเดือนก่อน

      th-cam.com/video/H4PFupioOMM/w-d-xo.html

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

    What does the code look like to press button and turn on led. Press button again turn on the next led. Press again turn on next led. Like a visual counter I know how many times the button was pressed. Then pressing the button three times fast clears all leds.

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

    BUTTON

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

    i think i just destroyed my pico lol