Go Down

Topic: Timed Serial communication (Read 668 times) previous topic - next topic

trialex

For a project I want to be able to send data from my PC to arduino at regular intervals, say every 5 minutes. It seems wasteful to have the arduino in a loop waiting for data the wholoe time, is it possible to use the RTS data line of an RS232 connection to trigger the arduino external interrupt which would then recieve the data? seems like a much more efficient way of doing it, especially for remotely powered projects.

thanks!

Alex


mellis

In theory, it should be possible.  In practice I'm not sure if the RTS line is one of the lines of the FTDI chip that are broken out into soldereable pads.  If not, you might be able to control one of the four that are from software, but it may require some low-level code on the computer side.

trialex

Cool. I'm actually not using the USB serial port, I'm using PC Serial Port --> MAX232 --> Arduino pins 0,1,GND.    I was thinking I could connect the PC RTS pin to the Arduino interrupt pin.

mellis

In that case, yea, that should work.  If you search the forum for "sleep" you might find some information on putting the Arduino into power saving mode until an external interrupt arrives.

Go Up