DS18B20

Discuss the Firewing language

Re: DS18B20

Postby AndrewB » Mon Feb 29, 2016 5:04 pm

I've completely removed the DS1307 as this is still playing up.

I was asking if there was a better way of checking the amount of DS18B20's .
I have a simple if then as shown above.
could you advise on a faster routine.
AndrewB
 
Posts: 94
Joined: Thu Jan 02, 2014 3:38 pm

Re: DS18B20

Postby Jerry Messina » Mon Feb 29, 2016 6:51 pm

If you want to constantly check for devices that are attached or removed I suppose you're stuck doing the search.

If you want the main routine to be "more responsive" you could split the routines up into sections so that only a portion of it is done every time through the loop. Check out Maxim app note AN187 for examples of how you might do this.

It'll make your main loop much more complicated since you'll now have to keep a list of installed sensors so you'll know which ones you can read.
Jerry Messina
 
Posts: 280
Joined: Thu Feb 14, 2013 10:16 am

Re: DS18B20

Postby AndrewB » Mon Feb 29, 2016 8:57 pm

Thanks will look into that.

Ive cut out the ds1307 section out as it defiantly was a cause of the crashing/resetting.
AndrewB
 
Posts: 94
Joined: Thu Jan 02, 2014 3:38 pm

Previous

Return to Language

Who is online

Users browsing this forum: No registered users and 2 guests

cron

x