Convert voltage to Neg kg

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8475
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2433 times
Been thanked: 3485 times
Contact:

Re: Convert voltage to Neg kg

Postby medelec35 » Tue Feb 21, 2012 1:16 pm

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. :oops:

Hi Desdewit,
No problem bud, I would be lying if I said I’ve never done that before. :P
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 :D

Flowcode 5 is a Fantastic product and well worth getting. Once you start using it you won’t look back.

Martin
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Desdewit
Posts: 130
Joined: Sat Feb 26, 2011 4:26 am
Location: South Africa
Has thanked: 25 times
Been thanked: 11 times
Contact:

Re: Convert voltage to Neg kg

Postby Desdewit » Tue Feb 21, 2012 5:41 pm

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? :D

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8475
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2433 times
Been thanked: 3485 times
Contact:

Re: Convert voltage to Neg kg

Postby medelec35 » Tue Feb 21, 2012 6:13 pm

All I did was to subtract the zero from the span:
Span calculation.png
Span calculation.png (12.61 KiB) Viewed 2357 times

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.
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Desdewit
Posts: 130
Joined: Sat Feb 26, 2011 4:26 am
Location: South Africa
Has thanked: 25 times
Been thanked: 11 times
Contact:

Re: Convert voltage to Neg kg

Postby Desdewit » Tue Feb 28, 2012 7:12 pm

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 :x " 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?