Show Posts
Pages: [1]
1  Using Arduino / Networking, Protocols, and Devices / Upload values to webpage on: November 10, 2012, 01:24:54 pm
Does anyone know how I can upload the values of certain variables in my Arduino program to a webpage?

I have an Arduino Mega and Wifi Shield
2  Topics / Home Automation and Networked Objects / Re: Help with AC project on: November 10, 2012, 11:15:31 am
Yes Im using XBee radios.

I am planning on my protocol to look similar to this:

(start byte)-(address byte)-(sensor 1 data)-(sensor 2 data)-(end byte).

It would help if you understood the flow. Each uno would send the sensor data to the mega, the mega would analyze the data and send the correct settings back to each uno. Each uno will then analyze the settings and use a motor to turn the vent blades for the air flow calculated by the mega. A xbee will be attached to each arduino board. All the xbees attached to the unos on the vents will be programmed to talk to the xbee on the mega only. So when the mega sends out a 'string', it will be broadcasted to all the xbees. I will leave it up to each uno to read the data and determine what it should do. I cannot do this with the xbees since the xbees have no programmable logic within themselves to read the 'string'.

Does that help make it clearer? And thanks for helping!
3  Topics / Home Automation and Networked Objects / Help with AC project on: November 10, 2012, 10:19:39 am
Hey everybody I need some help,

I am trying to program a system in my house (as a project) that senses the temperature in each room and will control the movable blades on my ac vents. That way I can adjust the flow of air to the area that needs it the most. Ex. If I set my thermometer at 75 degrees, once Room A reaches 75 degrees the system will close the blades on room A's vent so another room (Room B) will get more airflow allowing Room B to cool faster.

I want to use a mega as my main controller and attach an uno to each vent. The unos and mega would communicate wirelessly through some zigbees I have lying around. From my experience with zigbees, whatever I put out on the Arduino's TX pin will be transmitted across the wireless network; no need to worry about zigbee protocols, it is similar to a hard wire connection.

My problem is I need ideas on how to write this program? I need each vent (each has an arduino uno) to send their temperature and motion readings to the main controller (arduino mega), then have the mega calculate the proper air flow for each vent and send the proper flow result to each vent. The only parts I need help with is the communication; calculating the proper air flow I can do on my own. My questions:

How would the mega not mix up the data being sent by two objects it is controlling?
If I tell the mega to start reading when it sees a specified start byte, how do I let it know the following bytes will be the temp and motion data (what commands do I use)?
I am still a beginner with arduino, I will take as much help as possible, thanks!
Pages: [1]