<< return to Pixycam.com

How to get the type of intersection in arduino

Hello people, I want to ask how to get the type of intersection (3-way, 4-way, 5-way intersections) from Pixy to arduino.
For example:
If it is 3-way intersection, set the next turn 0 degree
If it is 4-way intersection, set the next turn either left or right depending on other command.

You get the idea, but how for the arduino to know that it has encounter which intersection?

Hello,
You should install the Arduino library (described below):

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:hooking_up_pixy_to_a_microcontroller_-28like_an_arduino-29

And run the line_hello_world example (instead of ccc_hello_world).

Hope this helps.

Edward