Page 1 of 1

Logarithmic analogue inputs

Posted: Tue Feb 26, 2013 4:04 pm
by gstreet
Hi

Anybody tried a log analogue input to linear digital? with Flowcode and PIC
thought I might try pre-loading an EEPROM with a anti-log table or a possibly a (twin table) LUT If anybody's done this before would be nice to hear from you

Gary

Re: Logarithmic analogue inputs

Posted: Tue Feb 26, 2013 7:42 pm
by medelec35
Hi Gary,
Have you read this?:
http://www.matrixmultimedia.com/mmforum ... 34&#p18772


Also What version of Flowcode have you got (V4,V5 etc)?
Is it professional, student or free version?
I need to know for moving this thread.
Programming Tips & Tricks is for posting Programming Tips & Tricks and not for starting off with a question.

Martin.

Re: Logarithmic analogue inputs

Posted: Wed Feb 27, 2013 11:16 am
by gstreet
Flowcode v5.5 Pro

Programming skill in 'C' are non existent (that why I use Flowcode, great product ) looking for any tips,tricks for this problem

Gary

Re: Logarithmic analogue inputs

Posted: Wed Feb 27, 2013 11:50 am
by Enamul
Hi
I would recommend you to use anti-log series to get the approximate value of your logarithmic input. I have did sin, cos, tan series and those worked excellent and believe antilog will work too.
BTW, are you need to use natural logarithm or 10-base logarithm? If naturral, you can follow following link
http://tedmuller.us/Math/Calculator-6'Logarithms.htm

and follow John's and my code to make something for antilog..
http://www.matrixmultimedia.com/mmforum ... 482#p34482

Re: Logarithmic analogue inputs

Posted: Wed Feb 27, 2013 8:32 pm
by medelec35
Hi Mike,
Since you’re using Flowcode V5 professional, I have moved posts to a more relevant section.
To enable you to post in this V5 section can please follow this link:
viewtopic.php?f=46&t=9958

Thank you

Martin