OZONE Asylum
Forums
OZONE
Need Help With a Logarithmic Function
This page's ID:
31285
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
OK, I think maybe the "degrees of rotation" in the graph I posted confused us both. Let's start again. In Excel, I created a column of numbers 0-1023. In column B, I used the formula LOG(A1+1)*0.3321928095, which gave me a logarithmic result of fractions from 0 to 1.0. (I decided on the 0-1 result so I could use it to multiply against a given value of microseconds to determine amount of delay.) What I get is the blue line on the following graph: [img]http://www.wesleytreat.com/attic/2009-09-09_graph_01.gif[/img] I think what I actually need (I say "think" because I've confused myself numerous times already) is something like the red line. The x-axis, by the way, actually goes to 1023, despite what it looks like. Luckily, I discovered a library of math functions I can use in programming the Arduino. The following is what I have available: http://www.arduino.cc/en/Reference/Mathh http://www.nongnu.org/avr-libc/user-manual/group__avr__math.html [url=http://www.roadsideresort.com/][img]http://www.wesleytreat.com/events/asylum/sig_wtlogo_events_01.gif[/img][img]http://www.wesleytreat.com/events/asylum/sig_events_01.php[/img][/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »