Skip to content

Instantly share code, notes, and snippets.

@listofoptions
listofoptions / matrix.csv
Created September 24, 2018 01:10
hp 46010a matrix read out from arduino program read_matrix.ino (see gist)
menu 1 8 1
clrd 10 8 1
clrl 100 8 1
f8 1000 8 1
f7 10000 8 1
f6 100000 8 1
f5 1000000 8 1
user 10000000 8 1
8 1 16 2
dell 10 16 2
@listofoptions
listofoptions / read_matrix.ino
Created September 24, 2018 01:09
reading matrix output from hp 46010a using arduino and a teensy
/*
this isketch requires the use of the teensyduino environment if running on a teensy 2.0. i have not tried to run it on other boards.
it should ask for you to press a series of button on the board and it will record the corresponding key pattern out as it reads the entire matrix of the board.
the pins used on the teensy, are SS, SCLK, MISO, aka PB0, PB1, and PB3.
<insert something about wireing here>
in order to use this program, you have to have an acutual terminal, the one that comes with the arduino environment is subpar.
for windows i suggest putty, there are tutorials on how to us it with a serial port on the internet.
for linux there isnt really any special program needed, as linux is mostly terminal programs anyway, so simply telneting into the corresponding serial port will work just fine.
when the program starts up it will ask for the user to press the key, but will not continue until prompted further. just hit enter/return on the computer (not the 46010a under test)