abvgdee
Newly Enlightened
- Joined
- Jun 25, 2014
- Messages
- 49
UPD: Jan 15 2018: heavily edited. Now this post is essentially a copy of my page: https://cantorbl.sourceforge.io
Cantor - beamshot octave scripts and bike light driver
----------
Beamshot octave scripts
Light intensity distribution (LID) of a lamp can be measured by taking wall/ceiling beamshots with a digital camera. The scripts process jpgs images (that have to be processed from raw data) and visualize the LID nicely. See example gallery.
Taking "Cantor" beamshots is a how-to get beamshots simulation images fast. Not quite "for dummies", but I tried to make it.
Comparison with real goniometer measurements (Olaf Schultz database) - pretty good match.
Simulation comments describes some more technical aspects, like need for HDR, camera calibration. Some formulas also given. The section Raw vs. Blackbox there shows (also visually) why you should not trust your camera and use raw files, at least for measurements.
----------
Driver
Linear, using AMC7135 and Atmel AVR ATtiny45, Li-Ion battery powered. The firmware provides convenient control - bikelight-specific.
-----
Control
Two external buttons - "left" and "right" (one is clearly not enough, and more buttons would make control difficult when groping for buttons, especially in mittens in winter). One low-power info-LED. Each driver drives (only) one power LED. There are three flavors of the firmware, for Far-beam, Near-beam, and High-beam lights.
Example photo where I placed buttons and info-LEDs on my handle bar.
Convenient, bike-light-specific (not a tactical-light) control.
-----
Driver board
Drivers for Far/Near/High are identical, just some differences in firmware. The printed circuit board (PCB) can house up to 8 AMC7135 (~2.8А), they are all located on one side for efficient cooling. Micro-controller is on the other side - to measure temperature of the power LED. Board diameter is 24mm. Power is 1S Li-Ion (2.7-4.2V). Boards were factory-fabricated and are available for sale.
More on PCB. There's also the (simple) circuit diagram there.
Firmware source code - for avr-gcc is opened.
----------
How I use it
All (four) lights below use the above driver. LIDs of (all three) headlights were measured using the above method.
I currently have 3 headlights: (1) Far-beam, reflector-based, a modified Philips Saferide 80, (2) Near-beam to remedy dark stripe artifact of the Saferide, and (3) High-beam (the last two are lens-based). They are all idependent, and can be used without any other (I often use Saferide as stand-alone tactical light).
-----
Far: Philips Saferide 80 modification
Powered by three 18650 Li-Ion cells inside the stock body (instead of 4 AA NiMH). LEDs are stock Rebels. To remove blinding artifacts, I installed a wall between the reflector halves.
More on optics: the wall and misc related notes.
More on housing: driver and battery cells.
-----
Lens-based Near + High lights
This photo is old. "Far" here is from older setup, when it was used as Far light. Now it is used upside-down as High-beam light.
I shifted lenses relative to LEDs to improve a bit the light distribution. For housings, I modified common "Magic-shine"-type headlight (Xeccon-S14T), and also М25-housing from easy2led.com. Each button is connected to both headlights (or to all three, if Saferide is connected). Info-LED - one for each headlight.
More detailed overview - optics and housing (LED+lens, PCB, external) of the lens-based lights.
-----
Brake light
Mounted on the luggage carrier:
Red LED - Cree XPE on a star, lens - oval Carclo 10003/l25. Housing - plastic container for medical pills.
More
Cantor - beamshot octave scripts and bike light driver
----------
Beamshot octave scripts
Light intensity distribution (LID) of a lamp can be measured by taking wall/ceiling beamshots with a digital camera. The scripts process jpgs images (that have to be processed from raw data) and visualize the LID nicely. See example gallery.
Taking "Cantor" beamshots is a how-to get beamshots simulation images fast. Not quite "for dummies", but I tried to make it.
Comparison with real goniometer measurements (Olaf Schultz database) - pretty good match.
Simulation comments describes some more technical aspects, like need for HDR, camera calibration. Some formulas also given. The section Raw vs. Blackbox there shows (also visually) why you should not trust your camera and use raw files, at least for measurements.
----------
Driver
Linear, using AMC7135 and Atmel AVR ATtiny45, Li-Ion battery powered. The firmware provides convenient control - bikelight-specific.
-----
Control
Two external buttons - "left" and "right" (one is clearly not enough, and more buttons would make control difficult when groping for buttons, especially in mittens in winter). One low-power info-LED. Each driver drives (only) one power LED. There are three flavors of the firmware, for Far-beam, Near-beam, and High-beam lights.
Example photo where I placed buttons and info-LEDs on my handle bar.
Convenient, bike-light-specific (not a tactical-light) control.
- Multi-tasking: can do everything simultaneously: blink the info-LED, change brightness of the power LED, handle buttons presses.
- Convenient Far/Near modes changing (e.g., to not blind oncomers). For example, press three times on left button to turn Far+High lights off - useful when approaching kids, or when riding on bumps when the Far beam rocks wildly up and down. Press three times on right button - Far+High are back on.
- For a given Far and Near tilt angles (optimal for given speed/terrain), their (Far/Near) relative brightness difference can be adjusted, to make the illumination more uniform.
- Monitors voltage level: there are many levels at which headlight will blink to indicate voltage drop.
- Monitors temperature.
- Levels can be set by the user without re-programming.
- Strobe - makes a great signal.
- Smooth light up/down.
- Key lock mode (or anti-hijack): headlight requires a password.
-----
Driver board
Drivers for Far/Near/High are identical, just some differences in firmware. The printed circuit board (PCB) can house up to 8 AMC7135 (~2.8А), they are all located on one side for efficient cooling. Micro-controller is on the other side - to measure temperature of the power LED. Board diameter is 24mm. Power is 1S Li-Ion (2.7-4.2V). Boards were factory-fabricated and are available for sale.
More on PCB. There's also the (simple) circuit diagram there.
Firmware source code - for avr-gcc is opened.
----------
How I use it
All (four) lights below use the above driver. LIDs of (all three) headlights were measured using the above method.
I currently have 3 headlights: (1) Far-beam, reflector-based, a modified Philips Saferide 80, (2) Near-beam to remedy dark stripe artifact of the Saferide, and (3) High-beam (the last two are lens-based). They are all idependent, and can be used without any other (I often use Saferide as stand-alone tactical light).
-----
Far: Philips Saferide 80 modification
Powered by three 18650 Li-Ion cells inside the stock body (instead of 4 AA NiMH). LEDs are stock Rebels. To remove blinding artifacts, I installed a wall between the reflector halves.
More on optics: the wall and misc related notes.
More on housing: driver and battery cells.
-----
Lens-based Near + High lights
This photo is old. "Far" here is from older setup, when it was used as Far light. Now it is used upside-down as High-beam light.
I shifted lenses relative to LEDs to improve a bit the light distribution. For housings, I modified common "Magic-shine"-type headlight (Xeccon-S14T), and also М25-housing from easy2led.com. Each button is connected to both headlights (or to all three, if Saferide is connected). Info-LED - one for each headlight.
More detailed overview - optics and housing (LED+lens, PCB, external) of the lens-based lights.
-----
Brake light
Mounted on the luggage carrier:
Red LED - Cree XPE on a star, lens - oval Carclo 10003/l25. Housing - plastic container for medical pills.
More
Last edited: