ESP32 ADC2

115 views
Skip to first unread message

Yuggo Ouchi

unread,
Oct 3, 2017, 4:41:46 AM10/3/17
to btstack-dev
Hi, i want to use the adc1 and adc2 channels from esp32 integrated with the bluetooth, i'm using the spp_counter as a base code, this is the repo with the code:
and it works when using it without the bluetooth, i read here https://github.com/espressif/arduino-esp32/issues/102 that ADC2 conflicts only with the wifi, but i'm getting the same problem using the bluetooth, does anyone know if btstack uses some wifi resources that could cause this error, or could help me to look where the ADC2 code conflicts with the btstack?

Best Regards

Matthias Ringwald

unread,
Oct 3, 2017, 4:46:46 AM10/3/17
to btsta...@googlegroups.com
Hi Yuggo

I don't know but Bluetooth and Wifi use the same 2.4 GHz radio range and therefore they usually at least share the antenna if not more. Unless proven otherwise, you can assume that if something hardware related causes problems with Wifi will also cause similar issues with Bluetooth.

The issue you've linked to mentions that it depend on the pin used. Could you try different pins to see if you can find a second one that works with Wifi & Bluetooth?

BTstack doesn't know anything about hardware, it mainly calls the Virtual HCI (VHCI) API of the esp-idf.

Best
 Matthias
 
--
You received this message because you are subscribed to the Google Groups "btstack-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
To post to this group, send email to btsta...@googlegroups.com.
Visit this group at https://groups.google.com/group/btstack-dev.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages