How To Role A Ps3 Controller Equally A Wireless Servo In Addition To I/O Controller!

Wondering how to integrate a game controller into your electronics projects? You tin role a PS3 controller to control servos, motors, in addition to digital I/O yesteryear using a module circuit such every bit the ServoShock module circuit, which is the size of a stick of gum!

The ServoShock is pre-loaded alongside drivers for the Bluetooth dongle in addition to the DualShock3 controller that allows yous to command several RC circuits in addition to motors alongside the Sony Dualshock3 controller via USB or wireless (Bluetooth). With this solution, yous tin command iv servos alongside the analog sticks, 2 servos alongside the triggers, 3 servos alongside the XYZ accelerometers, in addition to 1 servo alongside the gyroscope. The digital outputs are controlled yesteryear clitoris presses in addition to trigger pulses.

One characteristic that I actually similar virtually the ServoShock controller is that yous tin brand a release of adjustments to the outputs. For example, yous tin guide whether yous desire the servo to piece of occupation inwards absolute input mode, or the analog sticks direct command the seat of the servo.

You tin also guide a relative vogue where the analog sticks command the velocity of the servo. You tin also modify the trim, arrive at of motion, direction of locomote in addition to sensitivity. You tin implement a centre deadband in addition to re-calibrate the goose egg seat of the analog sticks in addition to accelerometers to right for whatever betoken drift. The RC servo outputs tin also go changed to a regular PMW betoken for controlling DC motors.
Each of the digital outputs tin go configured every bit momentary, toggle or autofire, though they tin also go inverted if yous prefer to bring an active depression output. The controller updates 100 times a second, thence it's really smooth. You don't involve whatever programming experience, or fifty-fifty a computer, to configure the ServoShock.

What yous create is concur the PS in addition to select buttons downwards for 3 seconds to go into inwards a especial configuration mode. You tin thence bike through each of the 27 outputs in addition to brand adjustments. For example, let's nation yous desire to accommodate the centre seat of the servo command yesteryear the right joysticks X axis, which is on channel 2. You tap the right shoulder bumper twice to bike the channel to configurations in addition to press the left or right direction pad to accommodate positions.

When yous are done, concur the showtime clitoris for 3 seconds to relieve the changes.

PS3 Controller controlling this iv wheeled mecanum robot

You tin also clitoris the RAW information from the dualshock controller yesteryear using a series peripheral interface (SPI) autobus interface to read the RAW packets. The LEDs in addition to the rumble motors on the dualshock tin also go controlled alongside either the I/O pins or SPI bus.

There is also a demo board available alongside the ServoShock solution that tin business office every bit an Arduino shield. RC servos tin go plugged into this demo board in addition to an Arduino tin read the controller packets via the SPI bus. The demo board also has a USB to series yoke that allows yous to upload novel firmware in addition to read the controller console output for making adjustments.