Help - Spikes in PS2 joystick readings - Project Guidance - Arduino Forum
![Help - Spikes in PS2 joystick readings - Project Guidance - Arduino Forum](https://europe1.discourse-cdn.com/arduino/optimized/4X/3/c/4/3c4c828caf27d61530cca1971e900889708f07b4_2_634x500.jpeg)
I have setup my PS2 wireless receiver set up to control a pair of motors connected to a motor shield on the Uno using the PS2X library from Bill Porter. The issue I have now is even when the joysticks are not moved (neutral position), there are occasional spikes (of max value) from both sticks. This causes the motors to jerk then it happens. Code and serial output below. #include <PS2X_lib.h> // library for PS2 controller #include "CytronMotorDriver.h" // library for Cytron SHIELD-MD
![](https://europe1.discourse-cdn.com/arduino/optimized/4X/3/c/4/3c4c828caf27d61530cca1971e900889708f07b4_2_634x500.jpeg)
Help - Spikes in PS2 joystick readings - Project Guidance - Arduino Forum
![](https://europe1.discourse-cdn.com/arduino/original/4X/e/a/3/ea3fc463e2ee9e1dde5baebed8ad5cdfa5d49afa.jpeg)
Controls for a project - Project Guidance - Arduino Forum
![](https://ogrforum.ogaugerr.com/fileSendAction/fcType/0/fcOid/158251952224657396/filePointer/162194227974432236/fodoid/162194227974432231/imageType/LARGE/inlineImage/true/UltrasonicRangerRouted_10.jpg)
HC-SR04 ultrasonic sensor for outdoor layout block detection
![](https://europe1.discourse-cdn.com/arduino/original/4X/e/b/2/eb2c6015e18cb0b3cdeac25317434dddae3ab54d.png)
How to get the best out of this forum - IDE 1.x - Arduino Forum
![](https://acoptex.com/uploads/PS2controllerArd5.jpg)
jobs.html_title
![](https://europe1.discourse-cdn.com/arduino/original/4X/e/5/8/e588debdaaacf552388fe4b729c57a125c452d03.jpeg)
Will my input protection work? Connecting arduino to automotive environment. - Project Guidance - Arduino Forum
Arduino Car Counter
![](https://i.ytimg.com/vi/_UY6RTYl71Y/maxresdefault.jpg)
Thumb Joystick - COM-09032 - SparkFun Electronics
![](https://www.repairfaq.org/sam/uSLC1/Main_Window_Widgets1.gif)
Micro Stablized Laser Controller 1 (µSLC1)