Hi all,
It's been a while since I posted last! Still see many of the "old guys" here....
I'll get straight into it: I have a project where I have to log 24 separate temperature points every 5 seconds or so.....
So I am thinking 24 x DS18B20 and a 40X2 would work.... with serout to a serial capture recording program such as RealTerm.
I tried a small scale test with 4 x DS18B20's and the following code:
main:
owout b.4,%1001,($CC,$44)
owout b.3,%1001,($CC,$44)
owout b.2,%1001,($CC,$44)
owout b.1,%1001,($CC,$44)
pause 750
owout b.4,%0001,($CC,$BE)
owin b.4,%0000,(b0,b1)
owout b.3,%0001,($CC,$BE)
owin b.3,%0000,(b2,b3)
owout b.2,%0001,($CC,$BE)
owin b.2,%0000,(b4,b5)
owout b.1,%0001,($CC,$BE)
owin b.1,%0000,(b6,b7)
sertxd (#w0,",",#w1,",",#w2,",",#w3,13,10)
goto main
Seems to work well with 4 temperature sensors, but can anyone see any issues at all as to why it wouldn't work with 24 or even 30 separate temp sensors? ie. hardware limitations, pin limitations, speed of execution, etc?
I'd hate to purchase all the bits only to find out that there is some sort of problem interfacing so many sensors?
FYI This is for monitoring the fluid flow of thermal currents inside a large cylinder.
I have checked the documentation, and it appears that the readtemp12 and the owout and owin commands all work on any i/o pin of the 40X2. Any other thoughts where this could go horribly wrong?
Cheers, Haxby.
It's been a while since I posted last! Still see many of the "old guys" here....
I'll get straight into it: I have a project where I have to log 24 separate temperature points every 5 seconds or so.....
So I am thinking 24 x DS18B20 and a 40X2 would work.... with serout to a serial capture recording program such as RealTerm.
I tried a small scale test with 4 x DS18B20's and the following code:
main:
owout b.4,%1001,($CC,$44)
owout b.3,%1001,($CC,$44)
owout b.2,%1001,($CC,$44)
owout b.1,%1001,($CC,$44)
pause 750
owout b.4,%0001,($CC,$BE)
owin b.4,%0000,(b0,b1)
owout b.3,%0001,($CC,$BE)
owin b.3,%0000,(b2,b3)
owout b.2,%0001,($CC,$BE)
owin b.2,%0000,(b4,b5)
owout b.1,%0001,($CC,$BE)
owin b.1,%0000,(b6,b7)
sertxd (#w0,",",#w1,",",#w2,",",#w3,13,10)
goto main
Seems to work well with 4 temperature sensors, but can anyone see any issues at all as to why it wouldn't work with 24 or even 30 separate temp sensors? ie. hardware limitations, pin limitations, speed of execution, etc?
I'd hate to purchase all the bits only to find out that there is some sort of problem interfacing so many sensors?
FYI This is for monitoring the fluid flow of thermal currents inside a large cylinder.
I have checked the documentation, and it appears that the readtemp12 and the owout and owin commands all work on any i/o pin of the 40X2. Any other thoughts where this could go horribly wrong?
Cheers, Haxby.