Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
m16v2 - Unable to read voltages
#10
(09-22-2023, 08:13 AM)admin Wrote: because the default LCD is showed  "voltage_2"

display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64"
    address: 0x3C
    lambda: |-
      it.printf(0, 0, id(roboto), "T: %.1f°C", id(temperature).state);
      it.printf(0, 20, id(roboto), "H: %.1f%%", id(humidity).state);
      it.printf(0, 40, id(roboto), "AC:%.1fV", id(voltage_2).state);

you can replace :        it.printf(0, 40, id(roboto), "AC:%.1fV", id(voltage_2).state);       with 

it.printf(0, 40, id(roboto), "AC:%.1fV", id(voltage_1).state);   or
it.printf(0, 40, id(roboto), "AC:%.1fV", id(voltage_3).state);

voltage_1   voltage_2     voltage_3    means different voltage detect channel.


No.

Your esphome.yaml in your post is set to voltage_2
Your esphome.yaml in your post's attachment is set to voltage_1. 

I'm using your attachment code, and that's set to voltage_1 aka GPIO 34. 

Here's your attachment code:
https://www.kincony.com/forum/attachment.php?aid=2666

Here's the diff between the two:
Code:
--- m16-forum-post.yaml    2023-09-22 16:03:26.263079542 +0700
+++ m16-forum-attachment.yaml    2023-09-22 16:03:26.263079542 +0700
@@ -56,7 +56,7 @@
     lambda: |-
       it.printf(0, 0, id(roboto), "T: %.1f°C", id(temperature).state);
       it.printf(0, 20, id(roboto), "H: %.1f%%", id(humidity).state);
-      it.printf(0, 40, id(roboto), "AC:%.1fV", id(voltage_2).state);
+      it.printf(0, 40, id(roboto), "AC:%.1fV", id(voltage_1).state);


None of the voltages work as previously mentioned. They always have 0 volts. I noticed on your youtube video, that your volts in your video appear to float around 2.8v when nothing is connected to the board. Mine are always 0 volts. Another reason I suspect something is wrong.

So it really doesn't matter if it's voltage_1, 2 or 3. None of them work. None of them have ever worked since I've received the board.


Also in the video where I test with the 1.5V Battery test is on the 6th pin on the left side of the ESP32 aka GPIO34. That works fine. ADC reads voltage fine and displays via voltage_1.

   

Regardless, none of the voltages work. Not GPIO34, 36, 39. Not voltage_1, not voltage_2, not voltage_3.

Something is wrong. I asked for assistance with which rails I can test with a multi-meter to attempt to figure out where the problem is on the circuit. No response.


Here's your youtube video where you can see 2.8v when nothing is attached. On my board, these values are always 0v.
   
Reply


Messages In This Thread
m16v2 - Unable to read voltages - by sure - 09-13-2023, 04:59 PM
RE: m16v2 - Unable to read voltages - by admin - 09-13-2023, 10:18 PM
RE: m16v2 - Unable to read voltages - by sure - 09-14-2023, 01:06 PM
RE: m16v2 - Unable to read voltages - by admin - 09-14-2023, 10:32 PM
RE: m16v2 - Unable to read voltages - by sure - 09-15-2023, 05:12 AM
RE: m16v2 - Unable to read voltages - by admin - 09-15-2023, 06:32 AM
RE: m16v2 - Unable to read voltages - by sure - 09-16-2023, 07:02 AM
RE: m16v2 - Unable to read voltages - by sure - 09-22-2023, 03:45 AM
RE: m16v2 - Unable to read voltages - by admin - 09-22-2023, 08:13 AM
RE: m16v2 - Unable to read voltages - by sure - 09-22-2023, 09:11 AM
RE: m16v2 - Unable to read voltages - by admin - 09-22-2023, 10:01 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)