Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 27
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
Thomas (40)
VulcanBB18 (50)


Next birthdays
07/19 Thomas (40)
07/19 VulcanBB18 (50)
07/20 rev (49)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

Strobe light with Tl494 or AVR microcontroller?

Move Thread LAN_403
cjk2
Sat Sept 22 2007, 12:54AM Print
cjk2 Registered Member #51 Joined: Thu Feb 09 2006, 04:17AM
Location:
Posts: 263
Id like to build a strobe light (for a time fountain). I assume i will aim for something in the range of 10-20 hz output frequency. Two questions: 1. Does anyone have experience using a tl494 this "slow"? and, 2. Is there any good way to get a variable duty cycle and variable frequency signal out of a microcontroller short of using a D to A converter and a VCO?
Back to top
ConKbot of Doom
Sat Sept 22 2007, 01:50AM
ConKbot of Doom Registered Member #509 Joined: Sat Feb 10 2007, 07:02AM
Location:
Posts: 329
I'd use the cheapest micro with enough programming space for you to do what you need. I would think about a PIC12F or a smaller 16F chip if you like to work with PICs and not AVRs :p

What kind of accuracy do you need? I would imagine accuracy isnt super important, for this. (I.E. If its set for 15 hz and actually outputting 14.8 hz, not a big deal)

I would take a PIC with a Timer1 external input, feed that with a low frequency (2-5khz or so) pre-load timer1 with a value, wait for it to overflow, and load the next value in the ISR, repeat... etc

Then a few multiplexed buttons that are scanned a few times a second to control it, dutycycle up/down, period up/down. etc.

Back to top
Sulaiman
Sat Sept 22 2007, 02:07AM
Sulaiman Registered Member #162 Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3141
If all you want is a constant repetition rate that can be preset, then a 555 would be good enough.

I suspect that for a stable time fountain it's best to synchronise the timer with the falling drops
so a photo-gate is required for best results, again a 555-based system could work.

Ultimately a microcontroller would give the most flexibility
with a crystal controlled clock no external timing/frequency reference is required.
Back to top
cjk2
Sat Sept 22 2007, 03:05AM
cjk2 Registered Member #51 Joined: Thu Feb 09 2006, 04:17AM
Location:
Posts: 263
Id like to stay away from a 555 as i want to be able to control frequency and duty cycle independently. I had planned on using an AVR if possible, i actually have some experience on them, vs. none on a PIC. I do have some of each here tho, and programmers for them. I really like the idea of a microcontroller but it still looks like there is no easy way of generating a digitally variable frequency without feeding a VCO from the micro...
Back to top
Bjørn
Sat Sept 22 2007, 05:24AM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
Even the cheapest micrcontroller can make a variable frequency/duty cycle adjustable to one microsecond. In your case you get an accuracy to 1 in 50 000. A few hundred times more than you really need, unless your water is a special stable type.

Low frequencies are easy with microcontrollers.
Back to top
thedatastream
Mon Sept 24 2007, 08:33PM
thedatastream Registered Member #505 Joined: Sun Nov 19 2006, 06:42PM
Location: Yorkshire!
Posts: 329
An ATtiny13 would be more than adequate for this task and that is one of the most basic AVR micros that Atmel make.
Back to top
cjk2
Thu Sept 27 2007, 02:37AM
cjk2 Registered Member #51 Joined: Thu Feb 09 2006, 04:17AM
Location:
Posts: 263
Thanks for the help guys, I'm using a Tiny2313 as i have some of these on hand. Its working great. When my fountain is done (currently waiting on the pump to arrive) ill be sure to post in the project section and share my design.
Back to top

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.