<< return to Pixycam.com

Pixy using UART - getting garbage data

Hi,

I am trying to interface pixy with another micro-controller on UART. I have tried the approach described in porting guide, connected Pixy’s I/O Port’s UART pins i.e.Pin 1(RX), 4(TX), GND and trained pixy to track an object(a green ball). I used a serial terminal to see the data it sends, with the baud rate for the terminal set to be same as default baud rate of Pixy i.e. 19200 and the data out port on PixyMon set to 3 for UART. I found that all it sends is garbage data. The screenshot is attached below for your reference. I am not sure what’s going on here, am I missing something? How can I make it send sensible data?

Also, I noticed that it sends the data(garbage) only when it “sees an object” and only if the PixyMon is set to Default Program mode. So, if my Pixy isn’t connected to a PC via USB will it still be running in default program mode?

Any suggestions would be greatly appreciated.

Thanks in advance!

Hello Priyanka,

It looks like you are trying to print the data coming out of Pixy as ASCII (or extended ASCII) characters. The data coming out of Pixy is raw data, not ASCII.

Edward

Oh, okay. Thanks for the reply!