Anyone tried this out? I'm built my Arduino to sense any thermal changes and trigger an alarm. I want to connect my Arduino to the internet and since I already have a RasPi with a WiFi dongle on it, I thought of connecting my Arduino to the RasPi where I could get the data and expose it as a WebSocket end-point!
It looks like there are a couple of ways to do connect my Arduino with the RasPi, the easiest being the USB connection. Is there any other alternative? At the moment this is just one signal that I'm interested in. Later I'm planning to add a temperature sensor, motion detector sensor and a couple more. I want all those signals to be sent out separately to my RasPi each of which will be exposed as a WebSocket end-points that can be connected by a client. Any thoughts on how I could go about making the connection between my Arduino and RasPi?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
i2c is a chip to chip serial protocol. So it's intended to make ICs talk to each other. USB is universal serial bus. If you can make that work, I think it's ok for you to use that.
i2c is on electronics level, USB is on computer level.
There's a number of communication standards in electronics. There are so many parameters that drive a decision.
I think there's actually a RasPi shield that piggybacks an Arduino. Connections between the 2 devices are fairly natural, since the Arduino has things like analog/digital ports built in. I have a project that would use USB to link to an XBee, which also has nice port options (plus wireless!)
It's possible that the Raspberry Pi might be overkill here, though. If you get an ethernet shield for the Arduino, it can be programmed to provide basic Internet services.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.