REEF PI- USING SDA/SCL CONNECTIONS WITH GPIO PINS

  • Thread starter Thread starter RobertoRC
  • Start date Start date
  • Tagged users Tagged users None

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
 

TOP 10 Trending Threads

WHEN BUYING EQUIPMENT YOUR REEF WILL DEPEND ON, WHAT MATTERS MOST TO YOU?

  • Long-term reports from other reefers

    Votes: 9 50.0%
  • My own past experience with the brand

    Votes: 2 11.1%
  • A simple design I can understand and maintain

    Votes: 2 11.1%
  • Warranty and responsive customer support

    Votes: 1 5.6%
  • Independent testing or detailed reviews

    Votes: 2 11.1%
  • Advice from an LFS or reefer I personally trust

    Votes: 1 5.6%
  • Being able to keep a spare or build in redundancy

    Votes: 1 5.6%
  • Something else? Tell us in the comments

    Votes: 0 0.0%

New Posts

Back
Top
Home
Post thread…
Market
What's new