aquamonitor / Aquamonitor

Automated Auto Top Off and Auto Water Change system for reef tanks with Raspberry Pi
GNU Lesser General Public License v3.0
22 stars 7 forks source link

Wiring diagram #1

Open denierlexiese opened 6 years ago

denierlexiese commented 6 years ago

The leak detector, i think has three wires..... Did you only use two, as indicated by your wiring diagram, or did you use the vcc wire too? Did you use the 3.3V or 5V line for the leak detectors if you used all 3 wires?

Thanks!!!

aquamonitor commented 6 years ago

Sorry you’re right I use the 3 of them. Vcc gnd and signal

Sent from my mobile (sorry for typo/accents mistakes)

Le 12 févr. 2018 à 20:58, denierlexiese notifications@github.com a écrit :

The leak detector, i think has three wires..... Did you only use two, as indicated by your wiring diagram, or did you use the vcc wire too? Did you use the 3.3V or 5V line for the leak detectors if you used all 3 wires?

Thanks!!!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

denierlexiese commented 6 years ago

Thanks, i ended up using the 3.3 volt line, seems to work. Did you use the 5 or the 3.3?

Great code!!! Got my float switches and leak detectors running off it!!!

aquamonitor commented 6 years ago

Thx, I updated the alarm (repeating alarm) part since the code was a bit faulty there. I used a 3.3v on those detectors.

Here is the update to the repeat alarm :

[...] def Repeat_alert(probe, message, timer): global Alarms if datetime.now() > Alarms[probe] + timedelta(minutes=timer): Send_alert(message,syslog.LOG_WARNING) Alarms[probe] = datetime.now() [...]

You get an alarm, but if the exact same alarm triggers again before being reseted, it's ignored for [timer] seconds / minutes, after which you get a [Repeated] msg. So when water is high for example, you don't get flooded with alarms.

The problem though is when your floatswitch is just at the balance level between low and normal state. Then the alarm is reseted and resent. I'm working on a fix of this as well, with a timestamp per message and not per GPIO pin, which would allow me to not resend alarm when your switch is floating (litteraly) in between two states.

2018-02-13 9:39 GMT+01:00 denierlexiese notifications@github.com:

Thanks, i ended up using the 3.3 volt line, seems to work. Did you use the 5 or the 3.3?

Great code!!! Got my float switches and leak detectors running off it!!!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aquamonitor/Aquamonitor/issues/1#issuecomment-365188250, or mute the thread https://github.com/notifications/unsubscribe-auth/ATc51bnGZOTFgWqipCaJSGDTEctH9zSpks5tUUo-gaJpZM4SCvOf .

-- __ Philippe Humeau