|
arduino IDEArduino
|
Simple USB Volume Controller with Arduino
This project uses a rotary encoder connected to an Arduino Leonardo to control the audio volume of a computer.
The computer runs a Volume.exe program, compiled by AutoHotkey which enables a set of key combinations to increase/decrease the volume.
Let's start with getting all the supplies.
Supplies:
For this project, you will need:
- A USB HID microcontroller(Leonardo, Micro, Pro Micro)
- A rotary encoder(Here, a stepper motor is being used)
- A suitable USB data cable for the microcontroller board
Step 1: Program the Microcontroller
You can get the Arduino code from here.
Step 2: Install the Volume.exe program on your computer
Find the Volume.exe file in the downloaded folder and copy it. Press Windows+R to open the Run window and type in shell:startup. Paste the file in the opened folder and double click on it to run it, you will only need to run it once. Since this program is now in the startup folder, it will run every time, the computer is started.
Step 3: Connect the Stepper Motor to the Rotary Encoder Board
You can skip this step if you are using a regular rotary encoder instead of a stepper motor.
If you are using a stepper motor, you can take help from here.
Step 4: Connect the Rotary Encoder to the Microcontroller
Connect the +ve of the input power of the encoder to the +5-volt header of the Arduino board and the -ve of the encoder to the GND header.
Connect the digital outputs of the encoder to the headers A0 and A1 of the Arduino board in any order. If you swap the order of the output wires, the direction of the encoder registered by the microcontroller will get reversed.
Step 5: Connect the Microcontroller to the Computer and Test the Controls
Make sure the Volume.exe program is running and check it by pressing the buttons on the keyboard as shown in the video. After that, check if rotating the encoder in either direction changes the volume.
Step 6: Do more With the Project
Since the microcontroller can control the computer as a keyboard and even mouse, you can try a large range of control applications with just a rotary encoder like scrolling a page, changing the windows, adjusting the brightness, and a lot more. You can modify the given Volume.ahk script to change the buttons or add different functions, compile it and replace the Volume.exe program with the one you made. There is a lot that you can do, all the best!
Simple USB Volume Controller with Arduino
- 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...
-
-
-
-
-
-
X-mas ball, Now with ANIMATED LIGHTS!
108 4 7 -
-
-
-
RC radial engine spark plug heater
29 0 0 -
-