Reef pi build Matevz, Slovenia, Europe

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
135
Reaction score
80
Hello all, first sorry for my english, I try;)
Many tnx to Michael and Ranjib for all info and pi;)
I Finnaly recived hat 2 and ph probe..
Tomorrow I will print enclosure from thingsuniverse..
ok first thing first.. pi 3.0 is running on zero, and I have test connected temp and ph.. both are working ok. I have problem with connecting i2c relay board ( 16 ch) for controlling it with pwm 9685 chip. I chosen jack j1 pin 13,14 and 9865 driver under drivers and under lights pin 13,14 with same 9865 driver.
Then I tried to add multiple channels (4 for test) under light section on same pins 13, 14. As I understand it 0 is off or 100 is on, but nothing happens..
so pins 13,14 goes to sda, sdl on relay board. Power to relay board is supplied from power source, relay is powered but channels wont turn on, I have them all set on 100. I am missing something?
 

Michael Lane

Active Member
View Badges
Joined
Aug 11, 2018
Messages
355
Reaction score
633
I'm not familiar with i2c relay board. Could you post some pictures of your setup?
 
OP
M

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
135
Reaction score
80
I am going to work, hire is picture of it..I also found out that ph wont work, I had it on development.. on picture power for relay is not connected.
For ph unit I choose ph probe driver 0x45 (both swithes are on on unit), that works, but when I want to add it under analog pin adress 3,5 I got error.. I/o not found on this adress, will try when I get to home..thank you

EB4B1E8A-7D11-4993-AAA9-62D46E95B8ED.jpeg 5506DDF7-FA01-48AB-9931-E80B7ADDDE11.jpeg
 
OP
M

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
135
Reaction score
80
About ph.. I found Ranjib guide on page 558 so I will put adress 64 and pin 0 and try that.. sorry for my noob statements m, I try;)
 
OP
M

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
135
Reaction score
80
Ok update when I do i2c detect I get 40, 45 and 70 adress?? So what now? All what I have connected is ph board on ph 1 connector in pi hat.
 
OP
M

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
135
Reaction score
80
Ma again if I put adress 0x40, 64 ph reading is 0. I tried all 3 numbers, 0x45, 69 and 0x70, 112 nothing changes.. ph is 0 with or without connected probe.
 

Michael Lane

Active Member
View Badges
Joined
Aug 11, 2018
Messages
355
Reaction score
633
Ok update when I do i2c detect I get 40, 45 and 70 adress?? So what now? All what I have connected is ph board on ph 1 connector in pi hat.
The addresses listed in i2c dectect are in hexidecimal. They will need to be converted to decimal for reef-pi configuration. It seems like it would be a good feature to allow hexidecimal address input for i2c devices, so I'll consider adding that feature if there's time before the v3 release.

Hex AddressDecimal AddressDevice
0x4064PCA9685
0x4569pH Board
0x70112PCA9685 Global Address (do not use)
 

Michael Lane

Active Member
View Badges
Joined
Aug 11, 2018
Messages
355
Reaction score
633
Ma again if I put adress 0x40, 64 ph reading is 0. I tried all 3 numbers, 0x45, 69 and 0x70, 112 nothing changes.. ph is 0 with or without connected probe.
It seems like you have i2c enabled since i2c detect is working. I would expect you to see some pH results with address 69. This sounds like some kind of configuration issue.
 
OP
M

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
135
Reaction score
80
Hire are pictures from pi reset forward. I am lost. I am using 2 5v 1A power supplies.ph reading is 0 with 2 diffrent probes. One milwakee and one no name.
 
https://www.omegasea.net/
OP
M

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
135
Reaction score
80
Ok now works, I think, also on ph1, but I cant calibrate it, it shows 4000+ with ph probe in 7 solution. see upper picture..I get an error.
 
Last edited:

Michael Lane

Active Member
View Badges
Joined
Aug 11, 2018
Messages
355
Reaction score
633
It looks like you've already figured it out, but removing both jumpers on the pH board results in a conflict on the i2c bus between the pca9685 and the pH board. If you really need the pH board address to be 0x40, you could change the address of the pca9685 by bridging any of the PCA9685 address pads at the bottom of the hat.

The calibration error was a known issue in 3.0.0-pre-alpha-2. It was fixed a couple of months ago, but we haven't had another alpha release.
 
OP
M

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
135
Reaction score
80
Hi Michael, thank you for your help, I am using 0x41 adress so this is good. I found threat with same bug problem ob page 590 of main threat, but I dont know where to put
that config files..janos also asked this but looks like Janos has more knowlidge then me.. can you help me please...

AEB80CEC-ED79-4CBC-AA58-473EDD9C36F4.png
 
OP
M

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
135
Reaction score
80
Hi all I am getting there, I am noob like mikeneedsahobby or worse..I think I am worse... Well I figured out or just got lucky that I created file calibration.json right there in pi folder...And put some numbers of what should ph be , and kabum ph jumped from -7000 to 7.8. Who would of thaught... I hope this screen shots will help other noobs out there...
for ph probe I just tried from 1, then 2 and it worked at number 3, so thats how many times I created ph probe in reef pi...

Ok also 8 ch relay was piece of cake, like 2 minutes and done.. works:) but now I have to figure it out what to do with i2c relay board... I dont have a clue... maybee create driver 9065 and then find out his i2c adress ? and then channels from 1-16? just thinking...Mike I wired the money it takes time to get it on paypal...Thank you !

json.PNG calibration.PNG ph works.PNG
 
Top Shelf Aquatics

Michael Lane

Active Member
View Badges
Joined
Aug 11, 2018
Messages
355
Reaction score
633
I'm glad you got the pH calibration to work. Hopefully, we'll have a new release soon, which will include the calibration fix.

I wasn't able to get anything from the relay pictures. Do you have a link the product or a datasheet to share?
 

Michael Lane

Active Member
View Badges
Joined
Aug 11, 2018
Messages
355
Reaction score
633
reef-pi doesn't have a driver for the gpio expander if used in that relay board. I believe we have an issue created to write a driver, but I don't know if it will make it into v3.

If you would be comfortable adding code, we would be happy to merge a pull request.
 

Michael Lane

Active Member
View Badges
Joined
Aug 11, 2018
Messages
355
Reaction score
633
It's a bit more complicated than that. The seller does include some bare bones sample code, but it is not integrated with reef-pi.

Issue 566 tracks driver development for MCP23017 IC .
 
World Wide Corals - Quality Aqua-cultured Coral

DSB or Deep Sand Beds (check all that apply to you)

  • Yes I run a DSB

    Votes: 148 21.3%
  • No I do not run a DSB

    Votes: 380 54.7%
  • A DSB is a good idea

    Votes: 93 13.4%
  • I do not think a DSB is a good idea

    Votes: 162 23.3%
  • I have had a DSB in the past

    Votes: 181 26.0%
  • I will have a DSB in the future

    Votes: 60 8.6%
  • I am just here for the comments

    Votes: 82 11.8%

Online statistics

Members online
591
Guests online
3,141
Total visitors
3,732
Aqua SD
UniqueCorals.com shop rare & farmed corls
Top