h1_SW35xx icon indicating copy to clipboard operation
h1_SW35xx copied to clipboard

Proper connection question.

Open p4ntek opened this issue 1 year ago • 5 comments

Hello @happyme531

I've tested simple test file: Changed "Wire.begin(D1, D2);" to "Wire.begin(D4, D5);" (arduino nano esp32). and connected sda,scl and gnd and i have all info excluding "Current input voltage". I don't have idea what else to connect without burning arduino ;)

p4ntek avatar Aug 29 '24 04:08 p4ntek

I am reading erratic data using Wemos D1 mini clone and only SDA/SCL. Where did you connect GND ? Can you share what changes you made to the code ? Thank you.

iliecsorin avatar Apr 18 '25 20:04 iliecsorin

I am reading erratic data using Wemos D1 mini clone and only SDA/SCL. Where did you connect GND ? Can you share what changes you made to the code ? Thank you.

Hi, GND is ground, soo from ground pin of your Wemos(you can google: "Wemos D1 mini pinout") to some ground pin(close to the sda/scl pin or some common grounded pin should also work) on the device. And for your device probably pinout change in code probably is not need(i've seen that for your is D1 and D2 as in the code).

p4ntek avatar Apr 18 '25 21:04 p4ntek

Thank you for quick response. For Wemos default SDA, SCL pins are GPIO4 and GPIO5, just like yours, but board is ESP8266 not ESP32. When I connect GND from Wemos to any GND on this custom board, I get instant "0" values for all. I will get to the bottom of this. Thanks.

iliecsorin avatar Apr 18 '25 22:04 iliecsorin

Thank you for quick response. For Wemos default SDA, SCL pins are GPIO4 and GPIO5, just like yours, but board is ESP8266 not ESP32. When I connect GND from Wemos to any GND on this custom board, I get instant "0" values for all. I will get to the bottom of this. Thanks.

Don't look at GPIO numbers. Look at Digital pin number. For my device is D4 and D5(Digital 4 and 5), for yours it should be D1 and D2. Also board with this processor should be running on. You should have probably some voltage on both SDA/SCL pins on device with SW35XX (ussualy 3.3V or 5V) and device need to be compatible with that. Try if example uploaded here works.

p4ntek avatar Apr 18 '25 22:04 p4ntek

hi, can anyone confirm is this library works with SW3538 module

delip1987-cloud avatar Oct 03 '25 12:10 delip1987-cloud