square wave out pin?
-
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 -
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@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 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.
@quarky ooh ok I'll try that later
thanks
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