Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - How can I make another scale?

(you are viewing a thread; or go back to list of threads)

How can I make another scale? (by marzook)
Analog scale of 0 through 1023

I want to scale from - 0 to 127
All Analog change - change from - 0 to 127

How to do it?
Thanks
Tue Jan 19 2010, 13:07:53
(no subject) (by Jonathan Westhues)
The processors have 10-bit ADCs, so that's what they natively do. (They also have a mode where it's easy to get the top 8 bits, but that doesn't help you here.)

So just divide by 8.
Tue Jan 19 2010, 13:51:25
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):