Lazzzorauth: Unterschied zwischen den Versionen

aus Metalab, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Wechseln zu: Navigation, Suche
(How)
(8 dazwischenliegende Versionen des gleichen Benutzers werden nicht angezeigt)
Zeile 13: Zeile 13:
 
== Software ==
 
== Software ==
  
Occidentalis 0.1 (RaspberryPI distro from Adafruit)
+
2012-07-15-wheezy
 +
 
 
Node.js
 
Node.js
Arduino code
 
  
 +
Arduino code
  
 
== How ==
 
== How ==
  
 
Hardware documentation
 
Hardware documentation
* tbd (how is everything connected)
+
[[Datei:Lazzzorauth_bb_small.png|200px|thumb|left|Breadboard aufbau (made with fritzing)]]
 +
[[Datei:Lazzorauth sensor.jpg|200px|thumb|left|The hall effect sensor + Preamp]]
 +
 
 +
 
 +
There is a hall effect sensor placed right over the valve of the airassist.
 +
 
 +
This valve is opened to enable a static airflow as soon as a laserjob starts and is disabled when the job ends.
 +
 
 +
 
 +
<p style="clear:both">
  
 
Software documentation
 
Software documentation
Zeile 27: Zeile 37:
  
 
== Protocols ==
 
== Protocols ==
 +
 +
 +
''' this is partially wrong and needs correction'''
 +
 
Arduino SENDS:
 
Arduino SENDS:
  
Zeile 32: Zeile 46:
 
{|
 
{|
 
!align ="left" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"|<small>Code</small>
 
!align ="left" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"|<small>Code</small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Parameter<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Parameter<small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Expected reply<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Expected reply<small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>What does it mean<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>What does it mean<small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Example<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Example<small>
 
|-
 
|-
 
|style="border:1px dotted lightgray;"| I
 
|style="border:1px dotted lightgray;"| I
Zeile 42: Zeile 56:
 
|style="border:1px dotted lightgray; text-align:center;"| IButton scanned
 
|style="border:1px dotted lightgray; text-align:center;"| IButton scanned
 
|style="border:1px dotted lightgray; text-align:center;"| I:33-000000000000
 
|style="border:1px dotted lightgray; text-align:center;"| I:33-000000000000
|-
 
|style="border:1px dotted lightgray;"| N
 
|style="border:1px dotted lightgray; text-align:center;"| NONE
 
|style="border:1px dotted lightgray; text-align:center;"| NONE
 
|style="border:1px dotted lightgray; text-align:center;"| Not authenticated (invalid Button)
 
|style="border:1px dotted lightgray; text-align:center;"| N
 
 
|-
 
|-
 
|style="border:1px dotted lightgray;"| X
 
|style="border:1px dotted lightgray;"| X
Zeile 54: Zeile 62:
 
|style="border:1px dotted lightgray; text-align:center;"| Lazzzor shutdown button hit (eXit)
 
|style="border:1px dotted lightgray; text-align:center;"| Lazzzor shutdown button hit (eXit)
 
|style="border:1px dotted lightgray; text-align:center;"| X
 
|style="border:1px dotted lightgray; text-align:center;"| X
 
+
|-
 +
|style="border:1px dotted lightgray;"| P
 +
|style="border:1px dotted lightgray; text-align:center;"| NONE
 +
|style="border:1px dotted lightgray; text-align:center;"| P
 +
|style="border:1px dotted lightgray; text-align:center;"| Ping! /Heartbeat
 +
|style="border:1px dotted lightgray; text-align:center;"| P
 
|}
 
|}
  
Zeile 64: Zeile 77:
 
{|
 
{|
 
!align ="left" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"|<small>Code</small>
 
!align ="left" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"|<small>Code</small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Parameter<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Parameter<small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Expected reply<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Expected reply<small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>What does it mean<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>What does it mean<small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Example<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Example<small>
 
|-
 
|-
 
|style="border:1px dotted lightgray;"| A
 
|style="border:1px dotted lightgray;"| A
Zeile 73: Zeile 86:
 
|style="border:1px dotted lightgray; text-align:center;"| NONE
 
|style="border:1px dotted lightgray; text-align:center;"| NONE
 
|style="border:1px dotted lightgray; text-align:center;"| Authenticated
 
|style="border:1px dotted lightgray; text-align:center;"| Authenticated
|style="border:1px dotted lightgray; text-align:center;"| A:overflo
+
|style="border:1px dotted lightgray; text-align:center;"| A:OVERFLO
 
|-
 
|-
 
|style="border:1px dotted lightgray;"| N
 
|style="border:1px dotted lightgray;"| N
Zeile 86: Zeile 99:
 
|style="border:1px dotted lightgray; text-align:center;"| Off (in response to X)  
 
|style="border:1px dotted lightgray; text-align:center;"| Off (in response to X)  
 
|style="border:1px dotted lightgray; text-align:center;"| O
 
|style="border:1px dotted lightgray; text-align:center;"| O
 +
|-
 +
|style="border:1px dotted lightgray;"| P
 +
|style="border:1px dotted lightgray; text-align:center;"| NONE
 +
|style="border:1px dotted lightgray; text-align:center;"| NONE
 +
|style="border:1px dotted lightgray; text-align:center;"| Heartbeat / PING
 +
|style="border:1px dotted lightgray; text-align:center;"| P
 +
 +
|-
 +
|style="border:1px dotted lightgray;"| E
 +
|style="border:1px dotted lightgray; text-align:center;"| <Error>
 +
|style="border:1px dotted lightgray; text-align:center;"| NONE
 +
|style="border:1px dotted lightgray; text-align:center;"| Some Error occured
 +
|style="border:1px dotted lightgray; text-align:center;"| E:Network down!
 +
  
 
|}
 
|}

Version vom 2. November 2012, 07:31 Uhr

Hardware

Consists of:

- Raspberry Pi
- Arduino
- 16x2 LCD
- OneWire (iButton suport)
- 3 Leds for status indication
- 1 Button
- a 6-Port Network Switch

Software

2012-07-15-wheezy

Node.js

Arduino code

How

Hardware documentation

Breadboard aufbau (made with fritzing)
The hall effect sensor + Preamp


There is a hall effect sensor placed right over the valve of the airassist.

This valve is opened to enable a static airflow as soon as a laserjob starts and is disabled when the job ends.


Software documentation

  • tbd (pitfalls, config, buildprocess)

Protocols

this is partially wrong and needs correction

Arduino SENDS:


Code Parameter Expected reply What does it mean Example
I <iButton ID> A, N IButton scanned I:33-000000000000
X NONE O Lazzzor shutdown button hit (eXit) X
P NONE P Ping! /Heartbeat P


Raspberry sends:


Code Parameter Expected reply What does it mean Example
A <username> NONE Authenticated A:OVERFLO
N NONE NONE Not authenticated (invalid Button) N
O NONE NONE Off (in response to X) O
P NONE NONE Heartbeat / PING P
E <Error> NONE Some Error occured E:Network down!