Both those will work, they are both the cheapest (and most likely to break quickest) versions, but if you're going to flash a handful of drivers you probably don't need anything more expensive
.
However, it probably won't be a direct connection; you will need to change which pin on the clip each wire from the programmer connects to. To do this, find the pinout of the programmer (all similar AVR programmers will have the same pinout) and match it to the pinout of the attiny13 (and hence the clip). Depending on how the wires are connected to the clip you might need to desolder/solder but someone who’s done this already can better advise.
Welcome to BLF, Benik3! From those pictures I can't tell for sure whether it is an Atmel chip or not. My guess is that it is not. But I have never gotten that driver.
i´m new in this forum and i would like to ask which programmer tido is using or which one is the best bang for the buck. most of the time it would be used for attiny 13 and atmega 8 programming.
check post #266 for cheap programmer and clip. I bought both of them a couple of days ago and will take pictures and let you guys know how the clip fits when they come.
What you want to do is both straight forward - and not!
You have to modify the file driver.c in Tido's package BLF-VLD-0.4.zip
The first thing to do is define the 4 modes and insert them in the setup:
line #39:
#define NUM_MODES 4 // how many modes should the flashlight have (1-5)
line #192-193:
// initial mode programming, indices to modelines in the following array
0x05, 0x06, 0x07, 0x08, 0x00, // your levels are at index 5,6,7,8
line #108 (activate nomemory as you don't want to have memory):
#define NOMEMORY
The function should now be:
1. The light will allways start in 4% mode.
2. A short tap on the switch will switch to next mode, but if the light has been in a mode for more than 2 sec it is necessary to start the timing first by tapping once. (This can be avoided by using what is called pin-switch in the program, but this demands the mounting of 3 components on the driver).
The file should now be compiled from the SIMPLE directory (after unfolding BLF-VLD-0.4.zip).
It will be necessary to have AVC compiler installed, look for this elsewhere in the thread. Furthermore you must have the programming equipment which can be hard to get running (bad connections) and of course a driver with Atmel ATtiny13.
I can have overlooked something so I can give no guarantee that this will work, but good luck.
A very easy solution is to replace the Tiny13 with a Tiny 85... it has 8K of code you can bloat in. Life's too short to waste time squuezing bytes these days. It does take some tiny soldering skills to do, but is easily manageable.
Generally, the Tiny85 PWM and peripherals are compatible with the Tiny13. One difference is the Tiny85 internal RC oscillator runs at 8 MHz (vs 9.6 MHz for the Tiny13). Should not be a problem.
I converted my driver for the 5000/9000 lumen Bridgelux arrays (yep, my flashlight is brighter than yours ) from a Tiny13A to a Tiny85 and all I had to do was recompile the code with the Tiny85 processor type flag. There are a lot of enhancements in the Tiny85 that you can take advantage of if you want.
I got couple of 101-AK:s from SB to take my shot in the flashlight programming. Still waiting for the SOIC8 clip. The right two legs of my drivers are bridged, just like explained in flashlight-wiki (to set to 3 modes from 5 modes). Do I need to un-bridge (separate) the legs before attempting to flash?