Difference between revisions of "Enter name of article to create"

From CPCWiki - THE Amstrad CPC encyclopedia!
Jump to: navigation, search
m (Reverted edits by MikeDong (talk) to last revision by TotO)
(Arduino Tutorial: 4x4 Matrix Membrane Keypad Module)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
 
<center>This site hopes to evolve into an encyclopaedia on all things [[Amstrad|Amstrad]] [[CPC|CPC]] related. There are now '''[[Special:Allpages|{{NUMBEROFARTICLES}} articles]]''' around the CPC available.</center>
 
<center>[[Image:forum.png|300px|link=http://www.cpcwiki.eu/forum]]      [[Image:Vs.png|300px|link=http://www.cpcwiki.eu/index.php/Speccy_Port]]</center><br>
 
  
<div style="border: 1px solid rgb(255, 201, 201); margin: 0px 0px 5px; padding: 0.5em 1em; background-color: rgb(255, 243, 243);">
+
Experiment: 4x4 Keypad Module: Touch-Sensitive 4*4 Membrane Matrix Keyboard for External Expansion and Control of 16-Bit Microcontrollers
<center> '''CPC Related News''' </center>
+
'''Matrix Keyboard'''
<center>
+
A matrix keyboard is an external device used with microcontrollers, featuring a grid layout that simplifies key identification. In this setup, columns are linked to the power supply and microcontroller outputs, while rows are inputs. This reduces the number of I/O ports needed. Large keyboards use a matrix arrangement to minimize I/O usage, with each key at the intersection of rows and columns. A single port can manage multiple keys in a matrix, increasing efficiency. For instance, a 4x4 matrix can handle 16 keys, which is more than direct connections. Adding more lines to the matrix increases the number of keys that can be handled exponentially, making it an efficient method for managing many keys.
 +
Membrane Keyboard
  
[[File:PlayCity.jpg|thumb|320px|[http://www.cpcwiki.eu/index.php/PlayCity PlayCity MX4 Board]]]</center><br>
+
A membrane keyboard, also known as a membrane switch, is a popular choice for its blend of aesthetics and functionality. It consists of four key components: the panel, upper circuit, isolation layer, and lower circuit. This type of keyboard is valued for its modern design, compactness, light weight, and good sealing properties. It is also resistant to moisture, dust, oil, acids, alkalis, and shock, making it durable. Due to these features, it is widely used in various industries such as medical, computer, digital machinery, electronic scales, telecommunications, appliances, and gaming.
 +
Advantages:
  
*30/08/14: [[MegaFlashROManager|ROManager]] 1.8 released. [http://futureos.cpc-live.com/files/ROManager_1.8.zip Download]
+
Sleek and novel appearance.
*30/08/14: '''[[SymbOS]]''' 2.1 Final [http://www.cpcwiki.eu/forum/news-events/symbos-2-1-final-released released]
+
Compact size, thin thickness, lightweight, which is conducive to the trend of lightweight, thin, short, small, and highly intelligent notebook keyboard development.
*14/08/14: '''PlayCity''', Add [http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/playcity-aka-ctc-ay-(mx4)-for-august-!!!/ 6ch stereo audio, Z80 CTC...] to your CPC.
+
Moisture-proof, dust-proof, oil-resistant, and resistant to harmful gases, with strong sealing properties, acid and alkali resistance, and shock resistance.
*26/06/14: [http://www.cpcwiki.eu/index.php/CPC464_%26_CPC664_logos Amstrad CPC464 & CPC664 logos] by [[User:Forcy|Forcy]]
+
Long service life and resistance to bending and folding
*22/04/14: '''X-MEM''', Add up to [http://www.cpcwiki.eu/forum/news-events/x-mem-a-new-memory-expansion-for-all-cpc/ 512K RAM/ROM] on your 464/664/6128.
+
Key recognition method
*20/04/14: '''Breaking Baud''', [http://www.cpcwiki.eu/forum/demos/breaking-baud/ THE tape demo]. 2nd place at Revision!
+
*30/03/14: '''Superpix''', a new Picross-style game was [http://www.cpc-power.com/index.php?page=detail&num=10000 released].
+
*24/03/14: '''SAMdisk''' 3.8.2 [http://simonowen.com/samdisk/ released].
+
*23/03/14: [[PSX controller mod for Amstrad CPC]] by [[User:Forcy|Forcy]]
+
*11/03/14: '''CPCDiskXP ''' 2.5.1 [http://www.cpcwiki.eu/forum/news-events/cpcdiskxp-v2-1-released/msg76939/#msg76939 released] - a nice update!
+
*03/02/14: '''La Guerra de Gamber''' [http://www.amstrad.es/juegosamstrad/decargajuegos/la-guerra-de-gamber.php released] by ESP Soft!
+
*30/01/14: A CPC homebrew dedicated website is born: [http://homebrew.amstradtoday.com/index_uk.htm Homebrew.AT]
+
<br>
+
  
<!-- 12 last news only -->
+
In this way, when no key is pressed, all input lines are at a high logic level, indicating that no key is pressed. The output lines are at a low logic level. Once a key is pressed, the corresponding input line will be pulled down. By reading the status of the input lines, it can be determined whether a key is pressed.
  
<center><gallery widths=128px  heights=96px>
+
I. Row scanning method, also known as row (or column) scanning query method, is one of the most commonly used key recognition methods.
Image:symbos21cpc.gif|[[SymbOS]] 2.1
+
Image:superpix.png|[http://www.cpc-power.com/index.php?page=detail&num=10000 Superpix]
+
Image:Gamber4.jpg| La Guerra de Gamber
+
Image:compo2013.png|[[Amstrad_CPC_16KBs_ROM_Game_Development_Competition_2013|16K ROM 2013]]
+
Image:phortem01.png|[http://www.norecess.net/ Phortem]
+
  
<!-- 5 last pictures only -->
+
Determine if any keys are pressed: Set all row lines Y0-Y3 to a low logic level, then detect the status of the column lines. If any column line is at a low logic level, it indicates that a key on the keyboard has been pressed, and the closed key is located among the 4 keys where the low logic line intersects with the 4 row lines. If all column lines are at a high logic level, then no keys are pressed on the keyboard.
  
</gallery></center>
+
Identifying the position of the pressed key involves determining which specific key is closed. The process is as follows: Set each row line to a low logic level one at a time, while keeping the other lines at a high logic level. Once you find a row line at a low logic level, examine the logic levels of each column line in sequence. If a column line is also at a low logic level, the key at the intersection of that column and the row set to low is the closed key.
  
<div align=right>...[[OldNews|Older News]]...</div>
+
II. High-low logic level flip method
</div>
+
<!-- WEIRD TABLE START -->
+
{| width="100%" class="FCK__ShowTableBorders"
+
|- valign="top"
+
| <div style="border: 1px solid rgb(176, 176, 176); margin: 0px 0px 5px; padding: 0.5em 1em; background-color: rgb(238, 238, 238);">
+
  
=== CPCWiki related ===
+
When a key is pressed, the high bits switch from 1 to 0, showing the row, and one of the low bits changes from 1 to 0, indicating the column. An OR operation combines these to determine the key's position. Keyboard and display processing can be intricate, primarily due to user habits and external factors, not the microcontroller. Organizing and logically representing the keyboard processing through algorithms before coding is crucial for creating efficient and effective programs.
*[[CPCWiki updates]]
+
Flexible Membrane Keyboard
*[[Donors]]
+
A flexible membrane keyboard consists of soft film layers, including PET for its electrical properties and low-resistance conductive coatings for circuit patterns. This design allows the keyboard to adapt to flat and curved surfaces, with integrated lead-out wires providing bendable connections to the device's circuitry.
 +
Flat Three-Dimensional Membrane Keyboard
 +
This membrane keyboard has keys slightly raised, known as 3D key switches, which improve key recognition and tactile sensitivity, and add decorative appeal. Designing these keys involves precise positioning during mold pressing, and the height of the raised portion should not exceed twice the thickness of the substrate. Various designs can be applied to the protrusions for aesthetic purposes.
  
'''Become an Author!'''
+
[https://www.unikeyic.com/search?keyword=Module '''Module  Parameters''']
<createbox>
+
Contact resistance: 500 ohms
default=Enter name of article to create
+
Insulation resistance: 100 Megaohms
buttonlabel=Create article!
+
Critical operating force: 150-200 Newtons
width=40
+
Bounce time: 1 millisecond
</createbox>
+
Lifespan: 100 million cycles
</div>
+
Operating temperature: 60 degrees Celsius
  
<div style="border: 1px solid rgb(176, 176, 176); margin: 0px 0px 5px; padding: 0.5em 1em; background-color: rgb(238, 238, 238);">
 
  
<div style="text-align: right;"><small>'''All [[Special:Wantedpages|wanted articles]]''' &#124; [[:Category:Stub|Extendable Stubs]] | '''[[Special:ContributionScores|List of most active contributors]]'''</small></div>
 
  
| width="50%" style="vertical-align: top;" | <div style="border: 1px solid rgb(228, 222, 222); margin: 0px 0px 5px; padding: 0.5em 1em; background-color: rgb(249, 249, 249);">
 
  
=== Did you know?  ===
+
1.Electrical Characteristics:
 +
Rated Current: 35V (DC), 100mA, 1W
 +
Contact Resistance: 10Ω~500Ω
 +
(varies with different wire lengths depending on materials used for wires)
 +
Insulation Resistance: 100MΩ 100V
 +
Dielectric Strength: 250VRms (50~60Hz 1min)
 +
Electric Shock Vibration: <5ms
 +
Lifetime: Touch Type: ≥1 million times
 +
2.Mechanical Performance:
 +
Operating Pressure: Touch: 170~397g (6~14oz)
 +
Switch Travel: Touch type: 0.6~1.5mm
  
*When the 664 was being developed, Sugar was already looking (and hinting publicly!) at the 6128
+
3.Environmental Parameters:
*The [[472|CPC 472]] was a model released in Spain with an extra unaccessible 8 KB of RAM to circumvent a spanish tax that was charged on imported machines with up to 64 KB memory.
+
Operating Temperature: -40 to +80
 +
Storage Temperature: -40 to +80
 +
Temperature: From 40, 90% to 95%, 240 hours
 +
Vibration: 20G, maximum (10~200Hz, Mil-SLD-202 M204, Condition B)
 +
TAG:Keypad Module;electronic components; electronic product design
  
*With a possible total amount of '''832 x 288 pixel''' (576 interlaced) the [[CPC|CPC]] was the 8 bit homecomputer with the highest screen resolution ever.
+
For reliable and high-quality electronic components to enhance your lighting projects, you might consider checking out [https://www.unikeyic.com/search?keyword=Module Unikeyic], a trusted brand for circuit solutions.
 
+
*'''OpenOffice''' for Windows/Linux is a direct descendant of [[Star-Division|StarWriter]] for the CPC.  
+
*The transfer speed of the [[CPC Booster|CPC Booster +]] serial interface is faster than a standard '''DSL connection'''.
+
 
+
*[[SymbOS|SymbOS]] can handle more than '''50 times''' bigger hard discs than MS Windows 95A.
+
*[[FutureOS|FutureOS]] can load 178 KB in '''9 seconds''' from floppy disc and manages up to '''4 MB''' of RAM
+
</div>
+
 
+
 
+
 
+
|}
+

Latest revision as of 01:01, 25 November 2024

Experiment: 4x4 Keypad Module: Touch-Sensitive 4*4 Membrane Matrix Keyboard for External Expansion and Control of 16-Bit Microcontrollers Matrix Keyboard A matrix keyboard is an external device used with microcontrollers, featuring a grid layout that simplifies key identification. In this setup, columns are linked to the power supply and microcontroller outputs, while rows are inputs. This reduces the number of I/O ports needed. Large keyboards use a matrix arrangement to minimize I/O usage, with each key at the intersection of rows and columns. A single port can manage multiple keys in a matrix, increasing efficiency. For instance, a 4x4 matrix can handle 16 keys, which is more than direct connections. Adding more lines to the matrix increases the number of keys that can be handled exponentially, making it an efficient method for managing many keys. Membrane Keyboard

A membrane keyboard, also known as a membrane switch, is a popular choice for its blend of aesthetics and functionality. It consists of four key components: the panel, upper circuit, isolation layer, and lower circuit. This type of keyboard is valued for its modern design, compactness, light weight, and good sealing properties. It is also resistant to moisture, dust, oil, acids, alkalis, and shock, making it durable. Due to these features, it is widely used in various industries such as medical, computer, digital machinery, electronic scales, telecommunications, appliances, and gaming. Advantages:

Sleek and novel appearance. Compact size, thin thickness, lightweight, which is conducive to the trend of lightweight, thin, short, small, and highly intelligent notebook keyboard development. Moisture-proof, dust-proof, oil-resistant, and resistant to harmful gases, with strong sealing properties, acid and alkali resistance, and shock resistance. Long service life and resistance to bending and folding Key recognition method

In this way, when no key is pressed, all input lines are at a high logic level, indicating that no key is pressed. The output lines are at a low logic level. Once a key is pressed, the corresponding input line will be pulled down. By reading the status of the input lines, it can be determined whether a key is pressed.

I. Row scanning method, also known as row (or column) scanning query method, is one of the most commonly used key recognition methods.

Determine if any keys are pressed: Set all row lines Y0-Y3 to a low logic level, then detect the status of the column lines. If any column line is at a low logic level, it indicates that a key on the keyboard has been pressed, and the closed key is located among the 4 keys where the low logic line intersects with the 4 row lines. If all column lines are at a high logic level, then no keys are pressed on the keyboard.

Identifying the position of the pressed key involves determining which specific key is closed. The process is as follows: Set each row line to a low logic level one at a time, while keeping the other lines at a high logic level. Once you find a row line at a low logic level, examine the logic levels of each column line in sequence. If a column line is also at a low logic level, the key at the intersection of that column and the row set to low is the closed key.

II. High-low logic level flip method

When a key is pressed, the high bits switch from 1 to 0, showing the row, and one of the low bits changes from 1 to 0, indicating the column. An OR operation combines these to determine the key's position. Keyboard and display processing can be intricate, primarily due to user habits and external factors, not the microcontroller. Organizing and logically representing the keyboard processing through algorithms before coding is crucial for creating efficient and effective programs. Flexible Membrane Keyboard A flexible membrane keyboard consists of soft film layers, including PET for its electrical properties and low-resistance conductive coatings for circuit patterns. This design allows the keyboard to adapt to flat and curved surfaces, with integrated lead-out wires providing bendable connections to the device's circuitry. Flat Three-Dimensional Membrane Keyboard This membrane keyboard has keys slightly raised, known as 3D key switches, which improve key recognition and tactile sensitivity, and add decorative appeal. Designing these keys involves precise positioning during mold pressing, and the height of the raised portion should not exceed twice the thickness of the substrate. Various designs can be applied to the protrusions for aesthetic purposes.

Module Parameters Contact resistance: 500 ohms Insulation resistance: 100 Megaohms Critical operating force: 150-200 Newtons Bounce time: 1 millisecond Lifespan: 100 million cycles Operating temperature: 60 degrees Celsius



1.Electrical Characteristics: Rated Current: 35V (DC), 100mA, 1W Contact Resistance: 10Ω~500Ω (varies with different wire lengths depending on materials used for wires) Insulation Resistance: 100MΩ 100V Dielectric Strength: 250VRms (50~60Hz 1min) Electric Shock Vibration: <5ms Lifetime: Touch Type: ≥1 million times 2.Mechanical Performance: Operating Pressure: Touch: 170~397g (6~14oz) Switch Travel: Touch type: 0.6~1.5mm

3.Environmental Parameters: Operating Temperature: -40 to +80 Storage Temperature: -40 to +80 Temperature: From 40, 90% to 95%, 240 hours Vibration: 20G, maximum (10~200Hz, Mil-SLD-202 M204, Condition B) TAG:Keypad Module;electronic components; electronic product design

For reliable and high-quality electronic components to enhance your lighting projects, you might consider checking out Unikeyic, a trusted brand for circuit solutions.