GP8302 20mA I2c on Pi 4 fail
![userHead](https://dfimg.dfrobot.com/dfPortrait2.png)
I am currently struggling to get the demo for the GP8302 0-20mA current regulator running.
I work with the raspberry pi python code https://github.com/DFRobot/DFRobot_GP8302/tree/master/python/raspberrypi
I connected the wires as follows to the raspi pins
black 4 → GND
red 2 → 5V
blue 5 → SCL
green 3 → SCA
The Pi has i2C enabled.
I keep getting Error code 2 (2: Device not found, please check if the device is connected)
Has anyone successfully controlled the chip with the pi?
Does it require to have the 18-24V connected to respond on i2c?
thank you for your help
Thank you for your responses. I can confirm that after also providing the 24V, the module now communicates and works.
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)
Check if your power supply is providing the necessary voltage and current. Still if it makes problem, kindly check the GP8302 20mA with any other board.
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)
After our confirmation, you need to power the VIN port with 18-24V to enable the module.
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)
![p.name](https://dfimg.dfrobot.com/store/data/DFR0618/191213 Update/DFR0618.jpg)
![p.name](https://dfimg.dfrobot.com/store/data/DFR0619/210826Update/DFR0619.jpg)
![p.name](https://dfimg.dfrobot.com/5e02cfed83943258d6faa189/cmsen/bed04cf524a275b07bb981c80434edc8.jpeg)