Show Posts
|
|
Pages: [1]
|
|
1
|
Topics / Home Automation and Networked Objects / Re: Arduino + Raspberry Pi Thermostat and Zone Control -- Need Guidance
|
on: April 18, 2013, 12:47:37 pm
|
6) What does it take to build a thermostat circuit? For my project, in each room (zone) I installed a Honeywell Round on/off thermostat (T87G1006) It's a power stealing thermostat, so no batteries needed. I've made a small circuit to give a signal to the input port of arduino.  The benefit of this, is that I don't necesserally need a tablet to control the heating system, also I see the actual temperature on the thermostat. The best way for mounting a thermostat/sensor: ca. 1.5 meters above floor, watch out for draught and lightbulbs (warmth).
|
|
|
|
|
5
|
Topics / Home Automation and Networked Objects / Re: Home automation project
|
on: January 22, 2013, 01:38:29 pm
|
|
Wat's exactly the problem? I assume you've connected the relays to an output pin of your webserver (which you control by a webbrowser). Now you've connected a pushbutton to your webserver, also to control the relays. In that case you still know the position of the relay (i.e. the status of the output pin).
|
|
|
|
|
6
|
Topics / Home Automation and Networked Objects / Re: simple home control system
|
on: January 22, 2013, 11:26:04 am
|
|
what happens: If switch 15 == LOW, you jump to afsluiten. millis - starttijd is not greater then 5000, so nothing happens and void loop starts again.
Then again, starttijd = millis, we jump to afsluiten and again (and never will...) millis - starttijd is not greater then 5000.
So make sure you only update starttijd once.
|
|
|
|
|
8
|
Topics / Home Automation and Networked Objects / Re: upload picture using web server to sd card.
|
on: December 20, 2012, 01:49:16 pm
|
|
Yes, it's more or less the same as reading from the SDcard and write it to a webbrowser. In this (opposite) case, you create a loop and write bytes to the SDcard while there are bytes available. Instead of println you use print, because you write a stream of bytes and you don't want any cr/nl inserted. When I've time, I'll look for and post an example.
|
|
|
|
|
9
|
Topics / Home Automation and Networked Objects / Re: upload picture using web server to sd card.
|
on: December 17, 2012, 02:46:03 pm
|
Look for tinywebserver, it has an upload fuction. It's based on the HTML command 'PUT'. Altough PUT is a normal HTTP command, I found out that most webbrowser convert PUT into GET. To bypass this, u can use Javasript, something like: <script type="text/javascript"> // Create the communications object. var xmlhttp; if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } // Set up the request to send data to the server. // Make it synchronous, so we know how page rendering should proceed async = false; resource = "http://192.168.your webaddress"; data = "your file"; xmlhttp.open("PUT", resource, async); xmlhttp.send(data); </script>
If you find tinywebserver to complicated, you can also use Ladyada's sketch: http://www.ladyada.net/learn/arduino/ethfiles.html, which is also often found on this forum. In her sketch, you look for the GET command, but you can easily add a routine which looks for PUT.
|
|
|
|
|
11
|
Topics / Home Automation and Networked Objects / Re: My home automation (webserver + HTML control)
|
on: November 29, 2012, 01:59:02 pm
|
|
Hi,
I'm also working on a similar project as you, hope to see some ideas from you! For now, I've a Mega connected via I2C to the ethernet module (W5100 + arduino together), and the ethernet card has about 20 meter cable (cat 5e) to my router. It's all working fine here, so I think the distance isn't the problem.
Maybe the power isn't enough? Have you tried a 7,5 volt power supply?
|
|
|
|
|
12
|
Topics / Home Automation and Networked Objects / Why's SD -> Ethernet Card -> Webbrowser so slow?
|
on: November 29, 2012, 01:45:07 pm
|
Hello guys, Not a real problem, but could somebody explain why data transfer is so terribly slow: I've an Arduino Ethernet card with 8GB SD card. This SD card contains a complete html code including several jpg's and png's files. It's all working fine: the webbrowser gives a request, arduino delivers the html page via the SD card, the webbrowser asks for the images (as put in the html file) and Arduino sent the files. But an image of approx. 150kB takes about 20 seconds to load, what's the bottleneck around here? (Arduino, Wiznet 5100, SD card, libraries..) In all my simplicity  I think: 8 MHz arduino, pick a byte from SD, sent it over the internet etc., 150kB shouldn't take 20 seconds?
|
|
|
|
|