Page 1 of 1

Has anyone used a current sensor in Flowcode?

Posted: Mon Nov 19, 2012 6:59 pm
by Sparkoids
I'm looking at a ACS712 device that measures current being used in a circuit and wondered if anyone has any experience of this or similar devices please....


Best regards,


James Dexter :-}

Re: Has anyone used a current sensor in Flowcode?

Posted: Mon Nov 19, 2012 7:05 pm
by JohnCrow
Hi James

Have a look at my ACS 712 project

http://www.matrixmultimedia.com/mmforum ... 712#p30651

Re: Has anyone used a current sensor in Flowcode?

Posted: Wed Nov 21, 2012 5:23 pm
by Sparkoids
John Crow you never cease to amaze me sir!

It seems every single idea I have has already been done by your good self.

I have a similar board on the way via eBay and will check out your code.

Thank you John for all your projects you post in this fine forum.

Best regards,


James Dexter :-}

Re: Has anyone used a current sensor in Flowcode?

Posted: Wed Nov 21, 2012 7:02 pm
by JohnCrow
Hi James

No problem, hope the e-bay board works with my code. I would expect the device will be the same, maybe a different breakout board.

Re: Has anyone used a current sensor in Flowcode?

Posted: Thu Nov 22, 2012 2:12 pm
by Sparkoids
It lives John!

Thank you very much - I'm off to play now but without any mods I hacked together an old EBlock and here we are without your decoupling stuff that was on the board from eBay.

If anyone needs a link to the auction please let me know. It cost £5.20 with free shipping and next day delivery...

James :-}

Re: Has anyone used a current sensor in Flowcode?

Posted: Thu Nov 22, 2012 2:13 pm
by Sparkoids
Works correctly on the ECIO-28 as well.....

Re: Has anyone used a current sensor in Flowcode?

Posted: Thu Nov 22, 2012 7:38 pm
by JohnCrow
Looks like you have taken a hacksaw to that poor old e-block :cry:

Have you see these, very useful little board

http://proto-pic.co.uk/breakout-board-for-serial-db9/

Re: Has anyone used a current sensor in Flowcode?

Posted: Fri Nov 23, 2012 12:05 pm
by Sparkoids
That looks good John and I did indeed take a hacksaw to an eBlock ;-}

I've slowed down your code to sample only every 2 seconds by putting a delay in each of your three sub routines and am going to do an average on 10 samples before displaying the averaged current used to sort of slow it down if you get me!

Best regards,


James :-}

Re: Has anyone used a current sensor in Flowcode?

Posted: Fri Nov 23, 2012 4:48 pm
by Sparkoids
Got it to do the average with my array and all is well but I cannot convert my "averagevolts" variable to FloatToString$ to print it :-{

Any ideas anyone please?


Best regards,

James :-}