Notes : raspberrypi-nodejs-arduino

Thank you for posting this detailed tutorial. It enable me to complete my own project.

Dawn
2016-09-09T19:22:22+00:00@GMT-07:00 c-???.comcast.net ()

You can probably cut more cost by replacing the Arduino-based analog temperature sensors with DS18B20 1-Wire digital temperature sensors, which can be attached directly to the Pi, and happens to have Linux kernel driver support. Then you just simply rewrite your Node.js file to read temperature from the device directly. DS18B20s can be as cheap as €1/each or less.

Max
2015-04-13T19:07:26+00:00@GMT+08:00 69.163.???.??? (US)

Amazing...I learn a lot from this..thank you

Gabri
2015-01-09T18:28:56+00:00@GMT+01:00 ???.rima-tde.net (ES)

Bravo !

Aybert
2014-11-25T20:48:54+00:00@GMT+01:00 AMontsouris-???.wanadoo.fr (FR)

Merci pour ce tuto fort utile.

franssoa
2014-11-15T11:13:31+00:00@GMT+01:00 adsl-???.adslplus.ch (CH)

salut
je suis sur un projet de communauté dans le but de développer une gestion automatique climatique https://ardui-farm.sonetin.com si tu pense pouvoir changer le monde! vas voir je compte sur toi !

sqdvsc
2014-10-18T14:58:00+00:00@GMT+02:00 213-???.numericable.fr (FR)

@Dayd : merci pour le commentaire, et je me m'aperçois que je dois adapter mon système de commentaires pour l'IPv6...
Edit : fait :-)

Alex
2014-09-29T17:48:45+00:00@GMT+02:00 ???.fullrate.dk (DK)

Merci, tuto très sympa :)

Dayd
2014-09-29T16:27:30+00:00@GMT+02:00 2a01:e34:eddc:40b0:5cd3:??? (FR)

Anonyme : Cela dépend de la manière dont vous l'avez installé, et grosso modo pareil que l'installation

Alex
2013-08-21T20:10:53+00:00@GMT+02:00 1006ds4-???.fullrate.dk (DK)

Comment mettre à jour nodejs?

Anonyme
2013-08-21T12:36:43+00:00@GMT+02:00 ???.a2mac1.com (FR)

Mauris : Vous pouvez tout à fait remplacer node.js par autre chose. Pour la partie communication avec Arduino, il suffit ainsi de lire et écrire dans /dev/ttyACM0 par exemple en script shell. Pour la partie serveur HTTP, mieux vaut utiliser un petit serveur Web existant, mais ce n'est pas indispensable.

Alex
2013-07-23T08:07:36+00:00@GMT+02:00 1006ds4-???.fullrate.dk (DK)

Ce tuto est très intéressant mais je ne connais pas le JavaScript est-il possible de "convertir" le code de la partie Rasberry pi en C car mon projet de Domotique utilise des routines en C qui communiquent avec une interface web via bdd mysql... faire communiquer une rasberry pi et une platine Arduino serait génial pour mon projet de domotique

Mauris
2013-07-22T15:46:19+00:00@GMT+02:00 ???.sfr.net (FR)

Gianninou : Voyez https://npmjs.org/package/i2c

Alex
2013-07-16T09:40:26+00:00@GMT+02:00 1006ds4-???.fullrate.dk (DK)

Bonjour,
Savez vous si c'est possible de passer par un branchement i2c ? J'ai vu un tuto qui le faisait (http://blog.oscarliang.net/raspberry-pi-arduino-connected-i2c/) mais c'est du python or je veux utiliser nodejs. Savez vous comment je peux faire ?
Cordialement.

Gianninou
2013-07-15T20:34:06+00:00@GMT+02:00 2a01:e34:ee64:7a90:7061:??? (FR)

Salut
Beau travail, cela va me donner des idées pour hacker mon ninjablocks.
j'essaye de shutter le cloud que le ninjablocks contact afin d'avoir une solution locale.

ptitpat
2013-06-02T13:10:12+00:00@GMT+02:00 mut38-???.proxad.net (FR)

Merci.

Ceber
2013-04-16T19:00:28+00:00@GMT+02:00 AStrasbourg-???.wanadoo.fr (FR)

Excellent write-up.
I like this solution because it leverages the ethernet and linux TCP/IP stack, and allows the microcontroller to utilize its timers and resources well.
It is cheaper than buying an ethernet shield too.

Cheshire
2013-01-30T23:29:10+00:00@GMT-06:00 ???.watlow.com (US)

spleener: See SerialPort.write()

Alex
2013-01-28T12:22:38+00:00@GMT+01:00 ???.dtu.dk (DK)

There seems to be issues with installing/compiling serialport. I have posted my issues on their github....nice write-up by the way.

Mike
2013-01-17T21:21:46+00:00@GMT-08:00 50-???.sonic.net (US)

how to send data to the arduino if you have a two-way communication between the pi and the arduino? my arduino is waiting for a command from the pi and will answer with the data.

spleener
2013-01-12T01:07:36+00:00@GMT+01:00 95-???.superkabel.de (DE)

barbudor: See node-serialport issue#81 on Github
I will try to update my document to make it a bit more general.

Alex
2012-10-01T21:08:44+00:00@GMT+02:00 1006ds4-???.fullrate.dk (DK)

Bonjour Alex,
I have tried your procedure as above, instead using for now NodeJs on a Xubuntu PC instead of the RPi.
However I get the errors below when running "node index.js"
I believe this is a problem of NodeJs configuration, note finding somethig about the serialport module.
I am running under my normal account on Xubuntu.
Any idea ?
[code]
barbu@XuDev:~/public_html$ node index.js
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Could not load the bindings file. Tried:
-> /home/barbu/public_html/node_modules/serialport/build/Debug/serialport.node
-> /home/barbu/public_html/node_modules/serialport/build/Release/serialport.node
-> /home/barbu/public_html/node_modules/serialport/out/Debug/serialport.node
-> /home/barbu/public_html/node_modules/serialport/Debug/serialport.node

barbudor
2012-09-29T18:45:33+00:00@GMT+02:00 cla92-???.proxad.net (FR)

Georg: I cannot tell for sure if the stability problem comes from a random defect with my Arduino shields’ hardware. The WIZnet W5100 ship crashes after a while, does not answer to ping, and the only approach is a hardware reset. But I can see that I am not alone. See for instance some of the discussions on arduino.cc/forum and forum.freetronics.com.

Alex
2012-06-25T14:21:48+00:00@GMT+02:00 1006ds4-???.fullrate.dk (DK)

Can you elaborate on why the Arduino Ethernet Shield is unstable? I'm about to get into the Arduino world and thought about getting an Arduino clone with integrated Ethernet on the same board, e.g. like the EtherTen from Freetronics. So, what exactly is the problem with the Ethernet Shield?

Georg
2012-06-25T13:43:37+00:00@GMT-04:00 207.45.???.??? (US)

Michael: Yes, I am aware of the GPIO, as I write in the article. The point here is to have a cheap plug-and-play solution with good community support, and Arduino plays this role. This article is also intended to address some of the concerns raised on the Arduino vs. Raspberry Pi matter. Obviously, people with good electronic skills did such things ages before Arduino; but I am a software guy.

-erle-: I did not write that I use the Raspi solely as an Ethernet shield… My plan is to use it as the brain for more home automation. Indeed, in this setup, the Arduino can be seen the other way around, namely as an extension to the Raspberry Pi. However, the point is that Raspi is both cheaper, and to my experience much more stable, than the Arduino Ethernet shield, so the title used by Hack a Day is still valid.

Alex
2012-06-25T12:22:56+00:00@GMT+02:00 1006ds4-???.fullrate.dk (DK)

You know you could put the sensors through a ADC so the sensor can be used directly through the digital GPIO pins on the pi

Michael
2012-06-25T11:38:35+00:00@GMT+01:00 94-???.co.uk (GB)

Hmmm .. instead of using the raspberry pi as the arduino's ethernet shield, why not take a raspberry pi-centric view and think of it as a raspberry pi application using an arduino to gather sensor data? You could do more with a raspberry pi, u know. :D
Just a suggestion.

-erle-
2012-06-25T03:41:21+00:00@GMT+08:00 217.24.???.??? (DE)
https://alexandre.alapetite.fr