[singlepic id=196 w=300 float=center]
The Circuit
We start our description of the hardware on this card from the temperature sensor: it is a DS18B20 equipped with a logic that can express in binary format, two bytes, the temperature measured by its sensor element and the data on the surveys are made available through a serial communication channel called one-wire.
The Ethernet module is a WIZNET network adapter that can be interfaced via the SPI bus (Serial Peripheral Interface) 4-wire.
The module is a WIZ811MJ ethernet (IEEE 802.3/802.3) and W5100-based chip with full magnetic filters ethernet connector and 2 LEDs for status signaling. The module communicates with the microcontroller by SPI. It works with 3.3 Vcc and the 3V3 are provided by Arduino.
The connector J3 is that counts the largest number of connections: it comes from the control signal of the transistor T1, the controller of the relay RL1 (in parallel with the coil there is the LED LD2, signaling, the excitement of the relay). Through J3 the Arduino reads status of buttons P1 and P2 and the input IN, all with pull-up resistor. The yellow LED LD1 is used to give the state mode or assist the setting of operation modes made with the P1 button. This allows you to choose between modes of operation of the system: sensor, manual or thermostat. Pressing once set the system in the sensor mode (automatic) and that this operation is indicated by a flashing dell’LD1, two pressures set the sistem in manual mode (command from web page), which is indicated by two flashes Led. Finally, three pressures set the system in thermostat mode (slave input IN), and this is communicated by three consecutive flashes dell’LD1. Pressing the button P1 returns the sistem in the first mode.
As for P2, currently not used and is reserved for future developments.
[singlepic id=198 w=320 h=240 float=center]
[singlepic id=195 w=320 h=240 float=center]
[singlepic id=197 w=320 h=240 float=center]
[singlepic id=203 w=320 h=240 float=center]
R1: 4,7 kohm R2: 10 kohm R3: 470 ohm R4: 4,7 kohm R5: 4,7 kohm R6: 4,7 kohm R7: 4,7 kohm R8: 4,7 kohm U1: WIZNET U2: DS18B20 P1: Microswitch P2: Microswitch LD1: led 3 mm yellow LD2: led 3 mm red T1: BC547 RL1: Relé 5V D1: 1N4007 - Screw connector 2 via - Screw connector 3 via - Strip male 6 via(2 pz.) - Strip male 8 via (2 pz.) - Strip female 10 via (4 pz.) - PCB |
<Previous page – Next page>
Great job- very impressive!
What kind of tool did you use to create the HTML code?
That is one place where I lack experience, and I am working on a similar project.
Also, how can one make the site secure to avoid tampering by unauthorized users?
Many thanks!
Thank you,
I use simple Notepad++ and test the page on the various browser.
The page is very simple.
You can add a login page on Arduino
Take a look http://www.arduino.cc/playground/Code/WebServer
[…] (http://www.open-electronics.org/web-thermostat-with-arduino/)Alarm systems (http://www.abbotsfordsecurityalarms.ca/blog/?p=12)Appliance controllers […]
Hi Boris. Very good job. Thanks for the information.
I have one question: in order to get/set current data in the board from Pachube, do you connect directly arduino RJ45 cable to your home router?
Thanks in advance!
Hi Alex, in the sketch there are all network config.
To send data to pachube and set temperature you have to connect the board to ethernet
[…] Visto en Open Electronics + Pachube + Descargar esquema, PCB, firmware y […]
[…] Web thermostat with Arduino […]
[…] Web thermostat with Arduino […]