Aqua Phoenix
     >>  Hardware >>  LED Lamp  
 

Navigator
   
 
       
   

7. Software Design

7.1 Environment Generator

With its text-based network messaging implementation, the LED Lamp can be used in a variety of applications, whether providing feedback for sensors or generating lighting sequences from programs. Examples for sensory feedback include:
  • Weather: Given temperature, humidity, wind speed, etc., different colors, positions, and brightness can signal current weather conditions.
  • Events around the house: Doorbells ringing, garage door opening, washing machine cycle completing - wherever a sensor can be installed to detect an event, the information can be sent to a program, which digests and sends appropriate messages to the LED Lamp.
  • Audio-driven light plays: Parallel to a bar-graph spectrum analyzer, the LED Lamp can produce lighting murals for pre-processed spectral analysis.

For examples of lighting arrangements, a software package demonstrates four types of interaction with the LED Lamp:

  • Preset Shows (Figure 1.47): Various examples for light shows, including one for each major color undertone.
  • Custom Shows (Figure 1.48): Given specific parameters for color, brightness, and speed, customized lighting arrangements can be generated.
  • Audio Control (Figure 1.49): Spectral analysis is performed, and light output is modeled after signal strength in selected frequency bands.
  • Manual Control (Figure 1.50): Allows for control of individual clusters (by clicking on an LED and dragging mouse to adjust brightness), or all clusters for a color, or an entire shade.

Figure 1.47: Preset Shows
Click image to enlarge, or click here to open
Figure 1.48: Custom Shows
Click image to enlarge, or click here to open
Figure 1.49: Audio Show
Click image to enlarge, or click here to open
Figure 1.50: Manual Control
Click image to enlarge, or click here to open

7.2 Reference

7.2.1 Touchpad Serial Test Module (Java)

  Java source and binary for LED Lamp Serial Touchpad interaction  
This archive contains Java source and binary files for the LED Lamp touchpad simulation, as well as shell (SH) and batch (BAT) files to run the java code. The simulator connects to the serial touchpad via one COM port, and the LED shade via another COM port. Touchpad events are translated to LED shade lighting events.

It is not necessary to have a physical LED shade attached - the Java GUI simulates the light intensity for the five colors. The touchpad must be attached though. The code implemented in this simulator is for Synaptics touchpads only. Other touchpads (Cirque, for example), have slightly different means of encoding events, and the code would need to be modified accordingly.