Pages: [1]   Go Down
Author Topic: Using serial port on Uno  (Read 561 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible to use the serial usart on an Uno for TTL level serial comms?  I suspect the only way to do it would be to cut the tracks to the ATmega8U2 - thus disabling the USB connectivity - something I don't want to do - defeats the object of it being a dev board.

Work-around is likely putting the a micro-controller on some strip board and swap between a GPS module and a FDTI usb / serial cable using a 3.5mm jack.

Thanks

Pete
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 553
Posts: 46266
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why not connect the GPS to two digital pins, and use NewSoftSerial to read the GPS?
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
Why not connect the GPS to two digital pins, and use NewSoftSerial to read the GPS?

Eventual plan is to make a datalogger / autopilot.  Therefore I need to do stuff continuously, the old software serial would hang awaiting input.  The website for NewSoftSerial is down at the moment but I would expect it to do the same?

Pete
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16564
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The latest NSS library uses interrupts and a received character buffer to handle incoming serial data, just like the hardware serial handler.

Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks,  I'll have to have a play.

Pete
Logged

Pages: [1]   Go Up
Jump to: