Thanks for the great work, Alberto.
I have a 18F2455 chip that is too small for a Pickit but your firmware fits into it nicely.
So I've put together my programmer on a piece of breadboard during the weekend and it works fine without any tweaking.
Using the software part on linux I came across some minor issues.
OPgui allows setting DC/DC voltage higher than 14 V on the I/O tab using the slider
--> as the ADC is limited to 14 V in such case the controller pushes the converter to the highest possible voltage thus potentially endangering the Q4 and the output filters caps.
OPgui exits with a segfault on normal termination and doesn't remember latest settings
--> the reason is that the $HOME/.opgui directory not writable as it is created with wrong modes
mkdir(config_dir, 0x0755); // should be 0755
also homedir shouldn't be printed on exit
printf(homedir);
OP doesn't quit if programmer wasn't found.
--> check is not strict enough
if(DeviceDetected<0) exit(1); // should be <=
Zoltan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No problem regarding the high voltage: the boost converter is not able to go past 13.5V, due to various losses, and in any case there is no damage on Q4 up to 30V at least.
I will correct the other problems, thanks.
Just one remark: permission is supposed to be octal I think, so 755 should translate to 493d or 0x1ED, right?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think it's better not let the user drive the converter into an uncontrolled mode out of your nice closed loop solution. Anyway, it's just a minor change in opgui.c
The 1 Hz blinking LED was a bit annoying for me, kind of always saying "attention, attention". I changed it to solid on by changing the bold values in this line of the hex file.
:1000B0000101005D06E12E0E0001EB5D02E3898483
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the great work, Alberto.
I have a 18F2455 chip that is too small for a Pickit but your firmware fits into it nicely.
So I've put together my programmer on a piece of breadboard during the weekend and it works fine without any tweaking.
Using the software part on linux I came across some minor issues.
OPgui allows setting DC/DC voltage higher than 14 V on the I/O tab using the slider
--> as the ADC is limited to 14 V in such case the controller pushes the converter to the highest possible voltage thus potentially endangering the Q4 and the output filters caps.
OPgui exits with a segfault on normal termination and doesn't remember latest settings
--> the reason is that the $HOME/.opgui directory not writable as it is created with wrong modes
--> check is not strict enough
Zoltan
No problem regarding the high voltage: the boost converter is not able to go past 13.5V, due to various losses, and in any case there is no damage on Q4 up to 30V at least.
I will correct the other problems, thanks.
Just one remark: permission is supposed to be octal I think, so 755 should translate to 493d or 0x1ED, right?
Yes, it's octal 755, which is 0755 = 493d = 0x1ed
I think it's better not let the user drive the converter into an uncontrolled mode out of your nice closed loop solution. Anyway, it's just a minor change in opgui.c
The 1 Hz blinking LED was a bit annoying for me, kind of always saying "attention, attention". I changed it to solid on by changing the bold values in this line of the hex file.
:1000B0000101005D06E12E0E0001EB5D02E3898483
Here is my programmer. Only the PIC HV part is implemented.