Make a PICAXE Repeating Timer
Make A PICAXE Repeating Timer
Make your own repeating timer with our automatic PICAXE Basic code generatoreducation | electronics | general | shopping
In our articles Timer Circuits with 4060B
, Repeat Timer Circuit
we looked at how simple timers can be made which will control an output - e.g. something small like an LED, or a relay
which can in turn switch absolutely anything.
For all but the very simplest of short time interval timers, a microcontroller
is almost always the best approach to take. The number of electronic components and soldering required is minimal, and all the complexity is hidden in the code you write and download to the microcontroller. Changing the timings for example takes just a few seconds of re-programming with a microcontroller since no components need to be de-soldered/soldered and replaced etc.
Learning to program microcontrollers
is not actually very difficult - it just takes a bit of practice and a bit of reading. For an easy introduction to microcontroller programming for simple electronics projects we recommend PICAXE microcontrollers
since they are low-cost, simple to program, easy to find, and require very few additional components.
One of the commonest things we are asked for is information on repeating relay timers
- timers which are 'ON' for a while, then 'OFF' for a while, with that cycle repeating for as long as the timer is connected to the power - opening (ON) and closing (OFF) a relay which controls lighting, pumps, motors, sirens, etc.
Automatic Repeating Timer PICAXE Basic Generator
If you have never programmed a microcontroller
before and you would like to make a repeating relay timer, the following should be helpful. Enter the number of hours, minutes, and seconds for the ON and OFF periods for your desired timer, and the PICAXE Basic code will be automatically generated for you to use.
To get started all you will need is the following: PICAXE 08 Starter Pack (USB)
, and PICAXE 08M2 Chips
Article Last Modified: 12:42, 4th Feb 2012
Comment on this Article
If you have any comments on this article, please email them to firstname.lastname@example.org
Recommended Related Articles
People who read this article also enjoyed the following articles:PICAXE Microcontrollers
Find out about PICAXE microcontrollers and their use in renewable energy projectsArticle Last Modified: 13:12, 30th Jan 2012electronics | electric circuit | educationLED Dimmer Circuit
Find out how to put together a simple but efficient PWM dimmer circuit for LEDsArticle Last Modified: 09:42, 16th Mar 2011lighting | electronics | electric circuitLED Spotlights
Find out about Energy Efficient LED spotlightsArticle Last Modified: 15:17, 3rd Jan 2013lightingPower Inverters
Find out about the uses of power inverters in renewable energy generationArticle Last Modified: 16:41, 21st Jul 2008storage | general | electronicsUsing The LM317T With LED Lighting
Use an LM317T to regulate the current in LED lighting projectsArticle Last Modified: 12:47, 12th Mar 2008lighting | electric circuit