Anyone used NodeJS to control the Create?

12 views
Skip to first unread message

Joshua Pritt

unread,
Mar 29, 2017, 10:07:42 AM3/29/17
to iRobot Create Forum
I have a NodeJS server running on the laptop connected over serial.
I used the C# application by Johnny Chung Lee and that controls the robot just fine.
But I wanted to get rid of the C# application and just drive it directly from a web page without the need to download any plugins or exe's.
So I have it mostly working on the web side of things and can get the drive commands from the client web page to the NodeJS server just fine.
But the part that isn't working right now is sending the actual drive commands to the robot over serial from NodeJS.
My latest version is here:

Specifically, in the serverSerial.js file.  I've tried using the Create-OI and similar NPM packages but those give errors or otherwise do not work.

I think I'm having trouble sending the data as actual Bytes over serial?  My next step is to hook up a Bus Pirate from Dangerous Prototypes and check what the actual serial data looks like coming from the laptop from both the C# app where it works OK, and the NodeJS script where it doesn't.

Jillian Aurisano

unread,
Apr 26, 2018, 1:23:36 PM4/26/18
to iRobot Create Forum
Did you ever get this working? 

Considering a similar project....

Joshua Pritt

unread,
Apr 26, 2018, 5:03:17 PM4/26/18
to irobot-cr...@googlegroups.com
Yep!

I talked to the people that do the SerialPort nodejs package and they had a bug in the windows version.  They admitted they did most of the work in the Linux version of the package.  They fixed the bug and I just updated my SerialPort package for windows.  now it works great and I now just need a faster laptop.  The little ASUS netbook with the Atom processor doesn't have enough CPU speed to compress and decompress two video streams without so much jitter the video is about 10 fps or less.  So its basically undrivable remotely.
As soon as I can afford a faster but still small laptop it will be back in business!

--
You received this message because you are subscribed to a topic in the Google Groups "iRobot Create Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/irobot-create-forum/6H6O3wgJqwY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to irobot-create-forum+unsub...@googlegroups.com.
To post to this group, send email to irobot-create-forum@googlegroups.com.
Visit this group at https://groups.google.com/group/irobot-create-forum.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages