![]()
Which means you need to increase the TA0CCR0 register value. So you essentially want to scale up and count that extra 0.0274912510416665 Earth seconds. What we want is the timer to go off every 1.0274912510416665 earth seconds so that it would be the equivalent to 1 Mars second. Since the sol is 24 Mars hours, the logic will remain the same and we will mess with the timer that triggers the Mars second. Once the timer reaches 32768 it triggers an interrupt which calls the function void clock_tick(void) in clock.c that takes care of the clock logic (when to increment hours, minutes, and seconds). #Mars24 time clock code#The code in the function void Timer0_Init(void) found in timer.c configures the timer to count continuously up to 32768 (TA0CCR0 register), which takes exactly 1 second to reach. This internal clock is connected to Timer 0. The first thing we need know is that the clock source is a 32.768khz internal crystal. The default program (ez430_chronos) that keeps track of the time is located in clock.c, clock.h, timer.c, and timer.h. So anyway, the processor on the watch is based on the TI MSP430 and has several timers. If you just want to flash the watch with the Mars watch firmware, scroll down to the "Firmware" link and follow instructions below. #Mars24 time clock download#So I put in the order, rewrote the timer code (which I go into detail about below) and modified the date files to keep track of sols rather than days.įirst off, if you want to develop, you will need to download Code Composer Studio, which will come with the default watch firmware (also available here). I looked over the example code before purchasing it and discovered that I could modify the timer that controls watch's master timer. The watch also comes with an RF to USB module, USB programmer/debugger, and a screwdriver. The watch comes loaded with features: RF communication, timers, alarms, accelerometer, barometer, and a temperature sensor. I searched around and found the perfect watch for this project: the TI Chronos eZ430 915Mhz (available to buy here: TI-Store, Digi-Key, Mouser, Newark). With the knowledge of keeping time on Mars and a good background in embedded systems I figured it shouldn't be too hard to modify a digital watch. Most of the people who bought them were a part of the Mars team anyway.įast forward 8 years and now we have a new rover on the surface of Mars, and although I had a very, very small role in the mission and I'm still nowhere near having to live on Mars time, who says I can't have a Mars watch anyway? This was too cool! I realized I couldn't dish out $300 (a lot of money for a kid back then) to get a watch I wouldn't need. #Mars24 time clock how to#I remember back in 2004 a local jeweler had figured out how to make analog Mars watches. Although I don't live on Mars time and am not involved in the driving process, I still have this odd fascination with keeping track of Mars time. ![]() However, I wouldn't mind doing it if it was for the opportunity to drive a rover on Mars. In order to have an efficient day driving on Mars, the rover driving team lived on Mars time, at least at the start of the mission. #Mars24 time clock android#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |