Description
One of the projects in Practical Arduino is the “Online Thermometer”, which combines an Ethernet shield with a number of DS18B20 1-wire temperature sensors to allow you to read multiple temperatures and make the values accessible using a web browser. Here we are using the W5100 chipset on the ethernet shield so it would be 100% compatible with the official shield.
For maximum convenience the project can be built on the Freetronics Ethernet shield using its built-in prototyping area.
Hardware Requirements
Arduino Uno
Freetronics Ethernet Shield
DS18B20 Dallas 1-wire temperature sensor
4K7 resistors
PCB mount 3 pin male connectors
Line mount 3 pin female connectors
Twisted pair cable or alarm cable
Instructions
The circuit couldn’t be much simpler. As explained in Practical Arduino, the DS18B20 temperature sensor uses a bidirectional serial communications protocol to allow a connection between the host (in this case the Arduino) and the device (the temperature sensor) using just a single data wire. That means we only need to run three wires to each sensor: ground, power, and data. For convenience we used 3-pin PCB-mount connectors, and used a pinout to match the pinout of the DS18B20 itself.
analog 0 = digital 14 analog 1 = digital 15 analog 2 = digital 16 analog 3 = digital 17 analog 4 = digital 18 analog 5 = digital 19
digitalWrite( 16, HIGH );
COMMENTS