openag_pfc2 icon indicating copy to clipboard operation
openag_pfc2 copied to clipboard

Todo: Explain I2C mode setup for Atlas Scientific PH & EC sensor boards

Open ghost opened this issue 8 years ago • 18 comments

The build instructions probably ought to call special attention to putting the Atlas Scientific sensor circuit modules in I2C mode (see EZO pH Circuit datasheet pages 40-41 , and EZO EC Circuit datasheet pages 40-41).

As @spaghet discovered last night (see our forum discussion), the Atlas Scientific EZO pH circuit module can talk either I2C or TTL serial on its TX/RX pins, but TTL serial is the default. You have to do a manual configuration step to put the module into I2C mode. The EC module works the same way.

At minimum, having TTL serial on the I2C bus will interfere with I2C communication, but it seems like overloading IO pins and causing hardware damage might also be possible. I'm not an EE, but it seems like it would be bad for the the pH module's TX pin in TTL serial mode to drive the Arduino's SDA pin up to VCC while the Arduino's I2C master was trying to pull SDA down to GND.

@jakerye, I'm not sure if this is the right place to make an issue about documenting EE stuff. Is this within the scope of what you work on? Should I put this somewhere else?

ghost avatar Feb 08 '17 23:02 ghost

https://github.com/Spaghet/openag_pfc2/blob/master/instructions.md#set-electrical-components-into-proper-modes

It's actually written there, but maybe it needs some more clarification.

sp4ghet avatar Feb 09 '17 17:02 sp4ghet

@Spaghet Oh... I see what you mean:

  1. Set the Atlas Circuits into I2C Mode

I overlooked that. Maybe that's enough. Although, links and page numbers for I2C instructions in the datasheets would be useful. I'd be curious to hear from somebody with more of an EE background if they think hooking a TTL serial line to an I2C bus has any risk of causing hardware damage. If it does, then probably it would be good to include a warning about that.

ghost avatar Feb 09 '17 17:02 ghost

I accidentally did it and it's running ok, but we'll need to see if it's harmful if you do it for days.

sp4ghet avatar Feb 09 '17 18:02 sp4ghet

Hi, I am having issues with the measurements by electrical conductivity sensor. Only when its in the calibration solution it gives the value of the calibration solution, for other solutions, its showing 0.00. Did anyone face a similar problem before?

srkmurd avatar Sep 21 '18 07:09 srkmurd

Maybe the EC is actually just 0? If it's showing the correct value in the calibration solution, the actual value being 0 makes sense to me.

have you added liquid fertilizer and it still shows 0? in that case there might be some issues.

sp4ghet avatar Sep 21 '18 11:09 sp4ghet

As i said I added NACL in water which definitely makes it conductor. Similary i have a microalgae culture which has electrolyte. So E.C shouldnt be 0 in these solutions

On Fri, 21 Sep 2018, 7:21 PM Rikuo Hasegawa [email protected] wrote:

Maybe the EC is actually just 0? If it's showing the correct value in the calibration solution, the actual value being 0 makes sense to me.

have you added liquid fertilizer and it still shows 0? in that case there might be some issues.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/OpenAgInitiative/openag_pfc2/issues/21#issuecomment-423499426, or mute the thread https://github.com/notifications/unsubscribe-auth/AlDNhas5e4-hlp1yzZUdKz3okphoFikXks5udMvNgaJpZM4L7fTV .

srkmurd avatar Sep 21 '18 11:09 srkmurd

Do you change anything else when you switch solutions? If it works at all at some point the software should be working...

sp4ghet avatar Sep 21 '18 12:09 sp4ghet

is this solved`? I am having the same issue

rrivera111 avatar Oct 19 '18 12:10 rrivera111

@sp4ghet where you able to solve it?

rrivera111 avatar Oct 19 '18 12:10 rrivera111

it is solved for me, thanks

rrivera111 avatar Oct 19 '18 12:10 rrivera111

The issue remains as it is. When all sensors are placed in the same solution, there is interference resulting in incorrect readings such as spikes and pH as 14.00 when it is actually 8.xx. So how have you resolved this issue?

On Fri, 19 Oct 2018, 8:35 PM rrivera111 [email protected] wrote:

it is solved for me, thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/OpenAgInitiative/openag_pfc2/issues/21#issuecomment-431348261, or mute the thread https://github.com/notifications/unsubscribe-auth/AlDNhQa5Hwi9UE7Un58Qai9vfqHoYq8Wks5umccngaJpZM4L7fTV .

srkmurd avatar Oct 19 '18 13:10 srkmurd

@srkmurd Are you using a carrier board with electrical isolation? Interference between multiple aqueous sensor probes in the same tank is a common issue, and may be the cause of the behavior you are observing.

catbarph avatar Oct 19 '18 22:10 catbarph

Hi James,

Thanks for your response. I am not using carrier board and was not aware of the cause of the problem. Do I have any other way to deal with this as I have already installed the sensor boards on a PCB?

On Sat, Oct 20, 2018 at 6:36 AM James Hauk [email protected] wrote:

@srkmurd https://github.com/srkmurd Are you using a carrier board with electrical isolation? Interference between multiple aqueous sensor probes in the same tank is a common issue, and may be the cause of the behavior you are observing.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/OpenAgInitiative/openag_pfc2/issues/21#issuecomment-431518456, or mute the thread https://github.com/notifications/unsubscribe-auth/AlDNhbGWY9HbG0Pr0NMD48tne_aeRfNRks5umlPggaJpZM4L7fTV .

-- BR Salman Rauf 0410924087

srkmurd avatar Oct 20 '18 12:10 srkmurd

In my case I am using the tentacle board and work good so far, I had a connection issue.... I believe atlas scientific also provides an isolation board

rrivera111 avatar Oct 21 '18 07:10 rrivera111

@srkmurd Can you share your design // how the sensor boards are installed on PCB?

catbarph avatar Oct 24 '18 22:10 catbarph

I am using this board on top of the rpi https://www.whiteboxes.ch/shop/tentacle-t3-for-raspberry-pi/?v=1ee0bf89c5d1

rrivera111 avatar Oct 25 '18 07:10 rrivera111

I am using the same T3 with EZO circuits for Ph and EC. Ph works fine but I get 0 reading from EC. Electrical isilation is in place. Anyone else had this issue and resolved with success?

eyespoint avatar Nov 21 '18 23:11 eyespoint

are you able to get the readings from the pH? can you share your connection diagram for the ec circuit board?

rrivera111 avatar Nov 22 '18 15:11 rrivera111