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.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.