Which FC9 ADC component use for ESP32 ?

For general Flowcode discussion that does not belong in the other sections.
lucibel
Posts: 172
http://meble-kuchenne.info.pl
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Flowcode v9 Which FC9 ADC component use for ESP32 ?

Post by lucibel »

hi,
Could you tell me ASAP which FC9 ADC component to use for ESP32.
Thx
Last edited by lucibel on Thu Feb 23, 2023 2:54 pm, edited 1 time in total.
Seb

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: Which FC9 ADC component use for ESP32 ?

Post by lucibel »

Hello Medelec,
thx for your prompt reply but for FC09 was missing on my question.
And when I said Component, I mean Potentiometer, CAL ADC, etc..
Seb

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: Which FC9 ADC component use for ESP32 ?

Post by medelec35 »

Hello.
I have deleted my post and changed your post to include the 9 post icon as you have edited your post to state FC9.
In future on the first post, we recommend using the 9 or 10 post icon depending on what Flowcode version you are using.
Just use one of the Potentiometers as any should work with ESP32.
If you find an issue, then let us know and we will look into it.
Martin

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: Which FC9 ADC component use for ESP32 ?

Post by lucibel »

Ok I will try Potentiometers
before to ask help, I did many test with CAL ADC and read is very strange!
at each compilation without change in the prog, the read value change a lot between 2 prog uploading
Can be around 1V difference

If better to use potentiometer, it mean that there is problem with CAL ADC with ESP32?

- with potentiometer, which function is better to use? (getint, Raw, getvoltage)
- what is getspeedfilter?
there is way to setup this filter ?
Seb

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: Which FC9 ADC component use for ESP32 ?

Post by lucibel »

hello Medelec,
no news ?
thx
Seb

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: Which FC9 ADC component use for ESP32 ?

Post by lucibel »

hi,
For pot_panel component, the macro SetProperties doesn't change the properties of the component. (At least VRef10Ms parameter).
VRefop can be only 0 or 1
VRefop.jpg
VRefop.jpg (21.85 KiB) Viewed 1196 times
but can be 4 different values in Components properties 950,1250,1750,2450
VRefopComp.jpg
VRefopComp.jpg (12.09 KiB) Viewed 1196 times
Convspeed can be only "Fixed" in Components properties ( may be it's normal, I don't know)
so which value to add in SetProperties ConvSpdOpt ?
Seb

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: Which FC9 ADC component use for ESP32 ?

Post by medelec35 »

Hello.
Thank you for letting us know, the ADC will be looked into.
Are you looking into displaying the voltage across the ADC pin or after a byte or integer value?
Martin

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: Which FC9 ADC component use for ESP32 ?

Post by lucibel »

hi,
I need to read voltage and Integer value.
thx
Seb

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: Which FC9 ADC component use for ESP32 ?

Post by medelec35 »

Hi Seb.
I have attached a project showing several different methods.
I would not recommend using the version within ADC user macro.
The reason is Espressif Systems have changed the way ADC works.
I have found since then ADC has not been as stable.
I hope the project file helps you.
Attachments
TTGO Display ADC.fcfx
(22.37 KiB) Downloaded 39 times
Martin

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: Which FC9 ADC component use for ESP32 ?

Post by lucibel »

ok thx but did you check this post about properties?
viewtopic.php?p=10364#p10364
Seb

Post Reply