Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Glove based key board

Status
Not open for further replies.

dsk2858

Member level 2
Joined
Aug 17, 2011
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Chennai,India
Activity points
1,683
sir
i need to design a glove, with a combination of SIX inputs to include the entire keyboard on the glove.
when i press a combination like

D6 D5 D4 D3 D2 D1 D0
0 0 0 0 0 0 1 - A
0 0 0 0 0 1 0 - B
SO ON
which statements should i use in C-language to complete my project.
sir please give an example of codes as i am biggner to programming
i am using ATmega32 MCU and need to transfer that values to computer with serial interface.
 

The part that isn't so obvious is that your program will be in an idle loop (or executing other routines) waiting for a finger to press a switch.

Then as soon as a switch press is detected, you should begin a new waiting loop. This is because you cannot assume the first value you see is what the user intends.

The user may be about to press other switches as well.

Wait for maybe 1/10 second. Exit the loop.

Then see which switches are pressed. Take that as the input value.

Experiment with shorter or longer delay loops, til you get a delay time that works best.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top