Skip to content
  • Categories
  • Recent
  • Groups
  • Users
  • Tags
  • Popular
Skins
  • Light
  • 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 (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Categories
  3. Homebrew & Development
  4. Development On Phones Or PC
  5. Development
  6. square wave out pin?

square wave out pin?

Scheduled Pinned Locked Moved Development
4 Posts 3 Posters 223 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.
  • lollapaloozaL Offline
    lollapaloozaL Offline
    lollapalooza
    Global Mod
    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

    quarkyQ 1 Reply Last reply
    0
    • pwsincdP Offline
      pwsincdP Offline
      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
      • lollapaloozaL 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

        quarkyQ Offline
        quarkyQ Offline
        quarky
        Global Mod
        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

        lollapaloozaL 1 Reply Last reply
        0
        • quarkyQ 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.

          lollapaloozaL Offline
          lollapaloozaL Offline
          lollapalooza
          Global Mod
          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
          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