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.
Registered Member #326
Joined: Sat Mar 18 2006, 01:12PM
Location: Glasgow, Scotland
Posts: 66
The Concept:
3 spotlights, one red, one green and one blue. Initially the red light is switched on to maximum brightness, the other two are off. Gradually the red light's intensity drops, with a corresponding increase in the green light's intensity. The green light's intensity rises steadily to maxiumum, as red drops off to zero. The same transition then takes place from green to blue, and then from blue to red and the process repeats. The directions of spotlights are adjustable such that if they are all focused on the same spot on a wall or ceiling they will produce an area of light of constantly changing colour.
Alternatively the light beams can be directed to different points to create a swirling effect. All sorts of effects are possible depending on speed and where the light beams are aimed.
Implementation:
The circuit is controlled by a Microchip PIC16F84A, which is clocked by a 4MHz crystal. Output pins A0, A1 and A2 on the PIC each drive one light. One red, one green and ine blue 50W low-voltage dichroic lamps are used. Each of the 3 lights is powered from one of the four isolated 24V AC windings of a 220v-to-24V lighting transformer. The drive circuit for each light consists of a BC547C NPN transistor driving a pair of BUZ10, BUZ11 or IRF610 n-channel power MOSFETS. Two MOSFETS must be used in series, connected source-to-source, as a single MOSFET would conduct on one half-cycle when in the "off" state, due to its internal drain-to body diode junction. The transformer's fourth winding drived a bridge rectifier and smoothing capacitor, which in turn supplies 5V and 12V linear regulators (7805 and 7812) which supply the PIC and NPN driver circuits respectively.
Circuit Schematic. Note that only one lamp and driver circuit is shown, the other two are identical.
Prototype. PIC and driver circuit in centre. Each MOSFET is attached to a separate heatsink.
The project is programmed in PIC Assembler, compiled via MPLAB IDE v7.51 and downloaded via PicKit 2 Debug Express, with v2.10 PC software.
This is the current version of the code:
I don't claim that my component choice or indeed my coding is in any way optimal, I've largely used what's to hand and my programming skills are pretty rusty.
Planned Developments:
I'm looking for ideas for a case for the project. I'd like to recycle some old piece of equipment. The case must be large enough to accomodate the 150mm diameter, 100mm high transformer, and 3 110mm diameter spotlight mountings. I'm thinking about an ammo box perhaps, or maybe something more sophisticated-looking. It would be nice to have something elegant looking. All suggestions gratefully received.
I plan to add a user interface and code enhancements to allow the rate at which the lights cycle through the range of colours to be adjusted over a range of around a seccond to many minutes. This could be implemented using anything anything from thumbwheel switches to a diplay from and old cellphone with pushbuttons.
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.