Automatisierung des Labors/en

Aus LaborWiki
Wechseln zu: Navigation, Suche

We have started to automate the Labor using a CAN bus. The LAP protocol has been developed to support our goal.

The basic idea is that we liked to have an automatic and convenient controller for all our lamps, the music and other fancy stuff. We had thought about providing a means of interaction to the system using common wall mounted light switches and remote controls as well as via a website in our intranet.

So far the automation has been used for the following tasks: When you leave the Labor in the evening (or the early morning...), a simple twist of our main power button engages the shutdown procedure, which will turn off the music, the audio hardware, the light, all computers and some other non-essential appliances. One can control the lights and the music for all rooms using a remote control or the website.

Sounds practical, eh?

We have planned to extend the automation to do some other tasks as well, for example to separately control the power outlets located in the Labor.


Status[Bearbeiten]

Assigned LAP Addresses[Bearbeiten]

Address Device Description
0x00 CAN-GW at Roulette
0x01 The Might (aka The Switch)
0x24 BORG Long scrolltext borg
0x31 MOODBAR Fluorescent lamp dimmer bar (PC power supply case)
0x35 LAMPE SpotControl (Metal case)
0x3d BORG-3D Martin's 8x8x8 Blinken-Borg
0xA1 dr4go's Moodlight
0x42 BORG Andre's small 16x16 Blinkenlights
0x43 Dario's LaBORGjacket
0x53 Gate opener
0x54 Chuck/en
0xF? BROADCAST Special broadcast addresses
0xFF BROADCAST All LAP Devices

2.9.2005[Bearbeiten]

For now we can already talk to the CAN controllers via the Labor Micro Board to send and receive CAN packets. We also have written a small software for Atmel micro controllers which turns them into a CAN<->RS232 gateway. For the PC side, we've developed a client software, giving the computer the ability to send and receive CAN packets. It is even possible to tunnel the packets through Ethernet.


CAN <-> RS232 Gateway[Bearbeiten]

CAN-GW-Roulette.jpg

We've built a CAN RS232 gateway into a 19" rack-case which I scavenged from junk. Received CAN packets are tunneled through RS232 so that a host software can receive and unpack them. The case contains a power supply for our 13V bus power supply (has been lowered from 24V) and a bunch of LEDs to signal various operating conditions sometime. Furthermore there's a main board with an ATmega8 at its core. The board also houses the components for the CAN bus and a MAX232 for the serial side. Not to forget, there are shift registers and 16 drivers for the LEDs in the rest of the case (it has already been there...).



Dimmer for Spotlights[Bearbeiten]

LAPDimmer.jpg
LAPSpots.jpg

I've built a dimmer for our spotlights into a small metal case.

The spots are 30W/6V PAR34 spots. The case contains not only the power electronics but also the control. The control functions are being served by a (much too small...) AT90S2313. It is accompanied by the ICs for the CAN bus and a relais, that can cut off the spots from mains supply.



Scrolltext Borg[Bearbeiten]

LS-Borg.jpg

The scrolltext-borg at the bar shall be abused for joystick-based control and to show various operating modes of the Labor.







Moodbar[Bearbeiten]

Theke2.jpg

The bar has an integrated 3-channel fluorescent lamp dimmer -- it mixes arbitrary and wonderful colors.






Technical Stuff[Bearbeiten]

Pinout of new CAN bus plug[Bearbeiten]

We're using one of those connectors like the ones famous from IDE cables, the ones with the plastic fringe.

Top view pin header: View from the plugging-side on the pins

   9   7   5    3   1
+--------[   ]---------+
| 15V 15V GND CANH GND |
| 15V 15V GND CANL GND |
+----------------------+
   10  8   6    4   2