Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 64
61  Community / Bar Sport / Re: Your latest purchase on: March 13, 2013, 01:53:38 pm
I had to give up on hot glue.  Darn stuff gives way in the AZ heat.  Now, that epoxy putty that come in a clear cylinder; that stuff is the bomb.

And, you keep looking, I've jumped in on some of your finds and look forward to doing it again.
62  Topics / Home Automation and Networked Objects / Re: Sending signals to the xBee Transmiter on: March 10, 2013, 12:26:08 am
Check in the forum on networking.  There are a lot of internet related posts there that you can get information from.
63  Topics / Home Automation and Networked Objects / Re: Sending signals to the xBee Transmiter on: March 10, 2013, 12:05:09 am
Then the code you have is a reasonable place to start, hook it up and give it a try.  However, change the delays in the code from 10 to a 1000 or more.  The unit for delay is millisecond and 10 isn't enough for the transmitter and 10 on the receiver won't be enough to sound a bell or alarm or whatever.  Use a second on the transmitter and around 500 on the bell to start off with.
64  Topics / Home Automation and Networked Objects / Re: Sending signals to the xBee Transmiter on: March 09, 2013, 11:25:15 pm
Which series of XBees are you using 1 or 2?  To do what you want to do using strictly transparent mode, they have to be set up as coordinator and router (or end device).  There's a number of things you need to do to get this to work.  What have you set up so far?

But basically, the code you have should get you started if the XBees are already set up and ready to go.  One of the folk on this forum has a blog post for getting started the first time with a series 2 XBee it's here <link> Take a look and then give it a try.
65  Using Arduino / Networking, Protocols, and Devices / Re: Cosm library broken? on: March 08, 2013, 05:51:25 pm
Terry King (one of the folks on this forum) has a nice example of posting multiple values.  Take a look and see if it helps.
http://arduino-info.wikispaces.com/Cosm-Arduino
66  Using Arduino / Networking, Protocols, and Devices / Re: xbee is not transmitting on: March 08, 2013, 12:49:15 am
What you're seeing is the entire API packet.  Check out the XBee user's guide and you'll see all the stuff like the start sentinel, length, frame type, etc.  The extraneous stuff is actually necessary to get the packet to where it's actually going.  There a lot of things you need to know that would probably bore the other readers of this thread, and I think I summed them up on my blog.  So, go there, prowl around a bit, and then ask any left over questions you have.  Sound fair?  Start here <link>

You'll be most interested in the stuff I have on using the XBee library.
67  Using Arduino / Networking, Protocols, and Devices / Re: xbee is not transmitting on: March 07, 2013, 11:41:19 am
This looks like you're using the wrong XBee library.  You have to get the latest that has been updated to use software serial.  I can't remember where I picked it up, but I think it was here: https://code.google.com/p/xbee-arduino/  on the downloads page.  They also recommend using altsoftserial, but I don't for my stuff because it limits which pins can be used and 9600 is plenty fast for my stuff.
68  Topics / Home Automation and Networked Objects / Re: Standalone Datacollecting Webserver on: March 06, 2013, 05:22:37 pm
You can send the data from a lot of sensors to cosm.  I send several to them.  The provide an easy way to get graphs, one data set at a time.  If you want to graph temperature and humidity, it's easy to send them the data and get graphs for each of them.  If you want both of them on the same graph, it gets harder.  The graph I have is temperature and power usage; that took some javascript code to do.  I just used the google graph api and some javascript code to do mine.

Take an actual look at cosm, they have a ton of articles on how to send the data and get it back to do something with.
69  Topics / Home Automation and Networked Objects / Re: Standalone Datacollecting Webserver on: March 06, 2013, 11:14:53 am
I collect and store data on cosm for my house; have been doing this for a few years now.  I have an arduino 2560 that acts as a collector for the various sensors and controls around the house and I send some of the data up to cosm, emoncms, and thingspeak.  The reason I send it to all three of these is that I wanted to try out as many of the cloud storage services for this kind of thing as I could.  The arduino collector also serves as a web server for control and monitoring of the house.  I can load its web page and it will tell me what's going on and I can change things if I want to.  

I put together some json code and it runs in the user's browser to present a graph of temperature and power usage for a 24 hour period.  I did it this way because I wanted it to be as close to real time as possible and I wanted to be able to expand the graph enough to see what appliances were running (you get to know them intimately over time).  The cool thing about using the user's browser is that the arduino doesn't have to do any work, it just sends code to the browser.  The json code is held on a cloud server as well so that it doesn't take up space on the arduino.

You can see the screen I put up to monitor the house, but remember, it's an arduino with 4 simultaneous connections, so you may have to try a couple of times to actually get in.  Once you get in and the page starts to load, the data for the last 24 hours is gathered and presented on your browser, so it may take 10 seconds or so to collect, and sometimes cosm will time out first.  The timeout doesn't happen very often so it doesn't bother me.  If you hit it with a cell phone, the little browsers on them sometimes don't like the iframe that holds the graphs and gauges, just use a different browser or use a pc.

This is very much a work in progress and probably will be for a long time.  I change it pretty often, mostly because I can, but sometimes I add or change something based on experience. The little arduino is at <link>, but be kind to it, it's only a little arduino, not a bank of servers like google or bing.

Oh, I also write about this setup on my blog, see the signature line for the link.
70  Topics / Home Automation and Networked Objects / Re: Arduino reset when serial buffer overflows? on: March 05, 2013, 01:37:47 pm
Good point.  You may be stuck without an answer until something kicks it into failing again and you have the time to chase the problem.
71  Topics / Home Automation and Networked Objects / Re: Arduino reset when serial buffer overflows? on: March 05, 2013, 01:15:21 pm
The difference between the two is that the XBee will automatically retry the transmission.  This means a longer transmission time if it can't get the message out.  This will use a little more power, but it doesn't sound like enough to kill things.  I'm not familiar with the shield, could it have something floating around the reset pin?  Maybe pull it high as an experiment or something.

I had an arduino close to a permanent magnet motor (a big one) and the reset pin had a wire running to a switch on the side of the enclosure.  The arduino would reset sometimes because the wire picked up enough noise from the motor to actually reset the board.  Totally random event and it was easy to fix by filtering the stupid wire.  Took a while to figure out though since my presence in the noise field would cause it to stop having a problem.  Every time I sat and watched the thing to see what was going on, it quit failing.
72  Topics / Home Automation and Networked Objects / Re: Arduino reset when serial buffer overflows? on: March 05, 2013, 12:57:26 pm
Before you give up on the idea though, take a quick check of the voltage to the power pin on the processor.  It could drop while the VIN is staying stable.  I've never seen this on an arduino, but I have on other devices where the 3.3 volts is derived from 5V regulator instead of the VIN.  I suspect it is staying stable because it didn't die when you moved the antenna.

But, there a lot of arduinos out there that have nothing hooked to the serial pins when they are running, and they're putting debug info out the serial port all the time without any problem.  I have a bunch of those and they never reboot because of buffer overflows.

73  Topics / Home Automation and Networked Objects / Re: Arduino reset when serial buffer overflows? on: March 05, 2013, 12:35:10 pm
No, the arduino doesn't reset when the serial buffer overflows.  I took a look at your code and didn't see anything that would obviously cause it to reboot.  However, it's just slightly possible that your robbing the device of power during transmission.  I say this because I had an arduino that was rebooting (I didn't know, it was hidden away) when it was transmitting.  Seems the XBee was sucking the life out of the power supply and lowering the voltage enough to cause a reboot periodically and unpredictably.  A new power supply fixed this problem.
74  Using Arduino / Project Guidance / Re: Do you need wireless shield for xbees? on: March 03, 2013, 11:43:55 pm
shields are nice and make the combination of devices convenient, but not absolutely necessary.  The serial pins are 5V tolerant and the arduino has a 3V supply.  I recommend choosing a shield that will meet your needs, but if you haven't when the XBees arrive, you can always wire them in direct to start your project.  Also, you don't need a full blown shield, there are breakout boards that can do the job.  Sparkfun and adafruit both have them and there are others out there.  Search around and read their capabilities before choosing, don't just grab the first one you run across.
75  Topics / Home Automation and Networked Objects / Re: server client togheter on: March 03, 2013, 09:55:39 pm
Let me sure I understand.  You want one arduino to be both a client and a server, and you have another arduino that you want to be a server.  So, the PC as a client sends to the first arduino which turns on a light, then that arduino sends to the second one that also turns on a light.

If I got that correct, you can certainly do it.  You'll have to combine the server and client examples in the playground on one of the arduinos which is a little confusing, but I've done it a few times successfully.  The the second arduino is just the client example, or you can duplicate the first arduino and just not use the client code until later when you expand the system.
Pages: 1 ... 3 4 [5] 6 7 ... 64