3 ms·
Great work! I don't have any experience with node.js but this looks very cool, and I love that you can just call it up. From your writeup: >This code is mostl
by thechut 14y ago
Great work! I don't have any experience with node.js but this looks very cool, and I love that you can just call it up.
From your writeup:
>This code is mostly self-documenting, however the one area that confused me starting out was that you need to open a Serial port in order to use the WiFly module.
>The one possible issue to note is that you cannot use the Serial monitor or the Serial.print commands because the WiFly has taken over the usual port.
If this was causing debug headaches for you I would reccomend checking out the NewSoftSerial library by Arduiniana[1]. It allows you to turn any digital pins on the Arduino into a UART serial (RX/TX) setup. I use it all the time with Bluetooth or Xbee projects. If you are using Arduino IDE 1.0 it's actually already included, you don't even have to donwload the library, it's called just "SoftSerial" in the library menu I believe.
[1]: http://arduiniana.org/libraries/newsoftserial/ http://arduiniana.org/libraries/newsoftserial/
- jonmarkgo 14y agoCan you use NewSoftSerial for Serial Monitor output? The problem was that the Wireless SD shield connects the RN-XV directly into pins 0/1 (hardware serial) so I was unable to use the Serial Monitor.
- thechut 14y agoI don't have any experience using the wireless SD shield, but after looking at it, I see what you are saying. It forces the connection on 0 and 1 and then has a switch to use when you need to program it? That seems like a silly limitation of the wireless SD shield. I use the Adafruit breakout boards for my Xbee's or wireless modules. You should still be able to use software serial to setup a debugging serial environment, so you can use Serial.print() etc. Here are some references: SoftwareSerial- http://arduino.cc/hu/Reference/SoftwareSerial http://arduino.cc/hu/Reference/SoftwareSerial Wifly Tester- http://arduinology.tumblr.com/WiFly http://arduinology.tumblr.com/WiFly
- jonmarkgo 14y agoI'll have to try that - I was able to use the Wireless SD shield to have a direct connection to the WiFly, but once I switched it back I was unable to use the Serial Monitor - looks like SoftwareSerial might solve that