Hi everyone,
I am a bit desperate, because I have a Infrared distance sensor ( GP2Y0A60SZLF, Polulu sds02a, Pololu Carrier with Sharp/Socle GP2Y0A60SZLF Analog Distance Sensor 10-150cm, 5V) which works fine If I plug it directly into my Arduino R4 Wifi.
I had set up all my hardware including a potentiometer slider, a flex sensor and some buttons. It all worked perfectly.
Now I did by a Qwiic Shield from sparkfun (SparkFun Qwiic Shield for Arduino), because I thought this would give me a perfectly matching protoboard to solder some of my cables directly onto that custom shield.
Still everything works perfectly, but my infrared values dont work anymore.
Chat GPT gave me the hint that the qwiic shield is actually maybe interfering with A4 and A5 as they are connected to SDS or SDA, so I switched to A2. But still my values are just not correct at all...
The sensor works and the arduino works. It is just the combination with the qwiic shield.
Any idea why? I really have no idea anymore!
In the picture you can see my former shield with some more stuff attached, but the actual shield that is connected does not have anything else than the three jumper cables attached to it.
If I connect the pins to the exact same pins just without the shield, I get correct values!
(second image).
So the shield must be interfering with my signal, but how?!?
Further I measured the voltage between 5V and GND: 4.85V both on shield and arduino.
I measured the A2 input: if connected to the 5V I get a value of 1023 and if connected to ground it is 0 as expected.
I would be really glad if somebody could tell me what the qwiic shield is doing with my values.
(As the slider potentiometer with a analog read works perfectly fine)...
Thank you