setWatch & onInit questions #4833
Replies: 1 comment
-
Posted at 2015-07-23 by @gfwilliams Hi,
It means that it'll call the function more than once if the pin changes state more than once (after it's been debounced).
I'd have to see the circuit... to me it sounds like something is wrong with the way the Pico is wired up, so that it is unable to pull the pin's voltage down to 0v (it can supply 20mA on a pin, but that's it). To me, 2.43v looks close-ish to Also you shouldn't need to use Maybe try doing Posted at 2015-07-23 by LawrenceGrif Gordon thanks I'm certain the diode is in the right way will replace it and see how I get on. Circuit diag attached. Attachments: Posted at 2015-07-23 by @gfwilliams Hmm, sure looks fine. Although sometimes people put a resistor (10-100k?) from the gate to ground, just to stop the relay energising while the microcontroller boots and the IO pin is open circuit. Could it be there is some issue with the FET? Personally I'd try disconnecting B15 from the FET if at all possible (maybe remove the FET if you can't touch the Pico?) and make sure that pin B15 is moving between 0v and 3.3v as you'd expect. Of course it could even be a short on the board, if one IO pin was 0v and the other was 3.3v it's possible that you'd end up with the voltage you got. Posted at 2015-07-24 by LawrenceGrif Thanks Gordon tried the pull down resistor but still not helped. Will try your other tips. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-07-22 by LawrenceGrif
What does repeat: true do? repeat after debounce has expired?
I'm driving a relay via a FET with protection diode from Pico which energises when I run save() from the IDE or from power-on. Not what I want or expected
To fix it I add pinMode def to
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions