Hi everyone.
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 UNO 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. I don’t need any 3.3V or I2C ports. I just wanted a shield that fits my Arduino UNO.
Now after using the shield, still everything works perfectly, but my infrared values don’t work anymore.
Chat GPT gave me the hint that the qwiic shield is 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 is problematic. Any idea why?
I don’t really understand the schematic in the image. Is my 5V being changed?
I currently use a passthrough pin, but I still get false values:
In the first picture of my setup you can see my 1. 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. I reduced to the max to simplify debugging…
If I connect the pins to the exact same pins on the Arduino 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
Ps: Sorry I had to combine all images into one, as I am a new user…