First time Papilo ZPUino


InmaculadaDiaz

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
Link to comment
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.

Link to comment
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!
Link to comment
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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.