Laser/Lazzzorauth: Unterschied zwischen den Versionen

aus Metalab, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Wechseln zu: Navigation, Suche
K
(Eine dazwischenliegende Version von einem anderen Benutzer werden nicht angezeigt)
Zeile 5: Zeile 5:
 
== SYSTEM IS LIVE! HERE IS HOW IT WORKS ==
 
== SYSTEM IS LIVE! HERE IS HOW IT WORKS ==
  
'''You need a key, or an a key owner to log in for you before you can lazzzor!'''
+
'''You need a key, or a key owner to log in for you before you can lazzzor!'''
  
 
If you have lazzzor privileges but not yet a key, get in touch with [[Benutzer:mzeltner|mzeltner]], [[Benutzer:overflo|overflo]] or [[Datei:core.png]]!
 
If you have lazzzor privileges but not yet a key, get in touch with [[Benutzer:mzeltner|mzeltner]], [[Benutzer:overflo|overflo]] or [[Datei:core.png]]!
  
Important notes: if you try to print '''without anyone being logged in, CorelDraw will freeze''', and print jobs will have to be cancelled!
+
<font color='Red'>Important notes: if you try to print '''without anyone being logged in, CorelDraw will freeze''', and print jobs will have to be cancelled!</font>
  
 
Currently public list of people with lazzzorprivileges:
 
Currently public list of people with lazzzorprivileges:

Version vom 2. Februar 2013, 12:06 Uhr

done.

SYSTEM IS LIVE! HERE IS HOW IT WORKS

You need a key, or a key owner to log in for you before you can lazzzor!

If you have lazzzor privileges but not yet a key, get in touch with mzeltner, overflo or Core.png!

Important notes: if you try to print without anyone being logged in, CorelDraw will freeze, and print jobs will have to be cancelled!

Currently public list of people with lazzzorprivileges:

Workflow / Howto

  • Logging in: put in your key
  • Print as per usual!
  • Be externally responsible: hold logout button for 3 seconds
  • External (i.e. not you!) print as per usual
  • Log out: tap logout once (if you're done lazzzoring or overseeing lazzzoring!)

Hardware

Consists of:

- Seagate Dockstar (because the raspberry pi SD-cards died several times)
- Arduino
- RGB 16x2 LCD
- OneWire Socket (iButton support)
- A red Button
- a 6-Port Network Switch

Software

dockstar linux distro from usb stick

Node.js Server / Database

Arduino code (because there was a spare arduino laying around..)


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.

Protocols

All states are now handled by the embedded system.

The Arduino only displays what the embedded System sends it.

The arduino sends ibutton scans and pushbutton events.

//this code is followed by the button id
#define BUTTON_ID_SCANNED   'I'

// error is followed by error description (like CRC error)
#define ERROR_CODE  'E'

// when button is triggered
#define LOGOUT_USER  'B'
// when button is long pressed
#define EXTERNAL_USER_RESPONSIBLE  'X'

//button was removed, this event is ignored by embedded system
#define BUTTON_REMOVED  'L'

// sensor from valve magnetic field
#define LASERJOB_STARTED  'J'
#define LASERJOB_FINISHED  'S'


The embedded System sends:

'A' followed by text for the FIRST line
'B' folloowed by text for the second line
'C' Turn color on LCD to 

GREEN =1
RED =2
BLUE =4


Where

LazzzorAuth runs @ 10.20.30.27

Its located right begind the Lazzzorstation on the wall.


Links

[Arduino + Embedded system code on github ]

Gotchas

The Arduino used is a Arduino UNO but it's bootloader is from an Arduino DUEMILANOVE.

Pick this as target when compiling a new firmware for it..

When the Arduino is plugged in it displays "Linux booting.. hang in there"

Once The embedded system is up it sends a welcoming message over serial and this flushed the display.