If it uses i2c just connect it right to the Pi. It would be a lot easier “I think” than feeding the signal through the automation hat. I don’t see any i2c header on the hat so you may need to put a Proto Hat or proto zero or something between the Pi and the automation hat. Everything except i2c seems to be brought out on the automation hat, unless I missed it?
Thank you for your answer. So basically i better not use the automation hat and try to user a analog digital converter for my existing sensor and then connect the other sensor via I2C.
It depends on the sensor how you use it. The link you posted for the MPU-6050 shows it as being hooked up via i2c. I2c is a shared bus so multiple devices can be hooked up at the same time. As long as no two have the same i2c address. So in theory you could connect it and the automation hat. The automation hat uses 0x48 and 0x54. https://pinout.xyz/pinout/automation_hat#
Then connect the other sensor to the automation hat if thats what is needed to run it. What is the other sensor?
Connect what to the automation hat? If your referring to the MPU-6050, you don’t connect it to the automation hat, not if your going to hook it up via i2c. You connect it to the Pi’s GPIO as shown in the link you posted.
Pins 3 SDA and pin 5 SCL, and V+ and ground. i2c isn’t brought out for use on the automation hat, as near as I can tell from the pictures.
I’ve used proto hats with stacking headers.
The automation hat already has an up to 24v tolerant ADC on board. So you “should” be able to use it with the Sharp GP2Y0A02YK0F. The explorer hat also has ADC’s, they just don’t list much detail on them on the product page. The proto hat, if you use one, would go between the Pi and your hat. You use a male to female stacking header on it.