Nlite firmware flash and problem.

Hi guys,

I flashed my first firmware today Nlite unto a Qlite driver

I wanted to try guppy but couldn’t find the download.

See log of flash.

avrdude -p t13 -c usbasp -u -Uflash:w:nlite.hex:a -Ulfuse:w:0x75:m -Uhfuse:w:0xFF:m

PS C:\Firmwares> avrdude -p t13 -c usbasp -u -Uflash:w:nlite.hex:a -Ulfuse:w:0x75:m -Uhfuse:w:0xFF:m

avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude.exe: Device signature = 0x1e9007
avrdude.exe: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: reading input file “nlite.hex”
avrdude.exe: input file nlite.hex auto detected as Intel Hex
avrdude.exe: writing flash (524 bytes):

Writing | ################################################## | 100% 0.47s

avrdude.exe: 524 bytes of flash written
avrdude.exe: verifying flash memory against nlite.hex:
avrdude.exe: load data flash data from input file nlite.hex:
avrdude.exe: input file nlite.hex auto detected as Intel Hex
avrdude.exe: input file nlite.hex contains 524 bytes
avrdude.exe: reading on-chip flash data:

Reading | ################################################## | 100% 0.28s

avrdude.exe: verifying …
avrdude.exe: 524 bytes of flash verified
avrdude.exe: reading input file “0x75”
avrdude.exe: writing lfuse (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude.exe: 1 bytes of lfuse written
avrdude.exe: verifying lfuse memory against 0x75:
avrdude.exe: load data lfuse data from input file 0x75:
avrdude.exe: input file 0x75 contains 1 bytes
avrdude.exe: reading on-chip lfuse data:

Reading | ################################################## | 100% 0.00s

avrdude.exe: verifying …
avrdude.exe: 1 bytes of lfuse verified
avrdude.exe: reading input file “0xFF”
avrdude.exe: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.00s

avrdude.exe: 1 bytes of hfuse written
avrdude.exe: verifying hfuse memory against 0xFF:
avrdude.exe: load data hfuse data from input file 0xFF:
avrdude.exe: input file 0xFF contains 1 bytes
avrdude.exe: reading on-chip hfuse data:

Reading | ################################################## | 100% 0.00s

avrdude.exe: verifying …
avrdude.exe: 1 bytes of hfuse verified

avrdude.exe done. Thank you.

Then I soldered star 2 to ground hoping to get moonlight mode. But i don’t seem to have moonlight mode.
If I turn the light on and lightly press the tail switch i seem to have 4 modes but it never does moonlight just 1 blank mode like it’s off.
Also sometimes when I click the light to turn on it doesn’t turn on so I assume that might be moonlight or maybe something else is going on?
When I hook the driver up to my power supply I can some what replicate it with quick taps to the spring.

Did I do something wrong or miss something with Nlite flash to driver maybe?

Thanks!

Tell us more about the flashlight and emitter you are working with.

Guppydrv belongs to Dr. Jones, he sells attiny13's flashed with it on them. Also, The same place you linked for the qlite driver has the guppy firmware available on it as an option.

Compile and burn this one:

http://bazaar.launchpad.net/~toykeeper/flashlight-firmware/trunk/view/head:/JonnyC/STAR/STAR/STAR.c

I’m just using a CREE XP-L V6 3D dedomed in S2 mini.

I’m mainly using this light right now to experiment with firmwares right now. I will compile that code and put on the atiny today.

Good to know on the guppy wish he put that on his website.

I plan on putting in a Nanjg AK-47A 1amp driver with only low mode if I can figure out how to do that when I am done using this light for firmware experimentation. I need a nice bedroom light that won’t harsh my mellow. :slight_smile:

Thanks.

Well done a lot of practice flashing with this Qlite driver and I really like that star firmware very easy to make custom modes. Couldn’t get moonlight working even with my final driver build so I just left one mode Low on the Nanjg AK-47A driver and it’s a great for walking down the dark halls to the kitchen or to the bathroom perfect night time light. Maybe it’s just the led. I plan on making a convoy xml2 light for around the house with that Qlite so I’ll try again on that.

Is this firmware also the one used for FET drivers wight/RMM ones?

Trying to build some fet drivers now, have some ready to flash and try.

Thanks again for your help.