Week #10: (3/26-3/30) PING Sensor, 4x4 Keypad

Post Reply
rjagodowski
Posts: 1412
Joined: Fri Sep 04, 2015 6:59 pm

Week #10: (3/26-3/30) PING Sensor, 4x4 Keypad

Post by rjagodowski » Sun Mar 25, 2018 7:38 pm

The PING Ultrasonic Sensor is one of the required labs you will have to perform before the end of the semester.


Here's the link to the PING Sensor from Parallax and here is the Chapter from the Smart Sensors Text using the PING sensor. These are the exercises you should perform when using the PING.
PING from SmartSensorsText_v14.1.pdf
(1.79 MiB) Downloaded 25 times
Here's a document on using the PING as a fluid level detector:
WaterLevelwithPing-v1.0.pdf
(136.54 KiB) Downloaded 17 times
The PING sensor reports it's information to the BS2 using the PULSIN command. Here is the information about PULSIN from the Syntax & Reference Manual:
PULSIN from Syntax & Reference Manual.pdf
(121.55 KiB) Downloaded 18 times

4x4 Keypad

Another required device you'll be using later in the semester is the 4x4 keypad which uses a matrix system to determine which key is pressed. This basic concept is common to most keypad & keyboard components. Here is the pdf for the keypad exercises:
4x4matrixmembranekeypad-v1.2.pdf
(120.52 KiB) Downloaded 26 times
NOTE: When copying and pasting the sample code for the 4x4 Keypad in the pdf into the BS2 Editor, there might be a problem with the "spacing" of the keyboard grid generated in the subroutine. If this happens, you will notice that the right column or two might not "clear" when releasing the key. To remedy this, insert additional spaces as needed to allow the vertical bars "|" to align with the "+" signs in the row above. Your grid should look like the example code in the keypad pdf.

Post Reply

Return to “EET-260 Lecture”