ECIO40 ADC TO LCD 4 LINES

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

ECIO40 ADC TO LCD 4 LINES

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

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

Re: ECIO40 ADC TO LCD 4 LINES

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

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post 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

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

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

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post by ALOPEZ »

thanks for the patience.
here you have the proyect. I'll try to send a picture of hardware configuration in 250kb
thanks
Attachments
energy meter_v6.fcfx
proyect adc to lcd
(13.74 KiB) Downloaded 223 times

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post by ALOPEZ »

here you have the hardware configuration.
Attachments
hardware.gif
hardware config
(108.97 KiB) Downloaded 2060 times

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post 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 251 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post 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.
Attachments
FAIL.png
(193.83 KiB) Downloaded 2039 times

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post by ALOPEZ »

I don't know if is important but I'm using flowcode 6

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

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

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post 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 193 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post 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

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post by ALOPEZ »

here picture of version
Attachments
Sin título.gif
(105.67 KiB) Downloaded 2022 times

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

Re: ECIO40 ADC TO LCD 4 LINES

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

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post 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
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post 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 11846 times

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post by ALOPEZ »

Come on, is just a ADC conversion, whats wrong in the hardware?
I should be easy.
Attachments
config3.gif
(159 KiB) Downloaded 2002 times

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post by ALOPEZ »

please find attach. simple software and adc config
Attachments
adc config.gif
adc config.gif (15.77 KiB) Viewed 11842 times
simple adc.fcfx
(6.26 KiB) Downloaded 118 times

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post by ALOPEZ »

potenciometer is 22k

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post 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
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post 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

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post by DavidA »


dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post 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
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

ALOPEZ
Posts: 27
Joined: Tue Nov 26, 2013 8:37 pm
Been thanked: 1 time
Contact:

Re: ECIO40 ADC TO LCD 4 LINES

Post 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

Post Reply