Club-Status: Unterschied zwischen den Versionen

aus dem Wiki des Entropia e.V., CCC Karlsruhe
(Update to current status.)
Zeile 1: Zeile 1:
== Features ==
== Features ==
* Meldet ob Club offen ist (Via Jabber-Status)
* Reports on MQTT topic when the club status (open/closed) changes.
* Meldet ob Club geschlossen ist und Fenster offen sind
* Sets the relays for the club power and status lights.
* Aktueller [http://club.entropia.de/ Status], auch als [http://club.entropia.de/status.json JSON]
* Offers REST API and status page via HTTP.
 
[[Datei:Ueberlastung_2018.jpeg|200px|thumb|left|Ueberlastung in 2018]]


== Hardware ==
== Hardware ==
[[Datei:Clubstatus-Hardware.png|thumbnail|Hardwarediagramm]]
Hauptteil des Systems ist war AVR-NET-IO ([http://www.pollin.de/shop/dt/MTQ5OTgxOTk-/Bausaetze/Diverse/Bausatz_AVR_NET_IO.html Herstellerseite], [http://www.mikrocontroller.net/articles/AVR_Net-IO_Bausatz_von_Pollin Mikrocontroller-Wiki]) von Pollin, was jedoch durch eine [[Clubbus|Clubbus]]-basierte Lösung ersetzt wurde. Das NET-IO war folgendermaßen beschaltet:
* Digital Out 1: Piezo-Summer
* Digital Out 2: Status-LED
* Digital In 1: Statusschalter
* Digital In 2: Fensterkontakte (einfach in Reihe geschaltet)
* <s>Digital In 3: Bewegungsmelder Treppe</s> (nicht mehr vorhanden)
Die Stromversorgung läuft über ein Wechselspannungsnetzteil im Serverraum (kleine Steckerleiste) und über ein Kabel, dass durch eine Verteilerdose unbekannten Zwecks in den Clubraum geleitet wird (Nähe Zorn-Workstation).


== Dokumentation ==
* Raspberry Pi 1 B+.
Hier hats ein tolles Diagramm, das zeigt, was passiert.
* Seeed Raspberry Pi Relay Board v1.0 (http://wiki.seeedstudio.com/Raspberry_Pi_Relay_Board_v1.0/)
* Debounce board (prototype of: https://github.com/MayaPosch/DebounceHat with just two channels)
* Meanwell +12V/+5V PSU.
* Laser-cut wooden enclosure.


<gallery>
The relays control the Schaltstrom in the club, i.e. power outlets which are unpowered when the club is closed.  
Datei:Entropia state.jpg|Zustandsüberführungsdiagramm des Clubraums
</gallery>


== Bilder ==
They also control the lights on the traffic light outside the club door, indicating the current club status.
<gallery>
Datei:Clubstatus controller closeup.jpg|Club auf Ethernet Adapter
Datei:Clubstatus_verloeteter_kabelsalat.jpg|Kabelsalat auf DB-irgendwas Adapter
Datei:Clubstatus_schalter.jpg|Menschenfinger auf Clubstatus Adapter
Datei:Clubschalter.jpg|Clubschalter-NG. Club offen, Fenster zu.
Datei:Clubschalter_fenster.jpg|Clubschalter-NG. Club offen, Fenster offen.
</gallery>


== Software ==
== Software ==
* [https://stressinduktion.org/~hannes/clubstatus.pl Twitter-Steuer-Skript]
 
* [[Datei:Clubstatus.0.23.tgz]]
On the SBC runs a Systemd service called 'clubstatus' which monitors the status of the two connected switches (door lock & club status). These switches are debounced using the debounce board that is installed on top of the hardware stack.
 
See the Github project for Ueberlastung for more details: https://github.com/entropia/ueberlastung
 


[[Kategorie:Projekte]]
[[Kategorie:Projekte]]
[[Kategorie:Clubtechnik]]
[[Kategorie:Clubtechnik]]

Version vom 29. März 2018, 19:32 Uhr

Features

  • Reports on MQTT topic when the club status (open/closed) changes.
  • Sets the relays for the club power and status lights.
  • Offers REST API and status page via HTTP.
Ueberlastung in 2018

Hardware

The relays control the Schaltstrom in the club, i.e. power outlets which are unpowered when the club is closed.

They also control the lights on the traffic light outside the club door, indicating the current club status.

Software

On the SBC runs a Systemd service called 'clubstatus' which monitors the status of the two connected switches (door lock & club status). These switches are debounced using the debounce board that is installed on top of the hardware stack.

See the Github project for Ueberlastung for more details: https://github.com/entropia/ueberlastung