This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:v2:porting_guide [2019/02/01 15:39] pixycam |
wiki:v2:porting_guide [2020/04/27 19:08] jfrench typo: Minstorms -> Mindstorms |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== How to talk to Pixy2 ====== | ====== How to talk to Pixy2 ====== | ||
- | We currently have software support for [[wiki:v2:Hooking_up_Pixy_to_a_microcontroller_-28like_an_arduino-29|Arduino]], and [[wiki:v2:Hooking_up_Pixy_to_a_Raspberry_Pi|Raspberry Pi and similar controllers]] | + | We currently have software support for [[wiki:v2:Hooking_up_Pixy_to_a_microcontroller_-28like_an_arduino-29|Arduino]], [[wiki:v2:pixy_lego_quick_start|LEGO Mindstorms EV3]], [[wiki:v2:hooking_up_pixy2_to_roborio|roboRIO]], and [[wiki:v2:Hooking_up_Pixy_to_a_Raspberry_Pi|Raspberry Pi and similar controllers]]. |
You may want Pixy2 to talk to a different controller and that's not a problem -- Pixy2 is easy to strike up a conversation with! It's easier than the original Pixy. Pixy2 has three separate methods of communication: | You may want Pixy2 to talk to a different controller and that's not a problem -- Pixy2 is easy to strike up a conversation with! It's easier than the original Pixy. Pixy2 has three separate methods of communication: | ||
Line 46: | Line 47: | ||
* analog/digital x - this will output the x value of the largest detected object as an analog value between 0 and 3.3V on pin 8. It also outputs whether an object is detected or not as a digital signal (pin 1 of the I/O connector). | * analog/digital x - this will output the x value of the largest detected object as an analog value between 0 and 3.3V on pin 8. It also outputs whether an object is detected or not as a digital signal (pin 1 of the I/O connector). | ||
* analog/digital y - this will output the y value of the largest detected object as an analog value between 0 and 3.3V on pin 8. It also outputs whether an object is detected or not as a digital signal (pin 1 of the I/O connector). | * analog/digital y - this will output the y value of the largest detected object as an analog value between 0 and 3.3V on pin 8. It also outputs whether an object is detected or not as a digital signal (pin 1 of the I/O connector). | ||
+ | * LEGO I2C - this is a special protocol for LEGO Mindstorms EV3 brick. | ||
Note, the USB interface and protocol is always enabled, while each of the interfaces above can only be enabled one at a time. | Note, the USB interface and protocol is always enabled, while each of the interfaces above can only be enabled one at a time. | ||
Line 109: | Line 111: | ||
Here's how to hook up your controller's UART to Pixy: | Here's how to hook up your controller's UART to Pixy: | ||
- | - Pin 10 ➜ your controller's ground signal | + | - Pin 6 ➜ your controller's ground signal |
- Pin 1 (UART RX) ➜ your controller's UART TX output | - Pin 1 (UART RX) ➜ your controller's UART TX output | ||
- Pin 4 (UART TX) ➜ your controller's UART RX input | - Pin 4 (UART TX) ➜ your controller's UART RX input |