I need help for a pH and Humidity project.
Moderator: Benj
I need help for a pH and Humidity project.
Hello everyone, I have a project to do in class, i need to use flowcode and PIC16F877A, and I chose pH sensor (SEN0161) and Humidity sensor (YL-69), I created the program for both and it works in simulation but he doesn't work with the sensors. I searched how i can use the sensors but everything is on Arduino. If anyone can help me, thank you very much.
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: I need help for a pH and Humidity project.
Perhaps you could post your code so we can give you pointers to what might be wrong? Given the amount of information you have given us at the moment we need a crystal ball...
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
Re: I need help for a pH and Humidity project.
No problem here's the code for the pH :
Capture 1
Capture 2
And the Humidity :
Capture 3
Capture 4
I just need help for the use of the sensors normaly the program works.
Capture 1
Capture 2
And the Humidity :
Capture 3
Capture 4
I just need help for the use of the sensors normaly the program works.
- Attachments
-
- Capture3.PNG
- (207.15 KiB) Downloaded 3341 times
-
- Capture2.PNG
- (196.42 KiB) Downloaded 3341 times
-
- Capture1.PNG
- (183.46 KiB) Downloaded 3341 times
Re: I need help for a pH and Humidity project.
Capture 4
- Attachments
-
- Capture4.PNG
- (195.63 KiB) Downloaded 3340 times
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: I need help for a pH and Humidity project.
Please attach a flowcode file, screendumps only show us only part of what we normally check. (For instance clock settings, component connections etc)
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
Re: I need help for a pH and Humidity project.
The two flowcodes codes 1 is for pH and 3 for Humidity.
- Attachments
-
- Flowcode3.fcf
- (15 KiB) Downloaded 241 times
-
- Flowcode1.fcf
- (11.5 KiB) Downloaded 218 times
-
- Posts: 188
- Joined: Thu Jun 28, 2012 7:29 pm
- Location: Durham
- Has thanked: 86 times
- Been thanked: 186 times
- Contact:
Re: I need help for a pH and Humidity project.
Hi Ficher
I would suggest you change the 'Clear' LCD with the following to get a smother display:
Not sure if the flikering display is your problem but this would help. Also, your math is a constant ( *100 / 5) = 20
just multuply your voltage by 20 and it should give your the same result - faster, if the 20 is stored as a variable. Microchip compiler always converts any number system to a hex value before it is compiled, this is how they acheive the 20% speed increase.
Hope this helps.
Regards
Dave
I would suggest you change the 'Clear' LCD with the following to get a smother display:
Not sure if the flikering display is your problem but this would help. Also, your math is a constant ( *100 / 5) = 20
just multuply your voltage by 20 and it should give your the same result - faster, if the 20 is stored as a variable. Microchip compiler always converts any number system to a hex value before it is compiled, this is how they acheive the 20% speed increase.
Hope this helps.
Regards
Dave
Re: I need help for a pH and Humidity project.
Thanks for your help I go change the program to make it better.