Idea
====
Originally turning (blinking orange) lights for a cargo bike. A nice to have addition would be to have also brake lights that react to brake levers. Also it would be good if the lights were bright enough to be visible in daylight.
Other ideas:
Controls
========
See also http://arduino.cc/forum/index.php?PHPSESSID=900a5e1a7d6457ca6c230c762d62a85f&topic=73348.15.

Right hand is too crowded with gear switch. Three state switch next to bell would be nice. Braking sensors are difficult. Seems like motorcycles use a separate arm/cable from the brake lever to a microswitch. Possibilities include a softpot in the lever and a microswitch inside the lever housing (if a small enough switch exists). Existing COTS solutions use either an acceleration sensor (probably problematic in hills and detecting very slight braking) and sensors in the cabling next to actual brakes (haven't seen a model that would work with disc brakes).

Bionx ebike system seems to use magnetic switch where the magnet is attached to the lever, and the sensor to the lever housing (https://secure.flickr.com/photos/splendidcycles/5707870310/, http://www.nycewheels.com/bionxinstallation.html, http://www.electricbikemag.co.uk/Images/mag/eb03reviews/bionx06.jpg). Probably using a reed switch or hall sensor of some kind. Sensor itself can be bought for 14USD from http://www.amazon.com/BionX-Standard-Brake-Sensor-Switch/dp/B002JV9E0K/ref=sr_1_7?s=sporting-goods&ie=UTF8&qid=1321194287&sr=1-7, European prices seem high http://www.zyro.co.uk/brand/BIONX/BIONX/BXS011579/MAGNETIC%20SENSOR%20WITH%20SELF%20ADHESIVE%20SUPPORT.aspx. There is also at least one ready made package Tektro EL520 and 320, available from at least http://www.bikeman.com/EK9105.html, but it seems to be only for the right hand side.

Light
=====
Powerled, definately. Most likely Cree XP-G or XM-L. Car lights seem to have around 500-1500 lumens (based on power rating of 45W from motonet spare parts catalog and wikipedia giving 10-30 lumens/W for halogens https://secure.wikimedia.org/wikipedia/en/wiki/Luminous_efficacy#Lighting_efficiency) off the emitter. Of course optics, filtering etc. can have a huge effect on efficiency.

Colors
------
Need something to make red and orange/yellow light
Optics
------
Need to get a wide viewing angle for the light. A car has separate lights for sides, but would be a lot simpler if the backlight would also be visible to one side each. Easiest solution is a diffusing cover, either suitable acrylic off the shelf or sanded clear acrylic. 
More efficient solution would be to have a real wide angle optic. Perhaps an oval optic, since the light doesn't need to be visible very high or low, but then it couldn't be turned sideways.
Different emitters also have different view angles, actually a suitable emitter might do without any optics (needs testing).
Casing
------
Would be simpler to have the turning light and brake light in the same case, but have to figure out what's the best way to make them both visible at the same time. Modern cars seem to have them on top of each other, but older cars didn't have a very visible brake light from the side.
Optionally the casing should be easily movable from the v-racks to the wideloaders to add extra visibility when carrying extra wide cargo.

Power
-----
Preferably powered from one AA or two AAAs. That means a boost driver with min Vin of 0.7 or 1.5V. Alternatively the whole system could use a central power source and each light a buck driver, but of course it can't be wirelessly controlled then. In any case the drivers need to be controllable with a microcontroller.
http://www.videofoundry.co.nz/ianman/laboratory/research/driverlist.php is a nice list of drivers with user comments too.
http://www.candlepowerforums.com/vb/showthread.php?238421-How-LED-drivers-work-and-efficiency indicates that 1xAA is less efficient since driver losses are relative to input current (thus higher input voltage with same power is better). Also buck drivers are said to be more efficient than boosts.
As an interesting but anecdotal evidence, there are single AA flashlights, but the very cheapest ones seem to be 3xAAA. Though do they actually use any kind of regulator or are they directly driven...
http://www.candlepowerforums.com/vb/showthread.php?280677-LED-driver-voltage-difference mentions three different styles of "drivers": resistors, AMC chips (specificaly AMC7135, the number seems pretty common in many drivers) and inductor based drivers. The latter is regarded as most efficient. AMC7315 is described as a resistor that varies the resistance aiming for constant current.


TODO
====