Page 1 of 2

ECIO40 ADC TO LCD 4 LINES

Posted: Tue Nov 26, 2013 8:55 pm
by ALOPEZ
Hello, I'm trying to show ANO to lcd.
The simulation runs perfect, but real hardware just show me up to 2.495213V insted of 5V.
I use a 22k potenciometer connected to gnd and Vdd out. I read with multimeter AN0 and voltage goes from 0 to 5v, but in lcd jut I read up to 2,5V.
Vref votlage=0
vref optin=Vdd
conversion speed= fosc/64
aquisition cycles=1
Also I put ANO directly to VDD and then result is about 0.000V
Could you help me?

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Tue Nov 26, 2013 9:02 pm
by medelec35
Hi ALOPEZ,
Welcome to the forums.

It will help us if you can post a flowchart, so we maybe able to help you.
ALOPEZ wrote: Vref votlage=0
Vref is normally in millivolts.
If using VDD as Vref then Vref = 500

Martin

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 9:07 am
by ALOPEZ
thanks for you fast answer.
I'd try to attach a picture of hardware and also the fcfx file, but I can't find any bottom to attach files.
How I should do?
thanks

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 9:16 am
by ALOPEZ
hello medelec,
Thanks for you superfast answer.
I wanna attach files to the forum but I can't find the bottom to attach files.
how should I do?
thanks

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 11:12 am
by Benj
Hello,

When you click post reply there is a section underneath the main text entry window with an upload attachment tab. Click this and then click Browse to select which file to upload. Click the Add the file button to upload and the insert in line to insert the attachment into the text of the post.

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 1:01 pm
by ALOPEZ
thanks for the patience.
here you have the proyect. I'll try to send a picture of hardware configuration in 250kb
thanks

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 1:04 pm
by ALOPEZ
here you have the hardware configuration.

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 1:23 pm
by dazz
Hi
Not quite sure what your asking, but i changed the flowchart as per martins post, and removed a raw enable call as it was already enabled flowchart attached
Regards
Dazz
energy meter_v6changed.fcfx
(10.96 KiB) Downloaded 277 times

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 3:07 pm
by ALOPEZ
Hello thanks for you fast answer.
my goal is read voltage from AN0 (0v to 5v) in the LDC screen (4 line in the picture that i send).
In the flowcode simulation runs well (I can read in the lcd from 0v to 5v), but in the hardware maximum voltage that I read is about 2,5V when AN0=5V.

I try to open you fcfx file but I have an error, please see picture attached.

Thanks for you time.

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 3:15 pm
by ALOPEZ
I don't know if is important but I'm using flowcode 6

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 3:36 pm
by Benj
Hello Alopez,

You will need to update to the latest version to open Dazz's example. The Help -> Check for updates should allow you to do this.

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 3:41 pm
by dazz
Hi
Follow what benj has said, if it still doesnt work, try the chart below, as sometimes its easier to strip out everythin but the basics etc


Regards
Dazz
basic.fcfx
(8.22 KiB) Downloaded 206 times

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 4:47 pm
by ALOPEZ
I still can't open your files with flowcode 6.0.2, see picture attach.
I guess is some issue with flowcode 6, I'll try with flowcode 5

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 4:52 pm
by ALOPEZ
here picture of version

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 4:53 pm
by medelec35
ALOPEZ wrote:I still can't open your files with flowcode 6.0.2, see picture attach.
The latest version is 6.0.3 Not 6.0.2
As Ben said, you can use Help menu, Check for updates.

Note: V6.0.4 is due to be released any day now.

Martin

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 4:55 pm
by dazz
Hi alopez
Ok i just tried the first chart i attached on hardware and its working fine
the chart i posted works fine, have you updated flowcode yet as we are on v6.3

Regards
Dazz

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 5:24 pm
by ALOPEZ
UMMMMMMMMM.....
where I have to donwload V 6.0.3?
From flowcode update menu I'm going to website where just I can get 6.0.2. see picture.
VERSION.gif
VERSION.gif (52.72 KiB) Viewed 12369 times

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 5:36 pm
by ALOPEZ
Come on, is just a ADC conversion, whats wrong in the hardware?
I should be easy.

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 5:38 pm
by ALOPEZ
please find attach. simple software and adc config

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 5:40 pm
by ALOPEZ
potenciometer is 22k

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 5:45 pm
by dazz
Hi
Try the following,as you cant open my charts ive added an image ,worls om hardware here
Regards
Dazz
Untitled.jpg
(60.11 KiB) Downloaded 1984 times

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 6:06 pm
by ALOPEZ
Doesn't work neither.
1-please send me the link where I can update to 6.0.3
2- how is possible that work for you with same hardware configuration?. I bought 4 ECIO40 and they are new. they are configurated in usb power supply.
3- remember simulation runs perfect is in the hardware where it fails, maximum can read is 511 instead of 1023.
Can some one help me?
thanks

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 6:12 pm
by DavidA

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 6:15 pm
by dazz
Hi
Im using a different chip as it the board i have available, can you try something for me pls, using the chart you created from my last post, can you connect 5v directly to the an0 pin, note reading then connect an0 directly to 0v and let us know the readngs, update link above in davida post, edited my to to reflect this
Regards
DAzz

Re: ECIO40 ADC TO LCD 4 LINES

Posted: Wed Nov 27, 2013 6:23 pm
by ALOPEZ
readings 0 to 1023:
5V = 15
0V= 0
2,5V=511

I try 4 new ECIO40:
first: 2,5V=511
second: 304 all the time (0V;2,5V;5V)
third: flowcode can't detected
four: same than first 2,5V=511