Mars Clock using PIC16F877A microcontroller




What do you do if you have a spare LCD module with backlight, a weird 16 button keyboard, and a PIC16F877A microcontroller gathering dust? A monster Martian Clock immediately springs to mind.
Mars Clock
You are probably thinking “There are hundreds of PIC clocks on the Net – do we need yet another one?!” Well, this one is a bit different:

  • It has 16 timers that can be independently paused and restarted, and can run forward or backward.
  • There are 16 alarms with configurable sounds and actions.
  • Timers can show Earth, Mars, Jupiter, etc. times at the same time.
  • How about sidereal time, Moon phase, Jupiter’s Great Red Spot transit time, and anything periodic in general?
  • Simultaneous 24-hour and Julian-time decimal display.
  • All changes in configuration can be done from the device’s keyboard – no computer necessary.
  • External AC power with built-in rechargeable battery, so you can take the clock around.
  • High on the geekness scale.

If you would like to build this clock, of if you are just curious about it, check the links below. The same information is accessible using the tabs at the top and bottom of the page.

 Construction  The construction process in pictures, step-by-step.
 Clock Operation How to use the clock – menu navigation, setting up timers and alarms, examples.
 Schematics  Schematics, list of parts.

 

For more detail: Mars Clock using PIC16F877A microcontroller




Leave a Comment

*
= 4 + 4

Read previous post:
External interrupt For CSS Compiler

#include <16F877.h> #device adc=8 #fuses XT,NOWDT,NOPROTECT,NOLVP #use delay(clock=4000000) #INT_EXT void EXT_ISR(void){ output_toggle(PIN_B7); delay_us(300); } void Init_MCU(void){ enable_interrupts(GLOBAL); enable_interrupts(INT_EXT); ext_int_edge(H_TO_L); set_tris_B(0x01);...

Close
Scroll to top