Issue driving piezo #857
Unanswered
espruino-discuss2
asked this question in
Interfacing
Replies: 2 comments
-
Posted at 2016-04-19 by @gfwilliams Are you using Otherwise I'm not sure what the issue could be... |
Beta Was this translation helpful? Give feedback.
0 replies
-
Posted at 2016-04-19 by jonreid Yes - deep sleep is set - will try that ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-04-19 by jonreid
I have a little piezo I am turning on by
analogWrite(A5, 0.5, { freq: f } );
While I am debugging and connected to USB it works fine. When I disconnect USB and leave it to run on battery it sounds but does a funny chirp - I assume the PWM is getting messed up somehow.
I dont have a scope to check what is going on - any ideas ? Anything to do with A5 ?
Beta Was this translation helpful? Give feedback.
All reactions