Benutzer-Werkzeuge

Webseiten-Werkzeuge


infrastruktur:alphapi

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
infrastruktur:alphapi [2022-08-04 14:46] chrisinfrastruktur:alphapi [2022-09-15 21:23] (aktuell) makefu
Zeile 7: Zeile 7:
  
 === add sounds to repo === === add sounds to repo ===
-  - git pull https://git.shackspace.de/infrastructure/alphapi+  - git pull https://github.com/shackspace/alphapi/
   - Füge Deine samples im Unterordner server/sounds/ hinzu.    - Füge Deine samples im Unterordner server/sounds/ hinzu. 
   - git push   - git push
Zeile 18: Zeile 18:
   - cd alphafluid/alphapi   - cd alphafluid/alphapi
   - git pull (ist aber grade kaputt, git ist zu alt)   - git pull (ist aber grade kaputt, git ist zu alt)
 +
 +=== architecture ===
 +Alphapi contains of two parts, an 8bit AVR which handles the 7segment display, PIR and other sensors ( https://github.com/shackspace/alphapi/tree/master/firmware ) and the raspberry pi which interfaces with the AVR via Serial and handles sound + light.
 +
 +== AVR ==
 +The Microcontroller sends the following messages:
 +  - /o/d/1/ - door opened
 +  - /o/b/<slot> - bottle bought at <slot>
 +  - /o/d/0/ - door closed
 +  - /o/p/0/1 - pir spot
 +  - /o/p/1/1 - pir room
 +
 +It can receive the following messages:
 +  - /i/s/<slot><numer_of_bottles> - shown in 7 segment
 +
 +all messages end with \r\n
 +
 +== RaspberryPi ==
 +Code is at https://github.com/shackspace/alphapi/blob/master/server/alphapi.py
 +
infrastruktur/alphapi.1659617180.txt.gz · Zuletzt geändert: 2022-08-04 14:46 von chris