Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to uses sensors with v3 firmware
#1
I'm having trouble using DHT22 sensors with the v3 firmware, with the v2 firmware you just set sensor ID 1, type DHT22 and it worked.  With the v3 firmware it looks like you need to set a GPIO address but there's no indication for what this should be, and trying the first one, 47, bricked the board. How do you set up a DHT22 (or any other sensor) on the 1-wire GPIO ports?
Reply
#2
which board model you are using? can you take a photo, how you wire?
Reply
#3
Board is KC868A16v3 with the latest firmware, 3.9.0.  It looks like I can't upload an image directly so here's an indirect link, just +V, GND, and GPIO Pin 1 connected to the DHT22.

The question wasn't about the wiring though, it's that the new v3 interface is different from the v2 one, it looks like you're required to set a GPIO with the choice being 47, 48, and 38.  I'm using pin 1 on the GPIO connector, I don't know how that maps to 47, 48, or 38.
Reply
#4
take a photo of DHT22 sensor, some sensor need use by 5v.
Reply
#5
I've used the sensor with the v2 board without any problems. In fact I just unplugged the connector from the v2 board and plugged it into the v3 board.
Reply
#6
1-wire (pull-up resistance on PCB):
1-wire1:GPIO47
1-wire2:GPIO48
1-wire3:GPIO38

free GPIOs (without pull-up resistance on PCB):
free gpio-1:GPIO39
free gpio-2:GPIO40
free gpio-3:GPIO41

   

   
Reply
#7
Thanks. I've now taken 5V power from the 433MHz connector, so GND and HT1 connected and 5V taken from the 433MHz connector, and I'm still getting no readings. Since none of the digital inputs are working either it's possible I have a faulty board.

(04-10-2025, 02:00 PM)admin Wrote: 1-wire (pull-up resistance on PCB):
1-wire1:GPIO47
1-wire2:GPIO48
1-wire3:GPIO38

So I tried this, under 'Sensor' set sensor #1 = DHT22, GPIO47 for HT1, clicked "Save" and the board stopped responding, even a hardware reset doesn't work, as per this post.
Reply
#8
can you take a photo, how you wire, i can do as your photo.
Reply
#9
Sure, give me a few minutes, I've just been going through the firmware versions:

3.7.2: Inputs work, DHT22 doesn't work, setting GPIO = 47 bricks the board.
3.8.0: Inputs work, DHT22 doesn't work, setting GPIO = 47 bricks the board.
3.9.0: Inputs don't work, DHT22 doesn't work, setting GPIO = 47 bricks the board.

So falling back to 3.8.0 from 3.9.0 gets the inputs back to working, but none of the versions have a working DHT22 and all of them brick the board (hardware reset doesn't work, need to do a power cycle + reflash) if you set the GPIO value to something other 'None'.
Reply
#10
Here's the setup, 5V from the 433MHz connector, GND + I/O from the GPIO connector.

Image linked to another site

(Is there some direct way to insert images?  The toolbar only gives you an option to add a link to an image, but I've seen other posts with images inline).
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)