|
arduino IDEArduino
|
Reuse an Old Laptop's Touchpad to Control a Computer!
PS/2 laptop touchpads are among the coolest user interface devices to use with a microcontroller. The sliding and tapping finger gestures can prove to make controlling stuff in a quite simple and fun way. In this Instructable, let's combine one with a USB HID Arduino microcontroller to take control of our computer with a slide of our finger. Let's get started!
Step 1: Watch the Video
Watch the video to understand how this works and know the keyboard functions.
Step 2: Get All the Required Stuff
We can start with the basic version of this project where two keyboard shortcut functions can be controlled via the finger movement on the x and y axes respectively. The multifunction version will allow us to use more than two keyboard shortcut functions where the x-axis movement will control the function and the y-axis movement will switch between the functions.
For this project, you will require:
- A USB HID-compliant Arduino microcontroller(Leonardo, Micro, Pro Micro).
- A PS/2 touchpad(One from Synaptics is recommended as it is known and tested).
- 4 wires(Bare wires with a male connector on one side to connect the Arduino board to the touchpad).
For a multifunction controller, you will additionally require:
- A 7-segment LED display(Common cathode one, i.e, having the common terminal -ve)
- A 220Ω resistor.
- 9 wires(To connect the LED display to the Arduino board).
Step 3: Identify the Wiring Connections of the Touchpad
Search online for the part number of the touchpad being used. If you get stuck, you can get help from the r/Arduino community.
On most of the touchpads, especially the Synaptics ones, the following copper pads correspond to each of the connections of the onboard chip:
- T22 ~> +5-volt
- T23 ~> GND
- T10 ~> Clock
- T11 ~> Data
Step 4: Program the Arduino Microcontroller
I would recommend starting with the basic version of the code to become familiar with the controls and tweak with the settings to suit your future requirements.
Step 5: Connect the Touchpad to the Arduino Board
As the copper pads of the touchpad are already known, we can connect the 5-volt and GND input of the touchpad to the +5-volts and GND header pin of the Arduino board.
The Clock pin will be connected to pin A0 and the Data pin will be connected to pin A1 of the Arduino board.
Step 6: Connect the Setup to Your Computer
You can skip this step for now if you are doing the multi-function version of the project.
After connecting the setup, by moving the finger across the touchpad on the x-axis, you should be able to control the left and right arrow keys and by moving the finger along the y-axis, you should be able to control the up and down arrow keys.
Step 7: Connect the 7 Segment LED Display to the Arduino Board
Connect the common pin of the display through a 200Ω resistor to pin D9 of the Arduino board. Then make the following connections:
LED display pin ~> Arduino board pin
A ~> D2
B ~> D3
C~> D4
D ~> D5
E ~> D6
F ~> D7
G ~> D8
The pin 'DP' of the LED display will not be used.
Step 8: Connect the Setup to the Computer and Test It
After connecting the setup to the computer, sliding the finger along the y-axis as in the video will cause the number on the LED display to increment/decrement depending on the direction of finger movement. There are a total of 15 functions, of which 14 are for computer control(The function 0 is reserved for LED display's brightness control but can be changed by modifying the Arduino code).
While being in function 0, sliding the finger along the x-axis will cause the brightness of the LED display to vary, depending on the direction of finger movement. The other 14 functions are explained in the Arduino code. Feel free to change them to suit your requirements.
Step 9: Volume Control
The Arduino microcontroller emulates the pressing of Page Up and Page Down keys with the Ctrl key to raise and lower the volume respectively. In order for this keyboard shortcut to work, you would need to download the 'Volume.exe' file from here(It's safe) and put it in the startup system folder so that it runs every time the computer is booted up.
You can check this for help.
Step 10: Customize the Code
Try making changes to the code to do more stuff other than controlling the computer, adding more functions, or changing the existing ones. There are a lot of functions left to make use of.
Step 11: Do More
Using a touchpad, try controlling other things like this and this. Using a PS/2 touchpad, you can do a lot of stuff! If you come up with something new, try sharing it with the community.
All the best!
Reuse an Old Laptop's Touchpad to Control a Computer!
- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by KushagraK7
- Raspberry Pi Pico RC Vehicle SuppliesA Raspberry Pi Pico(Almost any microcontroller can be used here, but the Pico offers great f...
- Stepper Motor Controlled Stepper Motor Without Microcontroller! Step 1: Watch the VideoWatch the video to get a full understanding of the project and learn how to t...
- Automated Model Railroad Layout Running Two Trains I made an Automated Model Train Layout with Passing Siding a while back. Upon request from a fellow ...
- Program the Raspberry Pi Pico With the Arduino IDE The Raspberry Pi Pico is a recently launched product in the family of microcontrollers and its load ...
- Reuse an Old Laptop's Touchpad to Control a Computer! PS/2 laptop touchpads are among the coolest user interface devices to use with a microcontroller. Th...
- Automated Model Railroad Layout With Reverse Loops In one of my previous projects, I showed how to make a Simple Automated Point to Point Model Railroa...
- Use a Stepper Motor As a Rotary Encoder Rotary encoders are great for use in microcontroller projects as an input device but their performan...
- Keyboard Controlled Model Train(PS/2 Interface) Using Arduino microcontrollers, there are a lot of ways of controlling model railway layouts. A keyb...
- Stepper Motor Speed and Direction Control Without a Microcontroller In one of my previous projects, I showed you how to control a stepper motor's speed using a 555 time...
- Smartphone Controlled 4X4 Robot With ESP8266 SuppliesFor this project, you will need:An ESP8266 microcontroller(Node MCU)A dual H-bridge motor dr...
- Touchpad Controlled Digital Servo Motor Here is a quick and simple project where we control a digital servo motor with the slide of our fing...
- Smartphone Controlled Model Railroad With an ESP8266 IntroA while back, I made a project where a stepper motor's position is controlled using a smartphon...
- Simple USB Volume Controller with Arduino This project uses a rotary encoder connected to an Arduino Leonardo to control the audio volume of a...
- Motor Speed and Direction Control with a Web-Server using an ESP01 Supplies:For this project, you will need:An ESP01 microcontroller(You can use any ESP8266-based micr...
- Wi-Fi Controlled Stepper Motor With an ESP Microcontroller Step 1: Get All the Required StuffFor this project, you will need:An ESP8266 microcontrollerA Steppe...
- Simple Automated Model Railroad Loop With Yard Siding Video:Supplies: For this project, you will require:An Arduino microcontroller board compatible with ...
- Laptop Touchpad Controlled Model Railroad Supplies:For this project, you will require:An Arduino microcontroller compatible with Adafruit Moto...
- Control a Stepper Motor with a Slide of Your Finger Supplies:An Arduino microcontroller boardA PS/2 touchpad from a laptop(Try to get one with a Synapti...
-
-
-
-
-
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
154 1 1 -
-