I believe it takes ~750 Ms. to complete 1 conversion. With that being said, How are you going to discern if the next pulse is the tach output or the DS output?
I believe it takes ~750 Ms. to complete 1 conversion. With that being said, How are you going to discern if the next pulse is the tach output or the DS output?
Dave Purola,
N8NTA
EN82fn
Yes, so I came to different solution. I also have PWM output pin, which goes into fan PWM in. So I'll hook DS18B20 to it - When I need to use thermometer, I will stop HPWM output on that pin, read the thermometer and then resume HPWM operation. I guess, fan will have enough inertia to have no significant impact on it's rpm.
You do realize 750ms is three quarters of a second? Fan speed will be very wobbly.
George
Fan won't stop in absence of PWM signal. most fans, without PWM signal applied, will default to 30-50% RPM.
hello, you can read several ds18b20 sensors and execute the part of the control that you want to carry out, see the attached file the routine I use in a device for the control of air conditioning and lighting with serial communication.LEER_DS18B20.txt
And a side question, can we use 1-wire protocol to communicate between 2 PICs?
The idea is to have the PIC as a master device and the PIC to request a communication.
So, with the available commands, it is not possible to make a PIC react as a slave 1-wire device.
You have to write your own code for that.
Ioannis
Bookmarks