all right, both seems to work, even if the volume of the speaker is not loud ;p
nb: as B3 is also SPI1SCK, I guess it's not a good idea to have my buzzer on that pin, right ?
( although it seems to work, I bet it may cause side-effect, for the least .. )
ps:didn't know wiring a speaker to a buzzer 'd result in audio being played twice / Espruino OOM
ps2: didn't know either my buzzer 'd sing when close to a soldering iron ;p
anyway, I post my current code below, it needs a few additions ( starting with "single button combination lock"-like input, which 'd trigger the rest, aka the playing audio & triggering a relay .. )
any personal hint on driving an 8 ohms speaker with a Pico using the smallest possible components while having a loud sound ? ( B0 stuff ? )
-> this being said, I'll be back [ right ] after reading the said-combination-lock tut'
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
all right, both seems to work, even if the volume of the speaker is not loud ;p
nb: as B3 is also SPI1SCK, I guess it's not a good idea to have my buzzer on that pin, right ?
( although it seems to work, I bet it may cause side-effect, for the least .. )
ps:didn't know wiring a speaker to a buzzer 'd result in audio being played twice / Espruino OOM
ps2: didn't know either my buzzer 'd sing when close to a soldering iron ;p
anyway, I post my current code below, it needs a few additions ( starting with "single button combination lock"-like input, which 'd trigger the rest, aka the playing audio & triggering a relay .. )
any personal hint on driving an 8 ohms speaker with a Pico using the smallest possible components while having a loud sound ? ( B0 stuff ? )
-> this being said, I'll be back [ right ] after reading the said-combination-lock tut'
see ya ++
1 Attachment