Projects PIC16F877A + DS18S20

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
User avatar
Jordy101091
Posts: 519
Joined: Sat Jan 08, 2011 4:02 pm
Location: The Netherlands
Has thanked: 25 times
Been thanked: 188 times
Contact:

Projects PIC16F877A + DS18S20

Post by Jordy101091 »

Hi All,

Im working on a project for a few months now. I have posted an article on 15 feb. 2011 that i want to display my PWM Dutycycle on my LCD Module, thats working fine now after some maths.

Now I want to go a step further, Now i want to use a DS18s20 Digital Temp. Sensor to reed-out the tempature in degrees C. In now that de DS18s20 uses the I2C communications protocol, but im not familiar with it. I'm hoping that you can help me with this. How im going to get this to work :?:

Another question is:

In my project i have a pushbutton here i can select white one push for manual mode and another to select Automatic. My problem is that i can succesful select manual mode but when im push it again i can not go back to manual mode.

I use PWM CCP1 for automatic mode
And PWM CCP2 for manual mode

with Macro "Licht_Handmatig" i can select manual mode

I hope you guys can help me with me question/problem,

Regards

Jordy Kleian

PS. I have attacht my flowcode project, but please dont copy anything without asking me for it, thank you :idea:
Attachments
Aqua Controller.fcf
My 4 month project "Please dont copy anything"
(24.91 KiB) Downloaded 463 times
the will to learn, should not be stopped by any price

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Projects PIC16F877A + DS18S20

Post by JohnCrow »

Hi
Ive just bought some DS1820s to experiment with myself, though not done anything yet.

Flowcodes has options in the 1-wire bus macro to drive this device directly. The help files cover this is detail
The device needs a pull-up resistor on the bus, and a single device can be powered by the bus as well, (see data sheet for full details)
1 in 10 people understand binary, the other one doesn't !

User avatar
Jordy101091
Posts: 519
Joined: Sat Jan 08, 2011 4:02 pm
Location: The Netherlands
Has thanked: 25 times
Been thanked: 188 times
Contact:

Re: Projects PIC16F877A + DS18S20

Post by Jordy101091 »

Ok thanks,

I will look in the help file of flowcode, maybe it can help me with my problem.
If not hope you guys can help me out.

Regards,

Jordy Kleian
the will to learn, should not be stopped by any price

User avatar
Jordy101091
Posts: 519
Joined: Sat Jan 08, 2011 4:02 pm
Location: The Netherlands
Has thanked: 25 times
Been thanked: 188 times
Contact:

Re: Projects PIC16F877A + DS18S20

Post by Jordy101091 »

I Have read the help file for the 1-wire component and I discoverd that there are standard or premade macro's for a DS1820 and DS18B20 device. I have made i flowcode in the way I think it right.

Can you please check this for me.

And i still need to figure out how whats wrong with my pushbutton, maybe you guys can help me with this.

regards

Jordy Kleian
Attachments
Aqua Controller.fcf
(26.7 KiB) Downloaded 385 times
the will to learn, should not be stopped by any price

trisb
Flowcode V4 User
Posts: 40
Joined: Sat Mar 06, 2010 5:25 am
Location: Chicago USA, & Oxford & Northampton UK
Has thanked: 6 times
Contact:

Re: Projects PIC16F877A + DS18S20

Post by trisb »

Hi Jordy,

I have looked at your program and have made a change, you should now be able to go back to auto.

Give it a try and let me know if this works and what you wanted.

Thanks

Tristan
Attachments
Aqua Controller (1).fcf
(26.74 KiB) Downloaded 621 times

Post Reply