Page 1 of 1

PH sensing project

Posted: Sat Jan 21, 2017 2:25 pm
by Artis
Hi i have started to build PH sensing project. I ordered hardware for ph probe from Sparky's Widgets. They have arduino code for it but i want to added some extra options and for that i need transfer code to flowchart.

Does someone have experience  in translating arduino code to flowchart?

Hardware from Sparky's Widgets is getting analog signal and transform it to digital with 12bit  ADC. It has assigned address. 0x4D . Basically i need connect digital sensor with this address.

I will add arduino code below. Sincerely Artis.

P.S. Here can find more info on this hardware http://www.sparkyswidgets.com/portfolio ... interface/

Re: PH sensing project

Posted: Mon Jan 23, 2017 5:11 pm
by Benj
Hello,

It looks like you should be able to read the sensor using the I2C component.

Here is a blog on I2C how to use it which should help.
http://www.flowcode.co.uk/blog/simplifie ... c-and-spi/

Re: PH sensing project

Posted: Wed Feb 08, 2017 12:16 am
by Artis
I wiread ph probe to Arduino nano and wrote flowcart but i think something is missing because on hardware its show PH: 0.

Re: PH sensing project

Posted: Wed Feb 08, 2017 5:16 pm
by howard123
hello
I think one problem it that you are reading 12 bits into a byte. The two values from the probe can be bytes but the resultant value of your calculation should be an int. You will have to shift one of the bytes 8 bits to the left. I think the MSB comes out first.
good luck