Skip to main content
rearranged because someone nicely added a link for me :)
Source Link

I very recently accompished this with node-serialport.

The following link explains a good strategy for full control over the Arduino.

Edit: someone edited and added a link for me :)

My Solution

Check out arduino/serial.ino, pi/server.js and pi/views/profile.ejs. Server.js opens the serialPort and a socket with profile.ejs. When something happens on the profile.ejs it triggers serialPort.write( buffer, encoding ) in server.js;

Just an FYI by default the Arduino Uno resets when a serial connection is opened. If you try and send data without waiting a second or two after the serial connection is opened, it will fail. I found that this problem resolved itself when I required human interaction to trigger serialport.write(). Another solution can be found by googling DisablingAutoResetOnSerialConnection.

Edit: someone edited and added a link for me :)

My github repository

Check out server.js and /views/profile.ejs. Hope this helps!

@bobbyg603

I very recently accompished this with node-serialport.

The following link explains a good strategy for full control over the Arduino.

Just an FYI by default the Arduino Uno resets when a serial connection is opened. If you try and send data without waiting a second or two after the serial connection is opened, it will fail. I found that this problem resolved itself when I required human interaction to trigger serialport.write(). Another solution can be found by googling DisablingAutoResetOnSerialConnection.

Edit: someone edited and added a link for me :)

My github repository

Check out server.js and /views/profile.ejs. Hope this helps!

@bobbyg603

I very recently accompished this with node-serialport.

The following link explains a good strategy for full control over the Arduino.

Edit: someone edited and added a link for me :)

My Solution

Check out arduino/serial.ino, pi/server.js and pi/views/profile.ejs. Server.js opens the serialPort and a socket with profile.ejs. When something happens on the profile.ejs it triggers serialPort.write( buffer, encoding ) in server.js;

Just an FYI by default the Arduino Uno resets when a serial connection is opened. If you try and send data without waiting a second or two after the serial connection is opened, it will fail. I found that this problem resolved itself when I required human interaction to trigger serialport.write(). Another solution can be found by googling DisablingAutoResetOnSerialConnection.

Hope this helps!

@bobbyg603

added 9 characters in body
Source Link

I very recently accompished this with node-serialport.

The following link explains a good strategy for full control over the Arduino.

Just an FYI by default the Arduino Uno resets when a serial connection is opened. If you try and send data without waiting a second or two after the serial connection is opened, it will fail. I found that this problem resolved itself when I required human interaction to trigger serialport.write(). Another solution can be found by googling DisablingAutoResetOnSerialConnection.

Sorry I don't have 10 reputation points so I can only post 2 links. If you would like to see how I accomplised this let me know, I'llEdit: someone edited and added a link you to my github project.

Link to my Githubfor me :)

My github repositoryMy github repository

Check out server.js and /views/profile.ejs. Hope this helps!

@bobbyg603

I very recently accompished this with node-serialport.

The following link explains a good strategy for full control over the Arduino.

Just an FYI by default the Arduino Uno resets when a serial connection is opened. If you try and send data without waiting a second or two after the serial connection is opened, it will fail. I found that this problem resolved itself when I required human interaction to trigger serialport.write(). Another solution can be found by googling DisablingAutoResetOnSerialConnection.

Sorry I don't have 10 reputation points so I can only post 2 links. If you would like to see how I accomplised this let me know, I'll link you to my github project.

Link to my Github

My github repository

Hope this helps!

@bobbyg603

I very recently accompished this with node-serialport.

The following link explains a good strategy for full control over the Arduino.

Just an FYI by default the Arduino Uno resets when a serial connection is opened. If you try and send data without waiting a second or two after the serial connection is opened, it will fail. I found that this problem resolved itself when I required human interaction to trigger serialport.write(). Another solution can be found by googling DisablingAutoResetOnSerialConnection.

Edit: someone edited and added a link for me :)

My github repository

Check out server.js and /views/profile.ejs. Hope this helps!

@bobbyg603

I very recently accompished this with node-serialport.

The following link explains a good strategy for full control over the Arduino.

Just an FYI by default the Arduino Uno resets when a serial connection is opened. If you try and send data without waiting a second or two after the serial connection is opened, it will fail. I found that this problem resolved itself when I required human interaction to trigger serialport.write(). Another solution can be found by googling DisablingAutoResetOnSerialConnection.

Sorry I don't have 10 reputation points so I can only post 2 links. If you would like to see how I accomplised this let me know, I'll link you to my github project.

Link to my Github

My github repository

Hope this helps!

@bobbyg603

I very recently accompished this with node-serialport.

The following link explains a good strategy for full control over the Arduino.

Just an FYI by default the Arduino Uno resets when a serial connection is opened. If you try and send data without waiting a second or two after the serial connection is opened, it will fail. I found that this problem resolved itself when I required human interaction to trigger serialport.write(). Another solution can be found by googling DisablingAutoResetOnSerialConnection.

Sorry I don't have 10 reputation points so I can only post 2 links. If you would like to see how I accomplised this let me know, I'll link you to my github project.

Hope this helps!

@bobbyg603

I very recently accompished this with node-serialport.

The following link explains a good strategy for full control over the Arduino.

Just an FYI by default the Arduino Uno resets when a serial connection is opened. If you try and send data without waiting a second or two after the serial connection is opened, it will fail. I found that this problem resolved itself when I required human interaction to trigger serialport.write(). Another solution can be found by googling DisablingAutoResetOnSerialConnection.

Sorry I don't have 10 reputation points so I can only post 2 links. If you would like to see how I accomplised this let me know, I'll link you to my github project.

Link to my Github

My github repository

Hope this helps!

@bobbyg603

Source Link
Loading