How to connect using arduino mega. I am not getting the signal pin connection only .
@NidhiOchani-g6y3 ай бұрын
im interfacing it with an esp32, and getting the celsius value as -127 constantly i looked it up online and they said its a wiring error, so i did it as they said, used a 4.7k pullup resistor and it still doesnt work, pls help
@surajkumarsingh750822 күн бұрын
Well I think your sensor is damaged. mine is too!🙂
@patrickmclaughlin60133 жыл бұрын
How far away from the Mc can you put the sensor?How about an rtc ? same same?
@diyengineers3 жыл бұрын
Hi Patrick, I have never tested the sensor in long ranges. Main concerns would be potential noise, and voltage drop. For the DS18B20, the required input voltage is 3.0V - 5.5V. So assuming you connect to the 5V pin on the Arduino, you could take the sensor as far as the cable voltage drop allows you. The voltage drop will be dependent on the length of the cable used, the cable gauge, and the working current (max active current according to the datasheet is 1.5mA). See this website for a table showing the cable resistance (in Ohms) per 1000 feet: www.powerstream.com/Wire_Size.htm Then look at the cable sending the signal to the arduino. That cable will have its own voltage drop going from the sensor to the digital input. The Arduino UNO digital input pins require at least 3.0V to consider the signal at HIGH. So you want to make sure your voltage drop from the sensor to the Arduino digital input pin doesn't cause the signal voltage to drop below 3.0V. You can run some quick calculation Voltage_drop = current * cable resistance. Thanks for watching!