View previous topic :: View next topic |
Author |
Message |
vortexe9000
Joined: 07 Jun 2010 Posts: 50 Location: Banned - spammer
|
chfr. |
Posted: Sat Jan 14, 2012 3:09 am |
|
|
sdf _________________ Banned for spamming his own posts
Last edited by vortexe9000 on Sun Feb 19, 2012 7:43 am; edited 2 times in total |
|
|
vortexe9000
Joined: 07 Jun 2010 Posts: 50 Location: Banned - spammer
|
|
Posted: Sat Jan 14, 2012 10:33 am |
|
|
loop _________________ Banned for spamming his own posts
Last edited by vortexe9000 on Sun Feb 19, 2012 7:14 am; edited 1 time in total |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9249 Location: Greensville,Ontario
|
|
Posted: Sat Jan 14, 2012 11:57 am |
|
|
hmm....I don't see any bias resistors in the RS485 network.....
hmmm... I don't see any caps for any of the xtals of the PICs.... |
|
|
vortexe9000
Joined: 07 Jun 2010 Posts: 50 Location: Banned - spammer
|
|
Posted: Sat Jan 14, 2012 1:38 pm |
|
|
jtgation ? _________________ Banned for spamming his own posts
Last edited by vortexe9000 on Sun Feb 19, 2012 7:15 am; edited 1 time in total |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9249 Location: Greensville,Ontario
|
|
Posted: Sat Jan 14, 2012 2:31 pm |
|
|
I think you're saying that the DS18B20 takes too long to read the temperature compared to the MODBUS communications speed.
The hires sampling takes almost 1 second.
If that is so you have a few options....
1) reduce the resolution of the DS18B20. That will reduce the time necessary to get a reading BUT....it won't be as accurate. See the datasheet for more information.
2)Have the slave PIC continuously read the DS18B20 and save in a temporary buffer. When the master asks for the temperature, get the 'buffered' value instead of telling the DS18B20 to read and send.
3) Slow down the MODBUS serial interface( may not be possible ?).
In my datalogging units I use the DS18B20 and sample at a 1Hz rate. |
|
|
vortexe9000
Joined: 07 Jun 2010 Posts: 50 Location: Banned - spammer
|
|
Posted: Sat Jan 14, 2012 2:51 pm |
|
|
uijjk _________________ Banned for spamming his own posts |
|
|
|