Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

waypoint sequencer with PIC

Status
Not open for further replies.

zahidkhan

Member level 2
Joined
Aug 5, 2004
Messages
52
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
428
sequencer with pic

hi
i am using OEM GPS reciever with PIC.i wnat to save a particular waypoint in eeprom in the form of , let's say 60 30' 6''N and 84 64' 41'' and when reached at this point PIC should lit a LED.But the problem is with the accuracy.The LED goes on at the same locaton. I want to do it in 10 feet radius of accuracy or better. any suggestions in the form of algo are welcomed.
 

waypoint calculations with pic

If your reading goes down to " (seconds) your accuracy is ≈31m ..

You will need to increase the number of digits in your reading to at least 0.01" ..

Only then you can set a circle of 10ft and by taking a minimum of two readings and calculating the average you will be able to repeatedly turn an LED ON when the sensor is within the required radius ..

Regards,
IanP
 

zahidkhan said:
I want to do it in 10 feet radius of accuracy or better.

You just can't get 10ft accuracy with a cheap OEM GPS unit. Probably the readings will fall into the 10ft circle about 30-50% of a time. It also depends on your environment and antenna siting. With a cheap OEM GPS your best performance is something like 30ft 90% of a time.
 

IanP said:
If your reading goes down to " (seconds) your accuracy is ≈31m ..

You will need to increase the number of digits in your reading to at least 0.01" ..

Only then you can set a circle of 10ft and by taking a minimum of two readings and calculating the average you will be able to repeatedly turn an LED ON when the sensor is within the required radius ..

Regards,
IanP

I have the accuracy of three digits. Can u explain it in the form of Algorithm or pseudo code.i am using PIC 16f877A. can it perform the calculations involving tan, sin cos etc...
 

Hi

for tan , sin , cos ... you had to use one of the following solutions
1-look up tables and it will consume ROM
2-ready Library and it will consume ROM and may be RAM too
3-Implement Cordic and it will Cosume some ROM and need some effort
4-implement taylor algorithm and it will consume some ROM too.

Salam
Hossam Alzomor
www.i-g.org
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top