MadDoct / ESP-CrowAlarmInterface

Interface for Crow Runner 8/16 Alarm System using an ESP8266 connected to CLK and DAT lines usually used by the Keypads
GNU General Public License v3.0
4 stars 2 forks source link

Only get alarm status - unsure of cabling direction #4

Open michaelcrone opened 8 months ago

michaelcrone commented 8 months ago

Setup is: Crow Runner 4 (same as Runner 8 but with less inputs) ESP8266 / NodeMCU ESP-12F Module Logic level converter (https://www.jaycar.com.au/duinotech-arduino-compatible-logic-level-converter-module/p/XC4486) Wiring diagram for logic level converter here - https://www.jaycar.com.au/medias/sys_master/images/images/10096754262046/XC4486-manualMain.jpg

I'm really struggling with the wiring.

I do get some MQTT messages such as:

Message 486 received on Alarm/status at 9:17 PM: Desarmado Message 485 received on Alarm/tele at 9:17 PM: {"Uptime":"0D 00:21:45","IP":"192.168.1.130","RSSI":-77} Message 484 received on Alarm/status at 9:17 PM: Desarmado Message 483 received on Alarm/lwt at 9:17 PM: Online

Any tips on how to wire it up correctly incase that is the problem?

Can the cabling run in parallel to the old school control panel I have on the wall or do I need to remove those wires?

MadDoct commented 8 months ago

If you receive the status messages, the wiring should be OK. What can't you do?

I updated the readme with instructions to control the alarm

(the cabling can run in parallel)

michaelcrone commented 8 months ago

I'm not getting any zone presence notifications (I can see the red light on the PIRs around the house).

I did realise I wasn't feeding the logic level converter any 3.3/5V power, so I've run both from the NodeMCU (3.3v from the 3v3 port and 5v from VU). Is this an appropriate way for 5V?

My main question is what direction the cabling to the logic level converter goes? I can see 3.3v TX / RX, 5v TX/RX. It isn't clear to me which device is transmitting / receiving.

MadDoct commented 8 months ago

Well, that logic level converter seems to be crap and a mix of a real logic level converter with a voltage divider. You'll probably do fine if you use tx0 pins for the clk and tx1 pins for the dat. Just don't use the rx pins.... (in that board tx0 on the high side "continues" with tx0 on the low and the same for tx1 - rx seem to be using voltage dividers and should not be used)

michaelcrone commented 8 months ago

Alright will give that a go. Any view on running 5v power to the the logic level converter from the VU pin on the the NodeMCU? Will get my multimeter to it later today to see if I can answer that myself also

MadDoct commented 8 months ago

You can use the 5v from de nodemcu, for sure...

michaelcrone commented 8 months ago

Have confirmed 3.3/5v coming out of the nodemcu pins the LLC is connected to.

Here's how I have it wired up currently.

image

What I'm seeing via MQTT currently:

image
MadDoct commented 8 months ago

Please send a picture of your actual assembly

MadDoct commented 8 months ago

Maybe I didn't undestand the schematics for that level shifter, but it seems that TXI should connect to the alarm and TXO should connect to the esp... (As I said it seems to be crap and the labeling is awful)

RuneKR commented 8 months ago

I'm looking to connect to the ESL-2 Board via a Rasp Pico. Do you recommend the use of a different logic level converter than what @michaelcrone bought?

MadDoct commented 8 months ago

I'm looking to connect to the ESL-2 Board via a Rasp Pico. Do you recommend the use of a different logic level converter than what @michaelcrone bought?

That "issue" isn't related to this project. You should ask where they use a Raspberry or that panel

RuneKR commented 8 months ago

Have confirmed 3.3/5v coming out of the nodemcu pins the LLC is connected to.

Here's how I have it wired up currently.

image

What I'm seeing via MQTT currently:

image

Looks like you might be using an Omni directional logic converter rather than bi