![]() ![]() I could solder or barrel connector them together. The wires right now are just twisted together and black tapped as Im testing and working out kinks. gQodk2EA3A and filter the voltage going into it? The opto isolator was another approach I looked into. "Many "interference" type problems arise from one of the relay states being "not connected" "undefined", and you've not said enough yet to rule those out." Im getting the 3.3v for the NC from (GPIO.PUD_UP) in the code.Ĭoncerning the below are you saying not having the NO side of the relay connected could be causing issues? I don't hear the relay rattling and huming I'm overwhelmed and hopefully can answer all the questions here This increases current in the input loop to 3.3mA, well higher than some current spikes induced from cables. Nevertheless I would recommend to use a 1k pullup GPIO to 3.3V. Should be very close to zero when contacts are closed. Too high contact resistance is found by measuring input voltage GND to GPIO-Pin. Disconnect the AC-side temporarily, when then no sporadic triggers are occurring, trouble is induced from this side. Carefully shaking the assembly could give indications whether loose connections are there. But this is what you have checked with a replacement switch. Even very short spikes on ac side could result in very short movements of the contacts.Īnother possibility are 'burned contacts', having had too much current in a previous live and contact resistance is too high (I have some old switches in my collection having a few kOhm in closed state). So when a wire has a loose connection (bad solder point, wire broken, bad connectors), there will be sporadic triggers. Without AC applied, the system assumes that the contact is closed. And the two coil connectors are only connected to some remote AC voltage, no connection to GPIO or GND. So one relais switch side is connect to a input pin, the other is connected to GND (you wrote GPIO). ![]() The approach to use a relais to separate AC and DC circuitry is fine. # in the door is opened, send the push requestīasically this wiring seems ok. # setup an indefinite loop that looks for the door to be opened / closed # set this so we can capture the resposne in our buffer # create a dict structure for the JSON data to post #setup custom headers for authentication variables and content typeĬ.setopt(c.HTTPHEADER, ['x-instapush-appid: ' + appID, # use this to capture the response from our push API call tup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP) # set to pull-up (normally closed position) #setup GPIO using Broadcom SOC channel numbering
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |