Bogomip
Posts: 8
Joined: Sat Dec 07, 2019 4:55 pm

Position sensing

Sat Dec 07, 2019 5:02 pm

Hi all,

Im semi-new to Pis and have a strong background in programming.

I am starting a project whereby I augment reality with a falling object (using augmented reality glasses) and I want the computer to be able to work out if the user catches it in their hand. To do this I want to design some gloves which can be detected by the computer, relative to their position from a fixed point (the glasses). This means there is no outside hardware needed, just the gloves and the glasses (and the pi running the software).

My question is this. For the Raspberry Pi, can you get multiple components which track where each other are, and provide a distance and direction vector between the two components?

Thanks so much, I hope this makes sense.

Bogo

User avatar
Gavinmc42
Posts: 4526
Joined: Wed Aug 28, 2013 3:31 am

Re: Position sensing

Sun Dec 08, 2019 12:46 am

Don't high end VR gear include 2 handsets?
How do they work?
Rift, Oculus?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

mikerr
Posts: 2825
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: Position sensing

Mon Dec 09, 2019 11:29 am

Oculus and others have IR LEDs in the handsets, and the camera (inthe headset for oculus quest) watches those for positioning

https://www.youtube.com/watch?v=FL8jMh7H2H0
Android app - Raspi Card Imager - download and image SD cards - No PC required !

ElEscalador
Posts: 839
Joined: Tue Dec 15, 2015 4:55 pm
Location: Detroit, MI USA
Contact: Website

Re: Position sensing

Mon Dec 09, 2019 12:56 pm

Historically you use an inertial measurement unit (IMU) that usually includes a 3 axis accelerometer, gyroscope, and sometimes magnetometer. The provide you linear acceleration in 3 vectors, angular rate of rotation and you can do some maths and integrate to get position changes. I've recently found a sensor I'm using in a robotics application that has these sensors AND a little microprocessor that runs the sensor fusion algorithms for you and allows you to simply read the position in 3d space. Look at the BN0055 absolute position sensor - adafruit makes one on a nice breakout board. The trick using it with an RPi is you have to use it in (UART) serial mode rather than I2C mode (or bitbang I2C, which I find more cumbersome) because the PI can't do I2C clock stretching that the device uses.
Robotics tips, hacks, book extras https://youtube.com/practicalrobotics

Bogomip
Posts: 8
Joined: Sat Dec 07, 2019 4:55 pm

Re: Position sensing

Sat Dec 28, 2019 8:17 pm

Hi,

Thanks for the replies, sorry about my late response... The forum told me it would email me when the post was verified!

I'll have a look at some BN0055 chips, they seem to be reasonably easy to purchase! Not 100% what I want but with some maths and basic user input they will do just what I want :))

Thanks again,
Bogo

Return to “Beginners”