M5 Stick C Plus temperature sensor without hat.
-
Hi everyone. In a M5 Stick C Plus are pins 32 or 33 analog Pins? I want to connect a DS18B20 temperature sensor to the Grove Port but i'm not getting data. I don't want do use a ADS hat because will not be functional to the solution i want. Thanks in advance
-
Hello @Peter-Sain
most GPIOs on the ESP32 can be setup to do different things - so yes an no, GPIO32 and GPIO33 are not per se analog pins, but they can be if needed.
However the DS18B20 is a OneWire component which is a digital bus (and not analog).
I just ran a test (Arduino) with my M5StickPlus and either GPIO32 or GPIO33 can be used just fine to talk to a OnWire DS18B20 temperature sensor.
Did you connect a 4.7 k resistor between VCC and OneWire data line?
Could you share your code?
Thanks
Felix
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login