Thread: Programming a timer

  1. #1
    Registered User
    Join Date
    Jan 2014
    Posts
    14

    Programming a timer

    Hello, I have attached a circuit diagram below, which has been tested. Currently you have to manually push the switch to change the brightness of the bulbs. I want to program a chip to automate this.

    Over 90 days the chip will output a high signal in replace of the switch every set period of time (say once every 1.5days) can anyone help we out with some C code for this? I can use any chip but the smaller the better!
    Attached Images Attached Images Programming a timer-circuit-jpg 

  2. #2
    Registered User
    Join Date
    Nov 2012
    Posts
    157
    i would suggest reading up on "real time clock programming". RTC chips as well. Its much easier to get help when you have a problem with code and ask for help.few are willing to write you code from scratch, and this looks like a school related project so technically anyone who gives you written code would be helping you cheat.

    that aside i believe the DS12C887 is a good choice(plus its the only one iv'e ever used).The data sheet has all the timing info that could help you write your code

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Timer help
    By george7378 in forum Windows Programming
    Replies: 7
    Last Post: 10-09-2011, 06:30 AM
  2. help - timer in C?
    By psu_ece in forum C Programming
    Replies: 6
    Last Post: 05-15-2010, 01:09 PM
  3. 60 hz timer
    By crowe in forum Tech Board
    Replies: 18
    Last Post: 01-20-2010, 11:18 AM
  4. Timer in 2D FPS
    By Jontay in forum Game Programming
    Replies: 4
    Last Post: 11-28-2003, 11:30 AM
  5. need timer
    By b-ref in forum C Programming
    Replies: 6
    Last Post: 10-13-2001, 04:57 AM

Tags for this Thread