Astrometric program
Gerry Shand
Posts: 45
Hello All:
Has anyone tried doing an astrometric system based on a BS-2?
I am looking at this and probably need a DS-1302, a co-processor, some pushbutton interfaces to set the time on the 1302, and a LCD display.
Any advice? I know this would be a pretty ambitious project and could piece it together over the next 8 - 12 months but if the wheel has already been invented ...
Thanks in advance for any assistance or advice.
Regards,
Gerry Shand
Has anyone tried doing an astrometric system based on a BS-2?
I am looking at this and probably need a DS-1302, a co-processor, some pushbutton interfaces to set the time on the 1302, and a LCD display.
Any advice? I know this would be a pretty ambitious project and could piece it together over the next 8 - 12 months but if the wheel has already been invented ...
Thanks in advance for any assistance or advice.
Regards,
Gerry Shand
Comments
What I am trying to do is set up the Basic Stamp as a sunrise and sunset calculator for use as a portable device. You would enter the coordinates at your location in terms of latitude and longitude and then using the time clock to get the date, compute the sunrise and sunset time at that location.
This portable device can also double as a sun tracker with some modifications to the code. The math is pretty straightforward using an Excel spreadsheet but there are enough sines, cosines, tangents and their inverses to require a math co-processor to make this work.
Hopefully this clarifies things.
Gerry
-Phil
No, I do not have a copy of this but it looks interesting. Does his section on rising and setting boil out the complicated trig? If so, then that is a more elegant approach that would justify me purchasing this tome.
Thanks and regards,
Gerry
.
Note that the µM-FPU goes one better on the location and time, as it has a serial input buffer that parses GPS strings easily into its internal variables.
I did a much cruder sunrise /sunset algorithm on the BASIC Stamp sans coprocessor for stationary systems that needed the information for monitoring the flight of bats. It didn't need to be precise. I used the excellent spreadsheet macros in Greg Pelletier's twilight.xis to generate a DATA table for the Stamp, tied to a specific location +/- a few hundred miles.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Post Edited (Tracy Allen) : 10/15/2009 6:11:54 PM GMT
I don't know the answer to your question. I have a different book of his, Astronomical Formulae for Calculators, and there's some trig involved.
-Phil
Thanks for the inputs and pointers as it looks like I have most of what I need for this piece of the puzzle. I also built a spreadsheet in Excel that utilizes the Sunrise/Sunset algorithms by the Nautical Almanac Office of the United States Naval Observatory to use as a cross check as well.
Best regards,
Gerry
Some of the calculations could be simplified ahead of time with look-up tables (say, stored in an eeprom), including trig functions (to a high degree of fidelity). This also follows the KISS philosophy, which I'm a big fan of.
Just some food for thought...
Dave
To use this, look at the EXCEL tab "sunRiseSetMaker.bpe. You copy the red text from the spreadsheet and paste it into the PBASIC IDE. The program is written for using cross-slot calls in a BS2pe, but if it is run by itself in any Stamp it defaults to a test program that asks on the debug screen for the user to enter a date and then shows the sun rise and set times. The other EXCEL tabs are Greg Pelletier's original twilight demos.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com