<p>I have built the EV3 Gripper using the manual.
I am programming an ev3 brick using ev3dev. I need to determine the angle/direction/orientation of the robot programmatically, before I can issue a command to grab the object. How can I get the orientation?</p>

<p>One way to do this I know is to use an external camera to find out what direction the bot is pointing to, I want to do it without the camera.</p>

CC BY-SA 3.0
2016-02-13T04:55:34.133Z
How about using a gyroscope, like this one [45505 Ev3 Gyro Sensor](http://shop.lego.com/en-US/EV3-Gyro-Sensor-45505)?
Phil B.
CC BY-SA 3.0
2016-02-13T04:57:37.060Z
well, the issue is, here in Singapore, these things are not easy to find :-( and due to shipping restrictions, I cannot have one shipped here as well!
okkhoy
CC BY-SA 3.0
2016-02-18T03:18:29.437Z
Can you keep track of the position based on the rotation of the motors during moves?  I know LeJOS (Java for EV3) has a nice waypoint library with pathfinding etc. that keeps track of the position, maybe ev3dev does too?
Gliderman
CC BY-SA 3.0
2016-02-19T03:14:48.410Z
thanks for the pointer @Gliderman! i will check that and update it here
okkhoy
<ev3><programming>
How to determine orientation of a EV3 gripper?
okkhoy
# How to determine orientation of a EV3 gripper?

(Asked by: username_0 on 2016-02-13)

I have built the EV3 Gripper using the manual.
I am programming an ev3 brick using ev3dev. I need to determine the angle/direction/orientation of the robot programmatically, before I can issue a command to grab the object. How can I get the orientation?

One way to do this I know is to use an external camera to find out what direction the bot is pointing to, I want to do it without the camera.

**Tags:** ev3, programming

> **Comments:**
> **username_1**: How about using a gyroscope, like this one [45505 Ev3 Gyro Sensor](http://shop.lego.com/en-US/EV3-Gyro-Sensor-45505)?  
> **username_0**: well, the issue is, here in Singapore, these things are not easy to find :-( and due to shipping restrictions, I cannot have one shipped here as well!  
> **username_2**: Can you keep track of the position based on the rotation of the motors during moves?  I know LeJOS (Java for EV3) has a nice waypoint library with pathfinding etc. that keeps track of the position, maybe ev3dev does too?  
> **username_0**: thanks for the pointer @username_2! i will check that and update it here  

---

## 0 answers

