Hi,
I need to get UART working on my Pixy, but for some reason it won’t let me. I connected it up to an Arduino Mega at first via SPI, which worked fine. I jumped the SPI socket on the pixy to the relevant pins (pin 1 on pixy to pin 50 on mega and pin 4 on pixy to pin 51 on mega etc) plus the 5V and gnd rails and it worked fine with the “hello world” code sending data to the serial monitor, recognizing an orange table tennis ball I had.
However, when I disconnected CLK and moved pin 50 to pin 18 (hence making pixy RX connected to mega tx1) and pin 51 to pin 19 (pixy tx to mega rx1) it wouldn’t work with the pixyUART example program. I used tx and rx 1 because that’s what the code in PixyUART.h appeared to connect to. I tried switching tx and rx, powering externally, moving to another tx/rx port on the mega, none of that worked.As a side note, the pixy doesn’t want to seem to work with I2C either but I haven’t tried as hard with that one because I specifically need UART.
Is there some extra configuration either in hardware or in software that I am missing to make the Pixy work with UART? My understanding was that it was practically meant to be plug-and-play with all forms of communication, as long as you linked the right pins up and uploaded the corresponding sample code to the arduino.
Please help!
Thanks,
Nathan