#MAKERSPACE AFICIONADO & ADVOCATE
  • Home
  • MakerEd is
  • the journey
  • Services
  • Presentations
    • Maker Centered Learning
    • MakerSpaces not just a room
    • Low Cost Low Tech Maker Materials
    • MakerMarketSchool
    • microbit
    • ScreenCasting >
      • what is it
      • examples
      • why do this
      • how to make them available
      • recording tools
      • microphones
      • web hosting
      • iPad options
      • tips
      • resources
    • Student Voices For Assessment >
      • Why
      • StudentVoicesExamples
      • Tools to Create
      • TurningInTheWork
      • TechnicalIssues
      • OtherIdeas
      • YourTurn
    • Tweet Yourself Right
    • Educational Vision of Calvin & Hobbes
    • Wearables
  • me
    • Resume
    • playtime
  • Maker Resources
  • Maker Van
  • Coding&Robotics
    • MakeCode
    • microbit
    • Makerbit
    • bitbooster
    • CRICKIT
    • kittenbot
    • CircuitPlaygroundExpress
    • Edison
    • FiriaLabs
    • VEX
  • CardboardConnectors
  • resonance
    • books
    • videos
    • education & science issues

MatrixMembranKeypad

4/4/2021

0 Comments

 
Picture
This is a "matrix membrane keypad". I have seen 4x4 and 3x4. They are flexible and under $2. The advantage to them is they are more inputs with fewer wires (16 or 12 depending on which you use). There is a wire for each row and each column. How you detect which button is pressed is by using code to scan each row/column combination.  So a 3x4 needs 7 wires and a 4x4 needs 8. Which also means, if you need 5 or fewer inputs, just use arcade buttons...(though those would cost more than this). You can put your own stickers over the "buttons" to have special words.

The way I have found & figured to code this is to set each row HIGH (digital write) one at a time, then READ each column to see which goes high. 
pseudocode :

Digital write row 1 (whichever pin that is attached to) HIGH
if column 1 = HIGH (digital read)
then do something
if column 2 = HIGH
then do something else
if column 3 = HIGH
then do something different
if column 4 - HIGH
then do some other thing
Digital write row 2 HIGH
...
more similar statements for row 2, row 3 , row 4.


Could be a good use for a function - "scan keys"
I am thinking we have to be careful picking which 8 pins on the micro:bit you use to avoid conflicts.
Also, you need an expansion board that gives you access to 8 pins. 
​As well as appropriate dupont wires to make connections.


This made me begin to look into arrays in makecode.com (under Advanced)
A magic 8 ball is something that uses an array or list of phrases.
Shake it and it displays a random item from the list.
(could do this with micro:bit and an OLED)
You can put a whole bunch of musical notes in an array/list, then use 1 command to play them all, one after the other. But this only works if you play each note for the same duration. The old way would be to have a play command for each note. 


You might need someplace to store something like a password and someplace to put inputs one at a time...which is an array (or list).
Here is a little twist, you dont compare a whole array or a list to see if it matches another, you have to compare EACH element, one at a time.
If you try to compare "list1" to "list2"...i think it just looks at the locations, not what is in them
So you have to compare "list1 item1" to "list2 item2"...and so on.
It is just a matter of choosing the correct code....and maybe a "for loop" or "repeat loop"...AND a nice embedded boolean... "if these two are = AND these two are = AND these 2 are equal....."
{i'll do more on that later}

So, what project do you have that could use 6-16 possible inputs?
-A combination lock/numeric password could be one
-Maybe playing music...16 notes?
I wonder about a way to do octaves...though I assume you cannot press two of these buttons at the same time, so I would need a second one or arcade buttons to pick the octave. You dont HAVE to use all 16 keys on a 4x4...you could just wire 2 rows.

Just some intro thoughts...more later when I make some videos.


0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    December 2022
    November 2022
    September 2022
    August 2022
    July 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    July 2021
    June 2021
    April 2021
    March 2021
    February 2021
    November 2020
    October 2020
    March 2020
    February 2020
    January 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    August 2018
    July 2018
    June 2018
    May 2018
    March 2018
    February 2018
    December 2017
    September 2017
    August 2017
    July 2017
    May 2017
    March 2017
    August 2015
    July 2015
    June 2015
    August 2012
    July 2012

    Categories

    All

    RSS Feed

      Want to talk more?

    Submit
Proudly powered by Weebly
  • Home
  • MakerEd is
  • the journey
  • Services
  • Presentations
    • Maker Centered Learning
    • MakerSpaces not just a room
    • Low Cost Low Tech Maker Materials
    • MakerMarketSchool
    • microbit
    • ScreenCasting >
      • what is it
      • examples
      • why do this
      • how to make them available
      • recording tools
      • microphones
      • web hosting
      • iPad options
      • tips
      • resources
    • Student Voices For Assessment >
      • Why
      • StudentVoicesExamples
      • Tools to Create
      • TurningInTheWork
      • TechnicalIssues
      • OtherIdeas
      • YourTurn
    • Tweet Yourself Right
    • Educational Vision of Calvin & Hobbes
    • Wearables
  • me
    • Resume
    • playtime
  • Maker Resources
  • Maker Van
  • Coding&Robotics
    • MakeCode
    • microbit
    • Makerbit
    • bitbooster
    • CRICKIT
    • kittenbot
    • CircuitPlaygroundExpress
    • Edison
    • FiriaLabs
    • VEX
  • CardboardConnectors
  • resonance
    • books
    • videos
    • education & science issues