Wonder why it’s not working for you? Have you tried bypassing the resistor? I’m sure what ever TK comes up with will be much more elegant that what I have.
I am using JCs dual switch firmware. I did use this once before without issue in a 12V setup and it was fine. However not so much today.
I flashed a FET driver with it today and changed only the modes and turbo time length. But the driver will randomly change modes. Always in the upward direction. It can be sitting still on the work bench on low for example, and in a few seconds will jump to the next mode or possibly even bounce a couple in a row.
Other than that it works perfectly. Stays in the same mode when power is disconnected, and switches like normal when the e switch pin is grounded ( I just touch the wire to ground for now there is not actual switch).
At first I thought bad connection so I redid them all. This did not effect it at all so I thought bad driver. Nope. New driver same exact result.
I have tried to slim the firmware down, removing extra parts of the temp mon code and the low_to_high (as we can go either way with the switch) then got carried away adding features I’d like and Attiny25 support.
I will try and get a slimmed down version with just modes and for an Attiny13A
EDIT:
Lightweight version here
I will test later tonight confirm it works.
Was the original version of the firmware working before you changed it? In other words, did you try flashing the original unmodified version of the firmware and test that before you modified it and re-flashed it? And if so when you tested the unmodified version did that work?
If so, try re-flashing with the unmodified version again and see if it works again.
If not, then maybe there’s something wrong or incompatible with the original version?
Still not 100% I’ve got rid of extra bits and the turn off function works beautifully but when you unplug and try to turn it back on sometimes it will shut off after a second but if left for 6 ish seconds it works perfectly just need to get the turn back on function tweaked. I’ve just been really busy with work this week and trying to get some outstanding builds done. (Red S2+, MTG2 Mag and MTG2 MT40) I’ll keep playing with it after the weekend.
Looks fine to me, a GUI wrapper for avrdude. I can’t really say much about GUIs or Windows or OSX though, since I don’t use them. Perhaps someone else has thoughts? Does AVR Studio have avrdude stuff built in?
My typical development session looks about like this:
tk @ home : ~/> cd src/torches/sandbox/ToyKeeper/foo
tk @ home : foo/> gvim foo.c
tk @ home : foo/> ../../bin/build.sh foo
tk @ home : foo/> ../../bin/flash.sh foo.hex
tk @ home : foo/> ../../bin/build.sh foo
tk @ home : foo/> ../../bin/flash.sh foo.hex
tk @ home : foo/> ../../bin/build.sh foo
tk @ home : foo/> ../../bin/flash.sh foo.hex
...
Except I don’t have to type most of that. The tab key auto-completes a lot of things, and the repeated commands at the end are simply “up, up, enter”. And I left out the revision control commands, but I recommend using bzr or git if you want to do much serious development.
Does anyone know if there is firmware that works similar to the FT NANJGs, i.e., where you can switch between one of 2 mode groups via clicking in low mode and which would work with a single FET driver with PWM on pin 6 on an ATTINY13A:
Group 1: Low - Medium - High
Group 2: Low - Medium - High - Strobe - SOS
Also, where it’d be fairly easy to modify the modes in the mode groups in the source.
Basically, I want to have a UI in a ATTINY13A-based FET driver that mimics the FT NANJGs, but where I’d probably add a moonlight to both mode groups.