Logarithmic analogue inputs

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
gstreet
Posts: 12
Joined: Wed Jan 04, 2012 12:23 pm
Been thanked: 2 times

Logarithmic analogue inputs

Post 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

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Logarithmic analogue inputs

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

gstreet
Posts: 12
Joined: Wed Jan 04, 2012 12:23 pm
Been thanked: 2 times

Re: Logarithmic analogue inputs

Post 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

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times

Re: Logarithmic analogue inputs

Post 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
Enamul
University of Nottingham
enamul4mm@gmail.com

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Logarithmic analogue inputs

Post 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
Martin

Post Reply