Automatisierung des Labors/en
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.
Assigned LAP Addresses[Bearbeiten]
|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|
|0x42||BORG||Andre's small 16x16 Blinkenlights|
|0xF?||BROADCAST||Special broadcast addresses|
|0xFF||BROADCAST||All LAP Devices|
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]
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]
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.
The scrolltext-borg at the bar shall be abused for joystick-based control and to show various operating modes of the Labor.
The bar has an integrated 3-channel fluorescent lamp dimmer -- it mixes arbitrary and wonderful colors.
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