REEF PI- USING SDA/SCL CONNECTIONS WITH GPIO PINS

RobertoRC

New Member
View Badges
Joined
May 29, 2019
Messages
24
Reaction score
16
What state or country do you live in
Other International
Rating - 0%
0   0   0
Hi all! I've been having some trouble with the SDA SCL pins in my Raspberry Pi for a while, I'm sure they are fried, so I changed the configuration to use them with the GPIO pins #17 and #18. I used these /boot/config.txt - dtoverlay=i2c-gpio,i2c_gpio_sda=17,i2c_gpio_scl=18 to configure it and worked fine but in the website I got the code it is said that a new bus was created /dev/i2c-3 and when in the terminal I write i2cdetect y -3 it seems that is recognizing my PCA9583 and a EZO pH circuit, but the lights are not dimming and the pH probe doesn't read anything when I configure them in REEF PI, so I was wondering if its a problem that I can solve. Thanks for your feedback!

WhatsApp Image 2019-07-04 at 18.26.22.jpeg


WhatsApp Image 2019-07-04 at 18.43.43.jpeg
 
Let's see if we can get some help.

#reef-pi #controller @Ranjib
 
#reef-pi #controller
 
Sorry for getting back late @RobertoRC . Unfortunately I have to do some code changes to support this. It’s a small one, but without it you won’t be able to use reef-pi to talk to the new i2c pins. Currently it’s assuming i2c-1 file. https://github.com/reef-pi/rpi/blob/master/i2c/i2c.go#L55

While I get back to fixing this and making it configurable, you can try hacking around by creating a symlink with the path expected by reef-pi. I don’t know if it will work or not as I have not tried this and I’m out in vacation , but it’s worth an attempt I think. Checkout this link https://unix.stackexchange.com/questions/445450/how-to-create-a-permanent-symlink-to-a-device , there may be a way to use udev rules to do this,
Code:
sudo ln -s /dev/i2c-3 /dev/i2c-1
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%

New Posts

Back
Top