REGISTER | LOGIN
Breaking News
Comments
Newest First | Oldest First | Threaded View
<<   <   Page 4 / 4
Max The Magnificent
User Rank
Author
Re: Debounce
Max The Magnificent   6/30/2014 2:24:00 PM
NO RATINGS
@Antedeluvian @Steve: And altough you are commited to the Arduino, I should mention that the PSoC3/4/5 has it as a built in fuction.

I seem to recall that there is also a Neo-Pixel library available for the PSoC devices, but I don't know where you go to find it.

antedeluvian
User Rank
Author
Hierarchical Menu Structure
antedeluvian   6/30/2014 2:23:58 PM
NO RATINGS
Steve

A standard 16x2 LCD display with white text on a blue background, ordered through Amazon UK

At the outset this eeems like a simple thing to do, but take care. Changes in approach often may mean rewriting your driver from scratch. After working with a customer who chagend their mind frequently I created an approach to allow a systematic method to create hierarchical menus and how to display dynamic data within that.


I wrote it up in a Circuit Cellar article "hierarchical menus in embedded systems" published in issue #160, November 2003. Circuit Cellar's business model requires you to pay a small amount, and for articles of that age you have to download the whole magazine. Let just say that the code was written for the Rabbit micro, but is all in C and should be easily portable.

antedeluvian
User Rank
Author
Debounce
antedeluvian   6/30/2014 2:08:30 PM
NO RATINGS
Steve

 In hindsight, I would look to use a better filter on the encoder outputs and do away with the chip.

 

A really good place to start with debounce is to read Jack Ganssle's series on the topic. They have been through several revisions do I may be pointing at some of the older stuff

http://www.ganssle.com/debouncing.htm

http://www.ganssle.com/debouncing-pt2.htm

http://www.eng.utah.edu/~cs5780/debouncing.pdf

http://www.embedded.com/electronics-blogs/break-points/4024981/My-favorite-software-debouncers

Jack focuses on software, but there are other techniques. A pullup resistor with a capacitor works well (preferably followed by a schmitt trigger) for slow responses although you should be aware that when you close the switch a short spike of high current will flow through the switch. You can limit that with a small series resistor. A cross coupled NAND or NOR gate combination will work if you have a changeover switch. Also if you use a non-inverting buffer (like 2 x 74HC04 in series or a MC14050) and connect the output to the input by a 10K resistor and also use a changeover switch you will have a debounced output.

Other manufacturers also make debounce chips. Maxom does the MAX812 and several others. See this app note.

Micrel does this one.

And altough you are commited to the Arduino, I should mention that the PSoC3/4/5 has it as a built in fuction.

I seem to remember this being a topic of discussion on the Connecting Edge. Perhaps Martin can rescussitate it.

Max The Magnificent
User Rank
Author
Merry Christmas
Max The Magnificent   6/30/2014 1:16:33 PM
NO RATINGS
Hi Steve -- this looks like an amazing project -- I hope one day to see it with my own eyes -- with regard to the links to interesting sites and videos, I have to say that I love the christmas tree one -- wow!

<<   <   Page 4 / 4


Most Recent Comments
Tim R Johnson
 
ewertz
 
antedeluvian
 
ewertz
 
perl_geek
 
R_Colin_Johnson
 
perl_geek
 
R_Colin_Johnson
 
dt_hayden
Like Us on Facebook
EE Life
Frankenstein's Fix, Teardowns, Sideshows, Design Contests, Reader Content & More
Martin Rowe

Test Tool Finds Ethernet Wiring Errors
Martin Rowe
Post a comment
When my house was renovated several years ago, I had the electrician install network outlets in numerous places, then run the LAN cables to a wiring closet. But he didn't document the ends ...

Martin Rowe

Local Electronics Store Supplies Engineers and Hobbyists
Martin Rowe
5 comments
Rochester, N.Y. — Tucked away in this western New York city known for its optics is Goldcrest Electronics, a local store that's supplied businesses and individuals with electronic ...

Martin Rowe

How to Transform a Technology University (Book Review)
Martin Rowe
1 Comment
The Presiding Genius of the Place by Alison Chisolm. WPI, Worcester, Mass., 234 pp., 2016. Engineers love to discuss, and often criticize, engineering education. They often claim ...

Max Maxfield

Aloha from EEWeb
Max Maxfield
Post a comment
Just a few minutes ago as I pen these words, I posted this blog about this month's Cartoon Punchline Competition over on EEWeb.com.