thebradleysanders / ESPHome-Arduino-Port-Expander

An Arduino Port Expander for ESPHome with added Arduino Mega 2560 support
14 stars 10 forks source link

Problem with adc ports mega #7

Open crazypaddo opened 1 year ago

crazypaddo commented 1 year ago

Hello, i want to use the adc ports from the mega, but it looks like there is someting wrong. The ports are not read? I mean it looks like it is using the wrong pins. I want to use Channel 0 to 15 but there is no reactions to the connected sensors. The sensor send 3,27v (potentiometer). So what needs to change so adc0 is pin 54? When i connect the sensor to adc 8 on the atmega it registers at adc0 in esphome? Thank you for your time and effort Regards marco

oxedgar commented 2 months ago

i have the same confusion ! readings of any analog port ( A0: 54, A1: 55, A2: 56, A3: 57: A4: 58: A5: 59: A6: 60, A7: 61... ) not return anything else at 41223.00000 in my case.

I'm confuse about this! anybody can tell anothing about this?