Wii Nunchuk Controlled Stepper Motor | Joystick Motor Control
Supplies
For this project, you will require:
- An Adafruit Motor Shield V2
- An Arduino microcontroller compatible with the Adafruit Motor Shield(UNO, Leonardo, and similar ones)
- A Nintendo Wii Nunchuk
- A stepper motor(Unipolar and bipolar, both will work)
- 4 male to male jumper wires(For connecting the stepper motor to the motor shield)
- A 5-12 volt DC power source(Depends on the requirement)
Step 1: Program the Arduino Microcontroller
You can get the Arduino code from here.
Go through the code before uploading to understand how it works and how you can modify it later. You can get the Wii Nunchuk library here.
Step 2: Install the Motor Shield on the Arduino Board
Carefully align the pins of the motor shield with the female headers of the Arduino board and push the shield on top of the Arduino board. Make sure the shield fits securely on the Arduino board and no pin gets bent.
Step 3: Connect the Stepper Motor to the Motor Shield
Connect the jumper wires to the terminals of the shield labeled 'M3' and 'M4'. Connect two wires from 'M3' to one coil pair of the motor and connect the remaining two wires to the other coil pair of the motor. Ignore the center tap(Common) wire if a 5-wire unipolar stepper motor is being used.
Step 4: Connect the Wii Nunchuk to the Arduino Board
Check this guide to understand how to use a Wii Nunchuk with an Arduino microcontroller. Connect the +ve pin of the Nunchuck to the +3.3-volt header of the Arduino board, connect the -ve pin to the 'GND' header, connect the 'SCL' wire of the Nunchuk to either 'A5' or 'SCL' header of the Arduino board, and connect the 'SDA' wire of the Nunchuk to either 'A4' or 'SDA' header of the Arduino board.
Step 5: Power Up the Setup and Test the Controls
As seen in the video, on moving the joystick to the right, the motor will move clockwise(Can go anti-clockwise if the wiring is altered) and on moving the joystick to the left, the motor will move anti-clockwise. The motor will move faster if the joystick is far from the center and slower if it is closer.
On pressing the 'C' button, the motor will move back to the position it started from powering up the setup.
Step 6: Tinker With the Project
Try changing the maximum and minimum speed of the motor, maybe add another motor and control both of them with each axis of the joystick...., there is a lot to do. All the best!
Wii Nunchuk Controlled Stepper Motor | Joystick Motor Control
- Comments(2)
- Likes(2)
- T-Bone May 29,2021
- ElectroMaker May 27,2021
- 1 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
-
7design
-
6usability
-
8creativity
-
10content
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
39 0 0 -
-
-
-
Sega Master System RGB Encoder Switcher Z80 QSB v1.2
47 0 0 -
18650 2S2P Battery Charger, Protection and 5V Output Board
59 0 0 -
High Precision Thermal Imager + Infrared Thermometer | OpenTemp
360 0 5 -
Sony PlayStation Multi Output Frequency Oscillator (MOFO) v1
117 0 2