the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
icon

different outputs based on button pushes?


Post ReplyPost New Topic
< Prev Topic Next Topic >
sk8rjess 
Member - Posts: 18
Member spacespace
Joined: March 07, 2007
Location: United States
Posted: December 13, 2008 at 6:21 PM / IP Logged  
im just getting into working with electronics such as building simple devices and whatnot so dont bash on me too hard!
i even went out to radioshack and bought one of their electronic kits ha.
but ive got a question hopefully someone can help with maybe a diagram or whatnot.
i just need a circuit, that when a certain momentary button is pressed once in five seconds it will have one output. and if its pressed twice in 5 seconds it will have a different output.
im thinking it will be using a 555 timer?
KPierson 
Platinum - Posts: 3,527
Platinum spaceThis member consistently provides reliable informationspace
Joined: April 14, 2005
Location: Ohio, United States
Posted: December 13, 2008 at 8:47 PM / IP Logged  

The easiest way to do that would be to use a programmable microcontroller.  They greatly simplify time delays and you can do everything you want with one 8 pin chip.  Of course the catch is you have to be able to write a program, download it, and then test it.

If you go with a brand like Atmel AVR you can get the programming software for free, you can build a programmer for less then $3, and you can buy the chip itself for $1.50.  There are great intro to AVR programming sites on the net and this would be a perfect "first" project.

Kevin Pierson
sk8rjess 
Member - Posts: 18
Member spacespace
Joined: March 07, 2007
Location: United States
Posted: December 14, 2008 at 8:20 PM / IP Logged  
ahh thanks!
i found this one HERE
but it seems its only a temp since its using a breadboard.
do you have a certain one to recommend?
hopefully using parts from radioshack lol.
KPierson 
Platinum - Posts: 3,527
Platinum spaceThis member consistently provides reliable informationspace
Joined: April 14, 2005
Location: Ohio, United States
Posted: December 14, 2008 at 8:41 PM / IP Logged  

Radioshack doesn't sell Atmel parts - you'll need to order them from Mouser or Digikey or some other parts place.

To write your program you'll need to download AVRStudio from www.atmel.com.  You can then download a program called PonyProg ( http://www.lancos.com/prog.html) to download the .hex file you create to a chip through a parallel port (assuming you have a parallel port).  I built a parallel programmer years ago using only a couple of resistors and it worked great - I'm sure if you are interested you can find the circuit somewhere.

This is a great page to get the programming basics: http://www.avr-asm-tutorial.net/avr_en/beginner/index.html   The program you will need is pretty basic and shouldn't be difficult to write as long as you have some time and patience.

As far as hardware, I would use a Tiny12 or Tiny13.  Both are 8 pin ICs that are more then capable of doing what you want.

If you are interested and need help with the software let me know - it shouldn't take me more then 10 mintues to write something that works.

Kevin Pierson
sk8rjess 
Member - Posts: 18
Member spacespace
Joined: March 07, 2007
Location: United States
Posted: December 15, 2008 at 7:21 AM / IP Logged  
perfect.
ill look more it this after work.
sk8rjess 
Member - Posts: 18
Member spacespace
Joined: March 07, 2007
Location: United States
Posted: December 15, 2008 at 7:25 AM / IP Logged  
and i might have to buy a programmer.
i only use an dell xps m1730 and it doesnt have a serial port. i'd need a usb interface.
KPierson 
Platinum - Posts: 3,527
Platinum spaceThis member consistently provides reliable informationspace
Joined: April 14, 2005
Location: Ohio, United States
Posted: December 15, 2008 at 8:15 AM / IP Logged  
What are you trying to do?
Kevin Pierson
sk8rjess 
Member - Posts: 18
Member spacespace
Joined: March 07, 2007
Location: United States
Posted: December 15, 2008 at 10:27 AM / IP Logged  
i just need a circuit, that when a certain momentary button is pressed once in five seconds it will have one output. and if its pressed twice in 5 seconds it will have a different output.
and you recommended using the 8bit controller for that but in order to actually program it I will need a controller programmer. if I built on thhen i'd have to use a serial port to program it, and my laptop doesn't have a serial port. so I guess im just going to have to buy a usb programmer since I can't build one.
lol hope that's not confusing?
sk8rjess 
Member - Posts: 18
Member spacespace
Joined: March 07, 2007
Location: United States
Posted: December 19, 2008 at 7:57 AM / IP Logged  
or what about a more simple circuit.. send power when a momentary button is pressed, turn off when its pressed again. just like a motherboards on/off switch

Sorry, you can NOT post a reply.
This topic is closed.

  Printable version Printable version Post ReplyPost New Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

  •  
Search the12volt.com
Follow the12volt.com Follow the12volt.com on Facebook
Thursday, October 31, 2024 • Copyright © 1999-2024 the12volt.com, All Rights Reserved Privacy Policy & Use of Cookies
Disclaimer: *All information on this site ( the12volt.com ) is provided "as is" without any warranty of any kind, either expressed or implied, including but not limited to fitness for a particular use. Any user assumes the entire risk as to the accuracy and use of this information. Please verify all wire colors and diagrams before applying any information.

Secured by Sectigo
the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
Support the12volt.com
Top
the12volt.com spacer
the12volt.com spacer