Ph meter reading is...
 
Notifications
Clear all

Ph meter reading issue  

  RSS

cobra
(@cobra)
Active Member
Joined: 1 week ago
Posts: 5
June 24, 2020 8:43 pm  

Hi,

 

I have installed the tool and got most of my sensors working, which is great.

Problem I am having is with the Ph sensor, as I have a generic one.

It is working, as I have been using it with a raspberry Pi for years, but in Mycodo it is not showing me a reading.

 

In the stats page, I can see it uses i2c addr 20, but it does not want to show me any values.

 

Would be great if you could let me know what to look at/for.

 

Thanks

Martin

 

http://rezaalihussain.blogspot.com/2014/04/measuring-ph-using-dormant-labs-ph.html

 


Quote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 5 years ago
Posts: 219
June 24, 2020 8:50 pm  

How have you been acquiring measurements with a Raspberry Pi? 

Mycodo Developer


ReplyQuote
cobra
(@cobra)
Active Member
Joined: 1 week ago
Posts: 5
June 24, 2020 9:17 pm  

I have implemented a similar project to yours in .NET, back-end only though.

This post was modified 1 week ago 2 times by cobra

ReplyQuote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 5 years ago
Posts: 219
June 24, 2020 9:26 pm  

It looks like the only code supplied by the manufacturer to read the sensor is written for Arduino. Porting the code to a Python class would probably be the best approach. You could then create a custom Mycodo input module that uses the class to acquire/store measurements.

Mycodo Developer


ReplyQuote
cobra
(@cobra)
Active Member
Joined: 1 week ago
Posts: 5
June 24, 2020 9:40 pm  

yes, i converted the code from C to C#, about 6 years or so ago.

 

>You could then create a custom Mycodo..

Have not tried out Python yet ;)

Thought there may be a setting I could use to try out.

 

found your module on gitHub  I might just have a stab at python and contribute, if that is ok?

 

This post was modified 1 week ago 2 times by cobra

ReplyQuote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 5 years ago
Posts: 219
June 24, 2020 9:58 pm  

You can look at any of the inputs in the mycodo/inputs directory. There's also a section of the manual that discusses input module development and how to import them into Mycodo through the web UI. 

Mycodo Developer


ReplyQuote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 5 years ago
Posts: 219
June 25, 2020 4:32 pm  
Posted by: @cobra

I might just have a stab at python and contribute, if that is ok?

By all means, go ahead. I'd be more inclined to take a crack at it first, had it been a product that was in stock/still produced. But since it might not be available anymore, I'll let you take the first go and see what you come up with, before I jump in.

Mycodo Developer


ReplyQuote