Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialStephen Poole
9,361 PointsUpdate Arduino code wirelessly using web sockets and Node.js
I am trying to control an Arduino in real time, over a web application, similar to what Andrew Chalkley is doing in the "2." item at this link, http://blog.teamtreehouse.com/7-awesome-things-can-build-node-js .
I need to control two stepper motors using the Arduino Uno and the Adafruit Motor Shield V2 ( https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/overview ). I need to do this WIRELESSLY, however, via the web app (i.e. no usb cable going to the arduino). I found this, http://imall.itead.cc/im121112001.html , which is a "wireless programmer" for Arduino; Will this allow me to update the motors speed and direction parameters in real-time? Please note again that everything I need to do must be done over a web-application.
I have never done anything like this before. Is there anyone that could lay out how I should go about this? I have done both Node.js courses and have looked at Angular.js for the data binding. I just don't quite understand how I can create a fully functional pathway from the web-app UI, to the Node.js, to the wireless Arduino.
Can anyone help me out with this, and also give me an idea of how big a project this is? Like I said, this is my first time dealing with something like this on my own so as much guidance as possible would be appreciated!
Lastly, does anyone know if Arduino is the best way to do this? If someone has a better/easier solution that I could use that would be awesome too!
Thanks very much in advance for the help. Everything is greatly appreciated!
Andrew Chalkley, any chance you can weigh in on this?