Author Topic: Bluetooth problem  (Read 858 times)

0 Members and 1 Guest are viewing this topic.

Offline saroseTopic starter

  • Newbie
  • Posts: 4
  • Country: np
Bluetooth problem
« on: February 17, 2021, 02:27:17 am »
I have used 5 Oled for displaying 5 different sensor values. It was working fine but when i wanted to use bluetooth, one Oled which is connected to GPIO pins 01 and 03 is not working and other 4 Oled are working. If i keep bluetooth code that oled wont work and if i again dump another code which donot include bluetooth then all oled is working. Why it is happening? What may be the problem?
I have shown pins that i have used for Oled(SDA , SCL) and Sensors(S0-S4) in image below.
 

Offline saroseTopic starter

  • Newbie
  • Posts: 4
  • Country: np
Re: Bluetooth problem
« Reply #1 on: February 17, 2021, 05:58:45 am »
I have used 5 Oled for displaying 5 different sensor values. It was working fine but when i wanted to use bluetooth, one Oled which is connected to GPIO pins 01 and 03 is not working and other 4 Oled are working. If i keep bluetooth code that oled wont work and if i again dump another code which donot include bluetooth then all oled is working. Why it is happening? What may be the problem?
I have shown pins that i have used for Oled(SDA , SCL) and Sensors(S0-S4) in image below.

 

Offline DrG

  • Super Contributor
  • ***
  • !
  • Posts: 1199
  • Country: us
Re: Bluetooth problem
« Reply #2 on: February 28, 2021, 06:12:45 pm »
That's interesting.

Some GPIOs change its state to HIGH or output PWM signals at boot or reset. This means that if you have outputs connected to these GPIOs you may get unexpected results when the ESP32 resets or boots. https://randomnerdtutorials.com/esp32-pinout-reference-gpios/

GPIO01 and GPIO03 are in that group. Of course, you are not resetting or booting - but maybe they are changing when you start BLE. Can you remove the affected OLED and monitor those two pins and see if they change when you start BLE? That might yield some good information.


Hope it helps...
- Invest in science - it pays big dividends. -
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf