Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

keyboard with 38 keys

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
Porelo

Bascom Member



Joined: 23 May 2005
Posts: 31
Location: Portugal

portugal.gif
PostPosted: Thu Jan 10, 2019 3:49 pm    Post subject: keyboard with 38 keys Reply with quote

Hi everyone
First, a good year 2019 for all!

I would like someone to help me with a tip or better yet, an example, I need to do a routine for a keyboard with 38 keys, but I have no ideas I'm blocked the example I send is from the circuit that I think might work but in the program I do not have idea of how to start, if anyone could help, I'm grateful.
Porelo




(BASCOM-AVR version : 2.0.8.1 )
Back to top
View user's profile Yahoo Messenger
enniom

Bascom Member



Joined: 20 Oct 2009
Posts: 454

https://www.mcselec.com/c
PostPosted: Thu Jan 10, 2019 10:23 pm    Post subject: Reply with quote

Column = PINA And &H0000_1111

or D or C

Row = PINB

or ...

E
Back to top
View user's profile
Pikczu

Bascom Member



Joined: 22 Jan 2006
Posts: 33
Location: Dublin, Ireland

ireland.gif
PostPosted: Fri Jan 11, 2019 9:49 pm    Post subject: Reply with quote

Why not to use ADC for it and use 1% tolerance resistors.
You could significantly reduce number of pins.
Back to top
View user's profile
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1093
Location: SYDNEY

australia.gif
PostPosted: Fri Jan 11, 2019 11:45 pm    Post subject: Reply with quote

A chip to do this is available the TM1638
It can scan 24 keys and you can use more than one
so as many keys as you want it also runs 7 segment leds
best of all I have written code for it
https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=10889&highlight=tm1638

Regards Paul
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum