chipKIT® Development Platform

Inspired by Arduino™

"Serial.println" not working

Created Wed, 27 Jun 2012 02:35:09 +0000 by nilavarasan


nilavarasan

Wed, 27 Jun 2012 02:35:09 +0000

I have 2 statements of "Serial.println" in void loop() not working in Chipkit uno32 but working well in Arduino Uno. Can anyone provide some help if any additional commands required?


Jacob Christ

Wed, 27 Jun 2012 08:02:48 +0000

Have you tried the ASCII Table Sample Sketch? Does it work for you on your chipKIT? It is a good example of how to use the Serial.println(). I think this code is the same on Arduino as well as chipKIT.

Jacob


workstation008

Mon, 28 Jan 2013 15:51:32 +0000

We bought PIC32MAX and Network Shield board. I want to try the demo code of ASCII Table in the MPIDE0023 -window 20120903. Because the Serial is used for uploading firmware, I changed the "Serial" in demo code to "Serial1" and use the pin 19 (RX1), and Pin 18(TX1). I also used a USB/RS232 converter cable which has prolific USB/RS232 chip. When I run the program, what I can see on the serial monitor is wrong characters. It prints a lot of characters on the screen, but it is not readable.

Anybody has the same issue? or any solution? THANKS!


Jacob Christ

Thu, 07 Feb 2013 14:38:01 +0000

Sounds like the baud rate in your code doesen't match your terminal.

You set it in yiur program with the Serial1.begin (9600) or in the terminal with a drop down in the bottom right of the screen.

Jacob