Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

LCD arduino printing issue

Status
Not open for further replies.

gayathrim

Junior Member level 3
Joined
May 13, 2019
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
253
hi,
i have a counter printing values from 0 to 360, with a 0.1 increment in each loop count. however, after a specific value(232), instead of 232.10, the lcd prints 232.11 232.21 232.31 etc.. i tried printing a "0" at the particular position, but doesn't seem to work. can anyone explain why? thanks in advance.
 

You would have to show us your software to be sure but it could be a rounding error due to the math routines or the binary representation of decimal numbers.

Brian.
 
Hi,

I'd use a 16 bit (integer) counter from 0 to 3599.
Each LSB representing 0.1.
Then just set the decimal point at the correct place.

Klaus
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top