Page 1 of 1

Projects PIC16F877A + DS18S20

Posted: Sat Feb 19, 2011 9:21 pm
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:

Re: Projects PIC16F877A + DS18S20

Posted: Sun Feb 20, 2011 8:45 am
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)

Re: Projects PIC16F877A + DS18S20

Posted: Sun Feb 20, 2011 11:04 am
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

Re: Projects PIC16F877A + DS18S20

Posted: Sun Feb 20, 2011 3:53 pm
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

Re: Projects PIC16F877A + DS18S20

Posted: Thu Feb 24, 2011 7:43 pm
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