<< return to Pixycam.com

Sending to Pixy with a Freescale Microprocessor (SPI w SS)

I am trying to get SPI with SS working with my FRDM-k64f. I can receive perfectly fine by using a:

  • 1 MHz clock
  • 2 Mhz Slave select (Active low)
  • 16-bit words

I also have the pixy powered with unregulated voltage because a usb connection is not enough current for the servos.

I then send 0xff00 followed by 0x0005 and 0x0025 in little endian but the servos do not move. I have been trying to find the problem on the wiki page but I am being confused by all the different references to sync bytes and little/big endian.

Does anyone have an explanation as to how to send via SPi or an image of a working SPI send signal that I can make reference to?

I can update my signal if needed.

Thanks!

Hello Cody,
First, have you made sure your servos are working? See step 8 on this page:

http://cmucam.org/projects/cmucam5/wiki/My_pantilt_is_acting_sort_of_crazy

Assuming your servos work, have you tried switching the sync word around? Try sending 0x00ff instead.

Hope this helps!

Edward