Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Circuit help - Switching & latching different colour lamps

Status
Not open for further replies.

mjb-is

New Member
Hi guys. I'm here after help with the design of a circuit to create a prop for our paintball team and it's been years since I did any elctronics and my head is bursting trying to fit all different bits of googled circuits together to do what I need. I'm sure this is simple stuff for some of your guys:-

I need to create a circuit that will do the equivalent of having a red/blue flag system. At start of game both flags would be down. Duringt he game teams would take a zone and toggle the flag between red and blue.

I need a lighting system to replicate this. I can do it with LED's for low power and I think it would be best to have them flashing. Initial conditions and reset needs both sets of lights either out or flashing together, i.e. a null condition.

On hitting either a toggle or push button I neet to toggle the system between red/blue state. A ref needs to be abel to reset the system to null at end of each scoring period (ideally a keyed switch or hidden switch to do this, something a player can't inadvertently do).

All help appreciated. Ask any questions if you need further info from me.

Thanks.
 
Oh, this application is just begging to be done on a microcontroller. You don't have to build very much as there are so many microcontroller development boards already made and available for reasonable cost. I'm sure you can start with one of those and perhaps add simple driver transistors for the LEDs or maybe nothing at all. I can assure you that once you have the LEDs wired in to the microcontroller you will get a huge kick out of making them turn on and off as you desire. Great fun!

OK, lets see, you need one switch input for toggling between red and blue state, one reset switch (hidden button) and that's all the game inputs? For outputs, you will have one for RED, one for BLUE. That's not very many inputs and outputs so just about any micrcontroller will work, however I will suggest my own preference. Now, how about programming? Do you know any programming languages? I have used a compiler that is well suited to a novice programmer called BASCOM-AVR. It is a Basic language compiler that specifically works with the AVR family of micros, and it is available for free via download. It is easy to do a quick little project like this in BASCOM, especially if you have learned any programming languages at all. There are many other alternative platforms including PIC/C compiler and Arduino for example. There are many makers of development boards. For example:
Categories - SparkFun Electronics

Where are you located?

The development environment to write software for the AVR is all free. You can use BASCOM, or you can work in assembler with Atmels AVR Studio4, or you can work in C using one of several free systems. One thing you would need is a programmer, which is a small device that goes between you computer and your micro circuit board. If you are strapped for cash, you can make your own parallel port programmer for very little money. If you can afford one, the Atmel AVRISP-2 is a good programmer for around $40 or so. I have used both of these types.
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top