02-11-2015 12:24 AM
Hi there,
so I have multiple things which I am trying to make function in the same sketch: the first is a sketch containing 3 dht sensors, which require a delay between sampling to avoid interference or else they do not work. The second has a pulse timer for a simple 1/0 input which requires continuous sampling. How can I run both of these sensors at the same time? as it stands, I can get either one working in a sketch or the other. Is there a way to structure the dht's to put them in a closed loop, while maintaining other sensors' continuity?
Thanks!
02-16-2015 01:16 AM
I still am having no luck with this. Can anyone offer any hints?
02-16-2015 12:36 PM
solved!
just needed a seperate while loop
02-16-2015 05:43 PM
Just as an FYI, you shouldn't branch the reference wire as explained here (it's the same reasoning for both LIFA and LINX). If you absolutely need to so it that way, you could implement semaphores to prevent the race condition created by branching the resource wire.