ADS1100 Hat with Core2
-
Dear all,
I need a better resolution for a project and I have seen that the internal ADC of the ESP32 is really noisy. So I ordered an ADS1100 for my Core2.
In the meantime I tried to connect an ADS1100 hat (that I bought for an M5Stick).
I connected it to the Port A of my Core2
Here the code:from m5stack import *
from m5stack_ui import *
from uiflow import *
import time
import unit
screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
adc_0 = unit.get(unit.ADC, unit.PORTA)
label0 = M5Label('Text', x=126, y=113, color=0x000, font=FONT_MONT_14, parent=None)
while not (btnA.isPressed()):
label0.set_text(str(adc_0.voltage))
wait_ms(1)When I upload I read:
ADC unit maybe not connectAny suggestion?
Thank you! -