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: 8925
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: Convert voltage to Neg kg

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

Desdewit
Posts: 130
Joined: Sat Feb 26, 2011 4:26 am
Location: South Africa
Contact:

Re: Convert voltage to Neg kg

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

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8925
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: Convert voltage to Neg kg

Post by medelec35 »

All I did was to subtract the zero from the span:
Span calculation.png
(12.61 KiB) Downloaded 2453 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

Desdewit
Posts: 130
Joined: Sat Feb 26, 2011 4:26 am
Location: South Africa
Contact:

Re: Convert voltage to Neg kg

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

Post Reply