kichMan / JDY-08

JDY-08 Bluetooth transparent transmission module, with resource for KiCAD

Home Page:https://kichman.github.io/JDY-08/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default GPIO HIGH/LOW?

nardev opened this issue · comments

This is actually "requesting help" post.

I added the module to my dummy thermostat, which is powered with two AA batteries.

The good thing was that the thermostat has latching/bistable relay so it needs only short pulse to one of the pole sides to change state.

But i have a problem. By default, JDY-08 has all GPIO pins set to LOW, however, this wiring on the thermostat actually is controlled by setting the different side of relay to low when it want's to change the connection on/off.

So, i first activate the BLE module, set both pins that i'm using to high and than add batteries to the thermostat. If i don't do that, the relay starts clicking/changing state very fast.

So, in short, i'm wondering if there is an option to make GPIO pins high even after power reset?

And one more thing, in regards to my situation, i'm planning to power the BLE module from separate pair of AA batteries, and i would like to optimize the power consumption. What would be the best steps.

I just need to be able to connect to it and set/unset the GPIO pins when i want. (it's done with python/home assistant based on completely different input's and decisions)

Thnx.

Screenshot from 2020-10-23 08-28-29

Hi @nardev !
If you want the default high state, then it is correct to use this at the hardware level. The thermostat will not depend on the BLE-module. The BLE-module will only send a high reset signal (оr enabled signal) on thermostat.
To enable the default high state, use a IC-logic XOR-gate (for example this 74LVC1G86SE-7).
This modular solution is more logical. I do not exclude that such a solution may not suit you. I would be happy to discuss your task in more detail.

@nardev use a XOR-chip it is preferable, that case the BLE-module can spend more time sleeping and save battery power.
Write your solution, it will be interesting.

Increase sleeping time? Couldn't figure out yesterday how to change the mode. Any tips?

On Fri, Oct 23, 2020, 21:10 kichMan @.***> wrote: @nardev https://github.com/nardev use a XOR-chip it is preferable, that case the BLE-module can spend more time sleeping and save battery power. Write your solution, it will be interesting. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#7 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFJ55UBANWUO3ZLFVT7KE3SMHIJXANCNFSM4S4ELMKQ .

no, have not ideas