• Hi,

    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?

    Thank you,
    Marek Kowalski

  • Sat 2020.05.02

    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:

    http://www.espruino.com/Pico+Wire+Loop+GĀ­ame

    http://www.espruino.com/Tutorials

About

Avatar for user112057 @user112057 started