Please download/unzip the file: AVRDudeCommands.zip for the BAT files for AVRDude.
Here's the excerpt from the source code in Narsil.c from the comment header:
* FUSES
* See this for fuse settings:
* http://www.engbedded.com/cgi-bin/fcx.cgi?P_PREV=ATtiny85&P=ATtiny85&M_LOW_0x3F=0x22&M_HIGH_0x07=0x07&M_HIGH_0x20=0x00&B_SPIEN=P&B_SUT0=P&B_CKSEL3=P&B_CKSEL2=P&B_CKSEL0=P&V_LOW=E2&V_HIGH=DE&V_EXTENDED=FF&O_HEX=Apply+values
*
* Following is the command options for the fuses used for BOD enabled (Brown-Out Detection), recommended:
* -Ulfuse:w:0xe2:m -Uhfuse:w:0xde:m -Uefuse:w:0xff:m
* or BOD disabled:
* -Ulfuse:w:0xe2:m -Uhfuse:w:0xdf:m -Uefuse:w:0xff:m
*
* Low: 0xE2 - 8 MHz CPU without a divider, 15.67kHz phase-correct PWM
* High: 0xDE - enable serial prog/dnld, BOD enabled (or 0xDF for no BOD)
* Extra: 0xFF - self programming not enabled
*
* --> Note: BOD enabled fixes lockups intermittently occurring on power up fluctuations, but adds slightly to parasitic drain
I never saw or heard of a problem like this that wasn't fuse settings. I can try downloading from the share, rebuild, and test it if you'd like. What driver are you using? What specific 7135 and FET?
I think it does not accept the preprocessor and other configs files, as I made a new project with just the narsil.c file
I learned a lot last 2 days getting into Amtel a bit, so i tried to compile your 3*7135 version
Compiling the whole project gives me an error in Amtel 5 that some tool is missing
Opening the Narsil triple v1.3 solution I need a newer version of Amtel studio than my 5.1
I have version 7 now installed and try to generate a new Narsil triple.hex
Got a compile switch in there now to enable/disable the double blink - might have been left turned OFF when I posted the source code. Interesting, but good news.
I have read the datasheet and articles people using it for an temperature measurement
but that doesnt help me getting a value out of my MCUs like the –2, –8, –11 offset values that are desribed in narsil triple to calibrate the sensor to room temperature
I need practical instructions how to get the offset value out of my chip using amtel Studio 7 or another programm
If you are an expert in programming you can easily do this but i have almost no programming expirience, if they would write the datasheet in chineese that would help me as much as the english one, even if i understand nothing for chineese one
I know how to get data in the chip flashing
but getting real time data out of the attiny is a whole different thing
Ohh, ok. I was confused in what you were asking for (might still be). I'm thinking you are asking how to go about calibrating the temperature readings? If so:
To get a close to accurate temp calibration, I'd start trying with -2 for TEMP_CAL_OFFSET, so remove the "//" from the #define TEMP_CAL_OFFSET (-2) line and add the leading "//" on the #define TEMP_CAL_OFFSET (-11) line. Only one should be uncommented (no "//"), the other two should be commented out (i.e. leading "//").
Unfortunately you would have to assemble the light now, then give it time to settle to room temperature, then in ramping, triple-click, then double-click to get into temperature reading mode. If it blinks out room temp in Celsius close to accurate, you are good to go. If not, say for example it blinks out 26(C) when the actual room temp is 21C, then it's reading 5 too high, therefor the -2 offset should be changed to -7. Of course to make this change, you'd have to dis-assemble the light, make the change in the source code, re-compile/link and download -- then re-check the temp. Again, if the light had been used and heated up, it will take some time for it to settle back to room temp. I really need to make this settable in the UI some how..
Maybe, not sure, but you might be able to do this open on the bench - I haven't tried it this way, but would think it would be work ok. This would save the PIA assembly/dis-assembly steps. Some lights are easier than others - the SupFire M6 is great for quick programming because of the driver retaining ring, and extra long wires you need anyway - no soldering, just like the Q8 will be .