llorvde
Posts: 12
Joined: Sat Mar 05, 2016 6:05 am

Location tracking indoor

Sat Mar 05, 2016 6:27 am

I have questions about location tracking.

In my design, raspberry pi and Arduino uno is communicating via I2C.

Raspberry pi makes random value and send to Arudino.

Depends on random value Arduino control servo to move. (Forward, Left, Right)

(Forward : move 1 inch forward)
(Left : turn left 10 degree and 1 inch forward)
(Right : turn right 10 degree and 1 inch forward)

And I am using boe bot for robot car.

In this case, how can I detect location??

The size of map is 72x72(inchxinch). INDOOR!!

I want to track the boe bot. But I don't know how to track it.

I found 2 options to track location.
1. Accelerometer and Gyroscope.

2. Proxzy indoor GPS
https://www.kickstarter.com/projects/po ... or-arduino

I am not sure which one is better for my case.

Each option has problems.

Accelerometer and gyroscope can track the location, but the problem is error will be increased whenever boe bot moves.
And most of accelerometer and gyroscope use I2C communciation.

However, I am using I2C communication with Arduino.
I know I can use multiple devices for I2C Communication, but I do not know how...(If anyone knows it, could you show me sample code or tutorial site??)

For make sure, below problem is main reason why people do not use them??
Accelerometer will make more error if the boe bot moves only 1 inch..
Gyroscope will make more error if the boe bot turn more degrees..

No one used Proxyz indoor GPS.. (I need sample code, and tutorial for understanding how it works.)

Which option is better for me..?

Anyone can post sample code or tutorial for each option..?

TheRayTracer
Posts: 51
Joined: Tue Oct 13, 2015 12:23 am
Location: Australia

Re: Location tracking indoor

Mon Mar 07, 2016 9:35 pm

I'm sure you are going to be another one-post-wonder, but anyway...

GPS was only designed to work outdoors. I'm not clicking your link for a non existent product. Even if you used an indoor GPS / IPS, your board is only 72" x 72". GPS is only accurate down to 3 meters. You would detect no movement or have an error outside the range of your board.
I know I can use multiple devices for I2C Communication, but I do not know how
Just connect the wires to the RPi I2C pins from all your I2C devices in parallel. Each device will have it's own address. Be careful if you have two or more of the same device as many devices have hardwired addresses (although some devices give the option to change the address by shorting a joint on the PCB).
And most of accelerometer and gyroscope use I2C communciation.
Not true, many support SPI.

It's great that you have started researching various things. but you need to research even more!

Instead of trying to use GPS, why not just start your robot at a known square in your grid, and keep track of which square your robot is in as you move it from square to square in your grid. All you need is a simple matrix to represent the grid.
Last edited by TheRayTracer on Tue Mar 08, 2016 12:03 am, edited 2 times in total.

User avatar
mikronauts
Posts: 2729
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Location tracking indoor

Mon Mar 07, 2016 10:04 pm

Determining your indoor position is NOT an easy problem to solve.

You can use a combination of odometry, beacons, and sensors, but there is no easy solution.

Google "indoor positioning" for more information - it is an advanced topic.
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

llorvde
Posts: 12
Joined: Sat Mar 05, 2016 6:05 am

Re: Location tracking indoor

Thu Mar 17, 2016 3:27 pm

Thank you Guys`` I will search other product that can help me my project.

Return to “Other projects”