Skip to content
  • Categories
  • Recent
  • Groups
  • Users
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Zephyr)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Homebrew & Development
  3. Development On Phones Or PC
  4. Development
  5. square wave out pin?

square wave out pin?

Scheduled Pinned Locked Moved Development
4 Posts 3 Posters 387 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • lollapalooza
    lollapalooza
    lollapalooza
    wrote on last edited by
    #1

    this is prob the wrong category but i had no idea where to put it

    Im building a project utilising phototransistors,laser diodes and a piezo buzzer hooked up to a Tiny 2040.I was wondering if there was a pin to act as a 'square wave out pin', which my piezo buzzer needs.
    If anyone has a simpler way of doing this or a way to do it using what Ive described above,I'd be :) :) :) .

    ☮ Lea out

    '-'/
    free-palestine.carrd.co
    veteran member and moderator
    Ash Ketchum・1997-2023

    quarky 1 Reply Last reply
    0
    • pwsincd
      pwsincd
      pwsincd
      Admin
      wrote on last edited by
      #2

      you can use a Raspberry Pi Pico PIO not sure on the 2040

      "Don’t waste your words I don’t need anything from you / I don’t care where you’ve been or what you plan to do." - Ian Brown

      1 Reply Last reply
      0
      • lollapalooza lollapalooza

        this is prob the wrong category but i had no idea where to put it

        Im building a project utilising phototransistors,laser diodes and a piezo buzzer hooked up to a Tiny 2040.I was wondering if there was a pin to act as a 'square wave out pin', which my piezo buzzer needs.
        If anyone has a simpler way of doing this or a way to do it using what Ive described above,I'd be :) :) :) .

        ☮ Lea out

        quarky
        quarky
        quarky
        wrote on last edited by
        #3

        @lollapalooza you probably want the PWM function - https://mytoolbox.tech/tec/en/2021/12/26/rspi_pico_pwm_mpython_e/ - just set the duty cycle to 50% (which I think is what that article does) for a square shape.

        tag me if you want my attention personally (@quarky)
        flag posts to get moderator attention

        lollapalooza 1 Reply Last reply
        0
        • quarky quarky

          @lollapalooza you probably want the PWM function - https://mytoolbox.tech/tec/en/2021/12/26/rspi_pico_pwm_mpython_e/ - just set the duty cycle to 50% (which I think is what that article does) for a square shape.

          lollapalooza
          lollapalooza
          lollapalooza
          wrote on last edited by
          #4

          @quarky ooh ok I'll try that later
          thanks

          '-'/
          free-palestine.carrd.co
          veteran member and moderator
          Ash Ketchum・1997-2023

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Groups
          • Users
          • Tags
          • Popular