Go Back   IceInSpace > Equipment > Astrophotography and Imaging Equipment and Discussions
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread
  #721  
Old 20-03-2017, 03:45 AM
gehelem (Gilles)
Registered User

gehelem is offline
 
Join Date: Sep 2016
Location: Rambouillet - France
Posts: 112
@Luka (again...) "Do you want me to add other functions to it or to the firmware? For example, some parameters can be only set but not read."
=> yes, Cooler min, cooler max, and Pk would be cool
Reply With Quote
  #722  
Old 20-03-2017, 05:37 AM
gehelem (Gilles)
Registered User

gehelem is offline
 
Join Date: Sep 2016
Location: Rambouillet - France
Posts: 112
first real result, with Kp=0.04
Blue : CCD temp
Orange : cooler %
Target = 0°C
Attached Thumbnails
Click for full-size image (Screen Shot 03-19-17 at 08.35 PM.PNG)
27.3 KB42 views
Reply With Quote
  #723  
Old 20-03-2017, 05:39 AM
pat30 (Patrice)
Registered User

pat30 is offline
 
Join Date: Oct 2016
Location: France
Posts: 120
Luka, forget my tests yesterday, my temperature probe had a broken pin !

Great job Gilles
Reply With Quote
  #724  
Old 20-03-2017, 06:21 AM
gehelem (Gilles)
Registered User

gehelem is offline
 
Join Date: Sep 2016
Location: Rambouillet - France
Posts: 112
Same test (target = 0°C) but with Kp=0.1
Obiously, looks like we expected...( bigger overshoot), oscillations, and so on...
Kp parameter works quite well so far !
Thanks again
Attached Thumbnails
Click for full-size image (Screen Shot 03-19-17 at 09.18 PM.jpg)
110.4 KB25 views
Reply With Quote
  #725  
Old 20-03-2017, 06:52 AM
gehelem (Gilles)
Registered User

gehelem is offline
 
Join Date: Sep 2016
Location: Rambouillet - France
Posts: 112
i like this one, target = -10°C Kp = 0.3
Attached Thumbnails
Click for full-size image (Screen Shot 03-19-17 at 09.51 PM.PNG)
29.4 KB30 views
Reply With Quote
  #726  
Old 20-03-2017, 07:15 AM
gehelem (Gilles)
Registered User

gehelem is offline
 
Join Date: Sep 2016
Location: Rambouillet - France
Posts: 112
And one last, target = -12°C Kp=1 just to have fun
Attached Thumbnails
Click for full-size image (Screen Shot 03-19-17 at 10.14 PM.PNG)
29.3 KB25 views
Click for full-size image (Screen Shot 03-19-17 at 10.43 PM.PNG)
27.6 KB28 views

Last edited by gehelem; 20-03-2017 at 07:43 AM.
Reply With Quote
  #727  
Old 21-03-2017, 02:07 AM
luka's Avatar
luka
Unregistered User

luka is offline
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 1,164
Quote:
Originally Posted by gehelem View Post
@Luka (again...) "Do you want me to add other functions to it or to the firmware? For example, some parameters can be only set but not read."
=> yes, Cooler min, cooler max, and Pk would be cool
Done. See folder "source code/luka/Gilles" which has the new firmware (v0.5L), low level driver (0.9L) as DLL and the source code for it.
It has not been tested so let me know if there are issues.

Great work with testing the Kp gain. Seeing your graphs we could probably introduce the integral (and derivative?) terms as well, they may reduce the settling time.
Reply With Quote
  #728  
Old 21-03-2017, 06:08 AM
gehelem (Gilles)
Registered User

gehelem is offline
 
Join Date: Sep 2016
Location: Rambouillet - France
Posts: 112
Quote:
Originally Posted by luka View Post
Done. See folder "source code/luka/Gilles" which has the new firmware (v0.5L), low level driver (0.9L) as DLL and the source code for it.
It has not been tested so let me know if there are issues.

Great work with testing the Kp gain. Seeing your graphs we could probably introduce the integral (and derivative?) terms as well, they may reduce the settling time.
Thank you
What should i say ? the more we do the better it is ! But i think it's time to release ;-) Many other are waiting "official birth" of this new driver... Do with your time, thank again.

I'll try it tonight, but i realized that if Delphi is usefull to push button, Excel is much better to make nice graphs.
What is provided with Excel ?? what ? VBA !!!
it works !
Simple macro, with relevant code to import dll functions, and baaaaam, you drive your cam with Excel
I'm playing with it atm, will soon share my Woorbook with macro (just need to copy/paste cam86ll.dll under same folder)
Attached Thumbnails
Click for full-size image (Screen Shot 03-20-17 at 09.15 PM.jpg)
88.5 KB31 views

Last edited by gehelem; 21-03-2017 at 06:41 AM.
Reply With Quote
  #729  
Old 21-03-2017, 08:35 AM
gehelem (Gilles)
Registered User

gehelem is offline
 
Join Date: Sep 2016
Location: Rambouillet - France
Posts: 112
And here a real run, 4 tests of different Kp, 4x1800secs, target = 10°C starting from 13°C
Not very ambitious, it's just to play with my macro...
Will make bigger/longer ones tomorrow
First screenshot Cooler %, second is T° variation

Edit : tested new functions
I have problems with Kp : returned value is not equal to the one i set
I need to investigate, I will certainly have to tweak dll type declarations (double/single/...)
Attached Thumbnails
Click for full-size image (Screen Shot 03-20-17 at 11.34 PM.PNG)
41.5 KB31 views
Click for full-size image (Screen Shot 03-20-17 at 11.31 PM.PNG)
38.0 KB28 views

Last edited by gehelem; 21-03-2017 at 08:52 AM.
Reply With Quote
  #730  
Old 21-03-2017, 09:00 AM
luka's Avatar
luka
Unregistered User

luka is offline
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 1,164
I was kind of expecting KP to possibly be a problem since Pat mentioned slower cooling.
Can you send me the spreadsheet or list here few set-get values.

edit:
Forgot to say, great idea with the Excel, I would have never thought about it. I was actually about to suggest to use Visual Studio as it has inbuilt graphing functions but Excel and VBA is probably 100x quicker

Last edited by luka; 21-03-2017 at 09:25 AM.
Reply With Quote
  #731  
Old 21-03-2017, 11:21 AM
wasyoungonce's Avatar
wasyoungonce (Brendan)
Certified Village Idiot

wasyoungonce is offline
 
Join Date: Jul 2006
Location: Mexico city (Melb), Australia
Posts: 2,346
Hmm I'm a little behind everyone but here's 2PCBs.

1 has been sensor tested ok the other, just received the SIl sockets so it'll be soon.
Attached Thumbnails
Click for full-size image (IMG_3291-small.jpg)
176.2 KB74 views
Reply With Quote
  #732  
Old 21-03-2017, 02:24 PM
luka's Avatar
luka
Unregistered User

luka is offline
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 1,164
Excellent work Brendan

Regarding testing of the camera with missing sensor, here is an interesting observation I made last night:
I pulled out my 2nd board to do TEC testing and noticed that the 5V regulator was hotter than the 3.3V regulator, unlike my 1st board. After a while I realised that it did not have a sensor and after inserting it the 5V regulator got cooler than the 3.3V regulator, as it should be.

Interestingly the total power consumption was 210mA with a sensor and 190mA without a sensor. However, although the total current was less, the heat production was higher without the sensor, especially on the 5V regulator, like the power "got redirected" to a "wrong" place heating components that are usually not that hot.
Reply With Quote
  #733  
Old 21-03-2017, 02:51 PM
wasyoungonce's Avatar
wasyoungonce (Brendan)
Certified Village Idiot

wasyoungonce is offline
 
Join Date: Jul 2006
Location: Mexico city (Melb), Australia
Posts: 2,346
When I had some bad solder joins on PCB2 it was pulling more current than normal, around 220mA. Fixing the joints lowered the current draw. Go figure. Pretty sure this was the 5V line as well.

I also noted when doing tests, when the camera was running ok on camview the I draw was ~ 130~170mA. But when camview mucked up, you know thru the software "disconnect" and "re-connect" the I draw was higher. Also not consistent.

Sorry I have my values at home, I recorded them. Using constant voltage supply with current limit so monitoring current is easy.
Reply With Quote
  #734  
Old 21-03-2017, 03:12 PM
luka's Avatar
luka
Unregistered User

luka is offline
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 1,164
Another intersting fact, Ryan is finishing his electronics and only a few capacitors were missing. The board was pulling 600mA and was getting hot. The voltages were very unstable. After some of the capacitors were installed the board started working properly.
Clearly the switchmode component of the circuit does not work properly without the capacitors. A bad capacitor could probably have similar effect...

The moral of the story: get all parts in before starting troubleshooting
Reply With Quote
  #735  
Old 21-03-2017, 03:34 PM
luka's Avatar
luka
Unregistered User

luka is offline
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 1,164
There is a bug in Kp parameter, there is a "magical" factor of 4 coming from somewhere
Working on it...
Reply With Quote
  #736  
Old 21-03-2017, 03:41 PM
rsevs3 (Ryan)
Registered User

rsevs3 is offline
 
Join Date: Feb 2017
Location: Perth
Posts: 10
Quote:
Originally Posted by luka View Post
The moral of the story: get all parts in before starting troubleshooting
Thats easy to say when you have all the parts already

I also saw a significant decrease in temp of the 3.3 and 5v regs when I put an electrolytic in for C17. There are some very odd power quirks with this board
Reply With Quote
  #737  
Old 21-03-2017, 06:03 PM
gehelem (Gilles)
Registered User

gehelem is offline
 
Join Date: Sep 2016
Location: Rambouillet - France
Posts: 112
Quote:
Originally Posted by luka View Post
There is a bug in Kp parameter, there is a "magical" factor of 4 coming from somewhere
Working on it...
I can't confirm at the moment, but i think it is what i saw yesterday
Reply With Quote
  #738  
Old 21-03-2017, 11:51 PM
luka's Avatar
luka
Unregistered User

luka is offline
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 1,164


Seriously annoyed by the ATmega compiler

Wasted over 6h today chasing compiler bugs. It cannot convert floating point to integer properly. For example:
Quote:
float x = 0.04*1000.0
equals 40.0 while
Quote:
float a = 0.04;
float x = a * 1000.0
equals 10.0
:bash comp:


Anyway, it should be working now, Gilles check the same spot on GD. There is also a skeleton c# program (cam86_PID_tuning) that I used for testing of the DLL and firmware for reading/setting of Kp.

Also is it possible to test if this firmware has the same cooling speed as the old one, 0.3L (default Kp = 0.04). Pat mentioned that it was slower. Even just timing one point after 1min should be enough if other parameters are the same.


Hold, on, I forgot:
:bash comp:



edit: And there are even bugs in the IIS computer bashing person
Reply With Quote
  #739  
Old 22-03-2017, 06:02 AM
pat30 (Patrice)
Registered User

pat30 is offline
 
Join Date: Oct 2016
Location: France
Posts: 120
Luka, do not get excited like that, it's not good for the heart

Beware of my last test, my temperature probe was HS, it was not working !

Last edited by pat30; 22-03-2017 at 02:40 PM.
Reply With Quote
  #740  
Old 22-03-2017, 07:05 AM
gehelem (Gilles)
Registered User

gehelem is offline
 
Join Date: Sep 2016
Location: Rambouillet - France
Posts: 112
Quote:
Originally Posted by luka View Post


Seriously annoyed by the ATmega compiler

Wasted over 6h today chasing compiler bugs. It cannot convert floating point to integer properly. For example:
equals 40.0 while
equals 10.0
:bash comp:

Anyway, it should be working now, Gilles check the same spot on GD. There is also a skeleton c# program (cam86_PID_tuning) that I used for testing of the DLL and firmware for reading/setting of Kp.

Also is it possible to test if this firmware has the same cooling speed as the old one, 0.3L (default Kp = 0.04). Pat mentioned that it was slower. Even just timing one point after 1min should be enough if other parameters are the same.

Hold, on, I forgot:
:bash comp:

edit: And there are even bugs in the IIS computer bashing person


Quick test, comparison of previous and actual dll/firmware
=> it's much better (see attachment), thank you.

Edit : btw, are you using codevisionAVR compiler as Rome suggested ? did you try with avrgcc ?
Attached Thumbnails
Click for full-size image (Screen Shot 03-21-17 at 10.05 PM.PNG)
12.3 KB33 views

Last edited by gehelem; 22-03-2017 at 07:55 AM.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time is now 09:46 AM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Advertisement
Bintel
Advertisement