Help Support Candle Power Flashlight Forum
I didn't mean to sound terse. Not at all. I just want to support my customers they way I'd like to be supported after a sale. I want to provide a quality product. If there is indeed something amiss. I will make it right.Jimmy, I wasn't complaining, I was just providing feedback in case it would help you. I like your regulator so much, I'm about to order 2 more. I will put specs in the paypal message.
287/289 = Mucho Dinero
but NICE
You're right. the 189 rules. However, I still want the 287/289
Mmmmmm So Pretty - and useful too.
Bragger! 🙂. There's no debating that the 189 is super capable. But the 287/289 is just so cool. QVGA screen.:naughty:I have one of each, 189 and 289. The 189 is smaller, lighter, and does the AC+DC as good as the 289, so you are not missing anything with the 187/189 😉
Don't get me wrong. If I had them both, I'd brag. 😀Not bragging, but trying to make you guys feel better in that you really don't gain anything "significant" going to the 28x series. The 18x is the bomb 🙂
I've sent petrev a slightly updated firmware for testing which prevents any overshoot other than the +1 pwm count as part of regulation.I have also noticed that my 189 reads high momentarily as the regulator ramps up. This is with different code than Jim's, and this code does not overshoot, so I suspect it is a characteristic of the way the meter reads. It settles down to the right value right away, just one or maybe two readings a bit higher.
I have also noticed that my 189 reads high momentarily as the regulator ramps up. This is with different code than Jim's, and this code does not overshoot, so I suspect it is a characteristic of the way the meter reads. It settles down to the right value right away, just one or maybe two readings a bit higher.
My problem is probably that the 10Hr LuxLuthor point may be a bit too close after all and I have tried the 64625 at the 20Hr 13.00V setting and all is fine.
How to: Load New Software to your PhD
Requires Atmel AVRISP-mkII - (Hardware inc. AVR-Studio 4 and USB driver)
InstallAVRStudio - Install USB Driver during AVRStudio install
Only after AVRStudio is installed should you Plug AVRISP-mkII to USB cable
.
To compile your code, you need WinAVR.
WinAVR can be found here http://sourceforge.net/project/showfiles.php?group_id=68108
Download and install it. I just put the install folder in the root of my C drive - this is the default.
When given the option, let it add entries to your windows PATH.
Then, when you start AVRStudio it will find the WinAVR directory.
.
Create a new Windows ProjectFolder for your new PhD project.
Download Updated RegulatorSource.c file from JimmyM, AlanB, wquilles (etc?)
Copy to your ProjectFolder
.
Plug - Connect AVRISP-mkII to computer connected USB cable.
.
Run AVRStudio ( Version Used – AVR-Studio 4.16)
First Run – With AVRISP connected should detect any AVRISP Firmware updates required and you can install update.
Welcome Screen Opens –
- Click New Project (subsequent re-programming - select Recent Project from list – Click Next)
Create New Project Panel –
- Select "AVR GCC" and Give your project a ProjectName. – Un-Tick :- Create Initial File Box
- Set the Location: to the ProjectFolder you created.
- Click Next.
Select Debug Platform and Device Panel –
- Select AVR Simulator
- Select the ATtiny44 (JM-PhD) or ATtiny45 (AlanB-PhD) in the right hand pane.
- Click Finish.
AVR-Studio - Project Window Loads
- AVR-GCC Navigation (left window) Right-Click "Source files" Folder and select Add Existing Source file.
- Select your RegulatorSource.c file.
- Double Click the RegulatorSource.c file in the "Source Files" to open up the code editor window.
.
Plug – Connect AVRISP-mkII to computer connected USB cable if not already attached.
.
Upgrade AVRISP Firmware (if not already done)
From the main menu at the top, select Tools ->Program AVR ->Connect.
In the Connect window select the AVRISP mkII, the Port should be USB.
After you click Connect another window will appear.
In the HW Settings Tab, click Upgrade at the bottom.
Another window will appear.
Click Start Upgrade. Little LEDs Flash . . .When Prompted : Remove and Re-Connect USB to AVRISP-mkII
.
Connect PhD via ribbon cable and then power-up PhD (Never connect/disconnect ribbon cable with power applied)
.
Compile
- Make Changes (eg. User Options) to the source code file (RegulatorSource.c) in the code editor window
- Save Changes - File –>Save (or Control-S) - Compile the program with Build –>Build
- Review the messages in the Build window for errors and warnings
- If anything needs fixing return to the Make Changes step
Electronic Connect
- Bring up the Programmer with Tools –>Program AVR –>Auto Connect or the AVR Button
On the Main Tab (the first time, does not need to be done each time unless programming multiple PhD versions)
- ensure ATtiny44 (JM-PhD) or ATtiny45(AlanB-PhD) is selected
- ensure ISP Mode is selected
- under Settings ISP Frequency default should be 125 khz
- click "Read Signature" to verify the connection to the target board
Upload Program
- On the Program Tab; in the ELF sub-window,
- select the input ELF file (eg. ../Default/ProjectName.elf - required first time only)
- click the ELF –> Program button to program the PhD !!!!!
- review the log messages - if there are errors
-- ensure CPU type is the same in both Project Configuration and in the Programmer-Main Tab
.
Remove Power from the PhD and then remove ribbon cable – Reassemble your Super Regulated-Mag. e&oe
I don't see where the C program was compiled to produce the binary. Nor where the binary was selected and loaded to the target AVR in the regulator. The Upgrade button upgrades the AVR ISP programmer itself (as I recall). It doesn't load code to the target AVR.
Perhaps there are some changes in the newer program, my version is a little older than present ones.