InmaculadaDiaz

First time Papilo ZPUino

Recommended Posts

It looks like your baud rate is not correct. Is it set to 9600 baud ?

 

Care to post the sketch you are testing ?

 

It's the tutorial "Run Hello World Example" : 
 
void setup() { 
  //Setup Serial port
  Serial.begin(9600); 
  // prints Hello World
  Serial.println("Hello World!");
}
 
void loop(){
  // prints Hello World over and over
  Serial.println("Hello World!");
}
 
Serial terminal is 9600 in ZAP and  Putty too.
Programmer: Papilio programmer
I have connected Papilio by USB at port COM5.
 
Thanks for quick reply :D

Share this post


Link to post
Share on other sites

Hello,

 

Is COM5 the second serial port that is showing up? If you unplug the Papilio you should see the COM ports go away, then plug it back in and see if two COM ports show back up. The second one that shows up should be the correct one.

 

The output you posted before looks like a speed mismatch... Can you try different speeds than 9600 and see if it's any better?

 

Thanks,
Jack.

Share this post


Link to post
Share on other sites

Hello,

 

Is COM5 the second serial port that is showing up? If you unplug the Papilio you should see the COM ports go away, then plug it back in and see if two COM ports show back up. The second one that shows up should be the correct one.

 

The output you posted before looks like a speed mismatch... Can you try different speeds than 9600 and see if it's any better?

 

Thanks,

Jack.

 

I do this: 
 
void loop(){
  // prints Hello World over and over
  Serial.println("Hello World!");
  Serial.println("22222");    // NEW
}
 
OUTPUT: 
Hello World!
22222
Hello World!
22222
...
 
awesome it works! but if i comment the NEW line again no.. i dont know why :(
I try with different speed and the output it's the same
 
Thanks!

Share this post


Link to post
Share on other sites

Ahhhhhh! You know what, I just realized that I've seen this before too.

 

If you put a delay in the main loop it will clear it up... I'm not sure what is happening but its almost like the ZPUino runs too fast or something and the UART cannot keep up.

 

so add to your loop:

delay(100);

 

Jack.

Share this post


Link to post
Share on other sites

When you have a constant byte stream it is sometimes difficult for the RS232 receiver to figure out where the byte actually starts.

 

So a simple delay(1) is enough for the receiver to resynchronize the serial stream.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now