I'm working a small project just for fun. I'd like to open an electronic lock through BLE using MDBT42Q.
The unlocking action is triggered by closing circuit between ground and another wire.
I have though I would be able to connect these two wires to some PINs in MDBT42Q brakeout and open circuit between them programatically.
However it doesn't seem to work like this.
Can anyway give me a hint of what is the best way to interact with such circuit from MDBT42Q?
Well Hello Marek @user112057 and welcome to the Espruino community. Thank you for your interest.
It is likely (hardware) a pull-up/pull-down issue, not enough drive current, both circuits lacking a common ground or (software) the pin mode is incorrect. There isn't enough detail provided for me to make suggestions, but uploading the schematic, lock datasheet, link to tutorial if any and the current attempted code would provide some insight as there are too many combinations to just guess.
Might get some ideas here:
© Espruino, powered by microcosm.
Report a problem