NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Support Forum » Question about reading the output from the serial port

May 20, 2010
by CyberGod
CyberGod's Avatar

Hi, I am trying to read the output on the serial port on windows using putty as my client but all I see is garbage. What settings do I need to put, I have the correct COM port and all else is by default. This is how I write to the serial port:

uart_init(); FILE uart_stream = FDEV_SETUP_STREAM(uart_putchar, uart_getchar, _FDEV_SETUP_RW); stdin = stdout = &uart_stream; printf_P(PSTR("%.2f Volumern"), somevariablehere);

Thanks!

May 20, 2010
by hevans
(NerdKits Staff)

hevans's Avatar

Hi Cybergod,

The default baudrate on Putty is not right, you have to set it to 115200. There is a screenshot of the proper Putty configuration on our Servo Squirter tutorial.

Humberto

Post a Reply

Please log in to post a reply.

Did you know that talking to the microcontroller over the USB/Serial link is easy under Windows, Linux, and OS X? Learn more...