Page 2 of 2
Re: Convert voltage to Neg kg
Posted: Tue Feb 21, 2012 1:16 pm
by medelec35
Desdewit wrote:Hi Martin
Sorry for the inconvenience.
I had an IO error on my side “Idiot Operator", I've loaded the wrong software version.
Hi Desdewit,
No problem bud, I would be lying if I said I’ve never done that before.
Thank you for the update.
Desdewit wrote:
The program is working just fine.
Just glad flowchart is working for you.
Desdewit wrote:
At last now I can buy flowcode 5
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Flowcode 5 is a Fantastic product and well worth getting. Once you start using it you won’t look back.
Martin
Re: Convert voltage to Neg kg
Posted: Tue Feb 21, 2012 5:41 pm
by Desdewit
Hi Martin
I'm storing the calibration values to eeprom so I don't have to re-calibrate the scale every time I switch it on.
Can you please tell me where the zero value are stored so I can save it to eeprom like the span?
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Re: Convert voltage to Neg kg
Posted: Tue Feb 21, 2012 6:13 pm
by medelec35
All I did was to subtract the zero from the span:
If you want to see there all variable are stored/calculated then best to un-tick Hide annotations (view, Project options).
Press F8 key, then make sure all variables are added to variable window.
I have mapped the keys in flowchart I have posted.
so:
Zero = 0
Span = 1
Calibrate = 2
So if you press key 1 on keyboard you will see the Span switch activate.
You can hold the key down and single step at the same time.
Re: Convert voltage to Neg kg
Posted: Tue Feb 28, 2012 7:12 pm
by Desdewit
Hi Martin
At last I completed my project but not without one last problem.
I've tested the software with a pic16f877& 876 and it worked without a problem, BUT when I loaded it on the "compatable"16f887
![Mad :x](./images/smilies/icon_mad.gif)
" the software only works up to where the A to D should start reading then the pic stops responding.
The code works fine with the simulator and 16f877&76
Is there a different way to setup the AtoD on a pic16f887 in flowcode?