joeweatherballoon asked: I'm attempting to use the USART on my Arduino Pro Mini. I set up pins 0 and 1, and issue begin(9600). When I attempt to write bytes, I see nothing on the TX line. I placed my oscilloscope on the TX line and it doesn't wiggle like I would expect for the data sent by the USART. Can you help?
Hi oeweatherballoon,
Normally pins 0 and 1 on Arduino’s drive the built-in USB … try using 2 and 3.
Also - check the sketch you are using - it should be clear as to which pin it is reading from and writing to.
Cheers,
2:12 pm • 21 April 2013
tpass6 asked: I am currently doing a personal project on a motion control capture. Objective is to capture a state change from the sensor and broadcast it to a server and save the results in a file. The wifi module resides on a main circuit board and the microcontroller sends motion capture signal to the Wifly. I am able to teraterm to the wifly and see the message "Motion captured"displayed. How do I post the message to a host server , save the file and display on a web page? Any help is appreciated.
Hi tpass6,
Cool project!
Take a look at some the examples:
WebTime for polling the Arduino from a server,
WebClientGetPost for sending data to a server process, which could then do logging to a file. It has a couple of .php scripts as examples.
Also, there are data logger examples for the Arduino in healthy supply.
Cheers,
6:13 pm • 3 October 2012
wmdigital asked: Hi, I'm trying to get the WiFly breakout board, WiFly R3 module, and an Arduino Uno to communicate but can't get the sketches to talk to the WiflyModule. Is there a detailed tutorial or some info you know of showing the proper wiring? I just need to triple-check that it's not a wiring issue. I have: DOUT -> RX1 and DIN <- TX0 on the digital side but no luck. Not even running the SpiUartTerminal.
Hi wmdigital,
The Uno R3 would use pins 2, 3 for WiFly’s Rx,Tx as per http://arduinology.blogspot.ca/2012/03/wifly-demo-build.html
Note that this is for a breakout board, not for the SPI-based WiFlyShield.
Cheers,
9:28 pm • 18 September 2012
alexandroalexandro asked: Hello master :) I am trying to make some settings to WiFly rn 131G, but whatever I do, settings are always default on reboot. I also cannot create files. PGIO 9 is not connected, not set to be used as reset defaults and its state is 0 on "show io" command. Any ideas why the "save" does not work? Thanks in advance, Alex
Hi alexandroalexandro,
Note so sure about “master”! But thanks anyway :) .
Try going back to the simplest possible wiring configuration, and the simplest programs, such as WiFly_Tester. Then send the commands for various settings, save, then power-cycle.
If save is working at all, it should show results. Having burned out a WiFly unit it is clear there are finite save cycles. Large, but finite.
Good luck!
1:11 pm • 8 September 2012
willema asked: Hi,I recently purchased the Arduino WiFlyShield (Sparkfun) which is a pin-replacement of the WiFi Proto Shield for the XBee WiFi modules. Is this library and are the examples compatible with this Shield or only with the breakout board version of the WiFly module???
Hi willema,
The WiFlyShield adds a SPI and supporting chips to the RN131 on board. Use their library for working with your ‘duino.
This library supports breakout-boards where the only communications is through a pair of wires.
All the best with your projects!
6:33 pm • 13 July 2012 • 1 note
aeiche asked: Any chance you'd add support into WiFly for additional real UART ports? Devices like the Arduino Mega and the Teensy have hardware UARTs that aren't dedicated to programming and or the USB host.
Hi aeiche,
WiFlySerial depends on SoftwareSerial for its communications. Having a ‘real’ UART to play with on an Uno would have made many things easier.
It should boil down to a substitution of SoftwareSerial with a Serial class aimed at the UARTs. Some #ifdef’s in declaring the uart member variable should accomplish it fairly neatly. Most of the code is independent of SoftwareSerial-specific items.
Send me a Mega and it could happen! Or … I should get this on to GitHub so you could fork the version.
Cheers,
8:26 pm • 2 July 2012
watchinthesunset5703 asked: Hi, I'm a programmer who is completely new to arduino boards and everything related. I'm working on a project where I need to connect an arduino board to a wifly chip, and be able to send data from the arduino to the wifly chip. I have the arduino board and wifly shield physically connected with pins, and both are powered and seem to be working, but I can't figure out how to program the arduino board to communicate with the wifly. Could you please help? I need simple instructions, if possible.
Hi watchinthesunset5703,
Review the WiFlySerial examples as a start.
The basic idea is that the WiFly is a serial terminal from the Arduino’s perspective. You send it either instructions or data, depending on the mode it is in, along the same channel.
Using the WiFlySerial library, open a connection.
Once it is open, it will be in a data mode. Keep sending data via uart.write() or print() until all out of data.
Then call the closeConnection() function to end the connection.
Keep us posted with your progress!
Cheers,
9:50 am • 30 June 2012
predoklesec asked: is there an UDP sample? I would really like to see one :D
Yes there is, but it fell off.
UDPsample will be returned to the fold shortly.
9:33 am • 30 June 2012
theblueboyhouse asked: Hey! could you help me out with setting up wifly on arduino uno R3 and using ipad to control an LED? kinda new to arduino programming and all. thanks in advance! hope to hear from you soon :) cheers! kai :)
This is a worthwhile goal!
The theory is to have the Arduino/WiFly act as a UDP server, listening for signals from an iPad, then responding to instructions.
It’s among the next items on the list to simplify. You can achieve it through the base WiFlySerial library but it is a tad “involved”.
Cheers,
9:31 am • 30 June 2012
olm--e asked: hello, I'm trying to hook a razor 9DOF IMU to a wifly to get the position of the board in realtime through a UDP connection. with the mod I done from the UDPsample exemple, I can't get a good connection : the wifi connection establish correctly, but I generaly only receive "one" packet... could you look at the problem? I think this kind of datastream is nice for some sort of remote sensing (see sourceforge forum for detail and code) -- thanks a lot
Hmm… UDPSample has been reasonably solid over several days…
UDP for the fancy C/S libraries is up next now that time pressures should be reduced, and have mostly recovered from Scout camps.
Will look into it!
Cheers,
9:27 am • 30 June 2012