ADC2 support

frax84
Posts: 42
Joined: Thu Jan 07, 2016 11:26 am

ADC2 support

Postby frax84 » Fri May 05, 2017 5:42 pm

Hello,
anyone is able to make an estimation for ADC2 support? I noticed in the programming guide that actually only ADC1 is supported. A simple time estimation would be nice.

Thank you!
frax

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: ADC2 support

Postby rudi ;-) » Sat May 06, 2017 1:15 am

frax84 wrote:Hello,
anyone is able to make an estimation for ADC2 support? I noticed in the programming guide that actually only ADC1 is supported. A simple time estimation would be nice.

Thank you!
frax
you can try this in the meantime, read the notes in the comments.

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

frax84
Posts: 42
Joined: Thu Jan 07, 2016 11:26 am

Re: ADC2 support

Postby frax84 » Sat May 06, 2017 8:20 am

Wow, thanks for the quick and useful reply!
I'll give it a shot!

frax

frax84
Posts: 42
Joined: Thu Jan 07, 2016 11:26 am

Re: ADC2 support

Postby frax84 » Tue Jun 13, 2017 9:33 am

Hello again,
i would like to ask an info about the ADC2 support.
From the issue linked by rudi:

ESPrite:
"we're a bit hesitant to make ADC2 available because it is also used for pretty important control loops inside the WiFi (and maybe BT, I don't remember) drivers. We want to make sure there's no chance of these and the user ADC calls to interfere with each other."

For the project i'm working on ADC2 is an important element (i would need a total of 12 ADC channels) and i use BLE to transfer data. I would like to know if ADC2 pins are used for BT control loops or not.

Thanks,
frax

frax84
Posts: 42
Joined: Thu Jan 07, 2016 11:26 am

Re: ADC2 support

Postby frax84 » Sat Jun 17, 2017 7:51 am

Bump

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: ADC2 support

Postby ESP_igrr » Sat Jun 17, 2017 9:53 am

We are working on implementing this. This is a bit tricky because the arbitration mechanism needs to handle different scenarios (different WiFi throughput, ADC polling frequency) and we want to make sure that we still get reasonable performance in all cases. Will update the corresponding Github issue when we have it working.

frax84
Posts: 42
Joined: Thu Jan 07, 2016 11:26 am

Re: ADC2 support

Postby frax84 » Sat Jun 17, 2017 1:55 pm

Yes, the problem is clear...but i don't need the wifi.
I want to know if there is the same problem with bluetooth.

frax84
Posts: 42
Joined: Thu Jan 07, 2016 11:26 am

Re: ADC2 support

Postby frax84 » Tue Jun 20, 2017 6:19 am

This is starting to be frustrating :)
I'm stuck with this until i get an easy answer: are the pins of ADC2 used for BT control loops? Can i use them for ADC2 if i don't use WiFi?

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: ADC2 support

Postby ESP_igrr » Tue Jun 20, 2017 6:39 am

No, ADC2 is not used for BT. If you don't use WiFi (i.e. don't call esp_wifi_init), you should be able to use ADC2.

frax84
Posts: 42
Joined: Thu Jan 07, 2016 11:26 am

Re: ADC2 support

Postby frax84 » Tue Jun 20, 2017 6:40 am

Awesome!
Thank you
frax

Who is online

Users browsing this forum: No registered users and 74 guests