Trouble with QT Py ESP32 Pico, works with HUZZAH32

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jenscski
 
Posts: 2
Joined: Tue Jul 24, 2018 4:03 am

Trouble with QT Py ESP32 Pico, works with HUZZAH32

Post by jenscski »

Hello

I have a problem with a project I'm working on, I was previously using the HUZZAH32, with to DS18B20 sensors, and a Adafruit Monochrome 1.12" 128x128 OLED.

On the HUZZAH32 everything works well, but when I change to the QT Py ESP32 Pico, I get a lot of faulty readings from the DS18B20 sensors.

If I remove all code regarding the displays, I get successful readings from the sensors.

I'm using ESPHome as the environment.

I'm guessing this may have something to do with the powersupply in some matter, but it's over my knowledge to know what to do / where to start.

Any advice if this is possible to fix?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Trouble with QT Py ESP32 Pico, works with HUZZAH32

Post by mikeysklar »

Can you show your wiring with the DS18B20 and Qt Py Pico? Maybe it is pin choice?

There is an old issue I found (pre Pico) where the sensor needed to be initialized twice, but I think that should have been resolved a long time ago.

https://github.com/PaulStoffregen/OneWire/issues/57

Do you have some minimal code you are running that is working with just the Qt Py + DS18B20?

User avatar
jenscski
 
Posts: 2
Joined: Tue Jul 24, 2018 4:03 am

Re: Trouble with QT Py ESP32 Pico, works with HUZZAH32

Post by jenscski »

I'm using A0 on both controllers, it's actually gpio 26 on both controllers.

What I think is strange, is that it's working fine on the Pico before I add more code to my sketch, e.g. add display code. So don't think it's the port or the wiring.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Trouble with QT Py ESP32 Pico, works with HUZZAH32

Post by mikeysklar »

You mentioned using ESPHome. Maybe their forums have some thoughts:

https://community.home-assistant.io/c/esphome/36

Post what you think is relevant and maybe we can help you to resolve it. It is hard to say what is happening without confirming the code, wiring and soldering.

Have you also tried running Adafruit example code for the DS18B20 and TFT?

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”