Using A Playstation 2 Controller with your Arduino Project

Le Mon 16 May 2016

Because of the interest, in my "PS2 Controller Sketch for ESCs and Stuff" page, I decided to write a more comprehensive guide for using the Playstation 2 controllers on Arduino based projects for the The Shed Magazine. They accepted it and published it in their February March 2016 issue. They have very kindly allowed me to include the article on my website, which is what this page is all about. You will find a link to a downloadable version of the article as published as well as the code and hi-res images of all diagrams produced.

Lire la suite - Read More …

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / PS2 / Playstation / ESC / Servo /

Autres articles

ROV Control Sketches – Fourth Edition

Le Mon 04 April 2016

This update is the eighth edition of the ROV control sketches. This update includes modifactions to the circuit boards and code to accommodate an i2C bus which the MS5803-14BA Depth Sensor and HMC5883L Digital Compass connect to.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / PS2 / Playstation / ESC / Servo / Camera / Electronics / Communication /

Lire la suite - Read More …

Programming and Calibrating the EZRUN 18A ESCs

Le Wed 02 December 2015

Programming and calibrating the Hobbywing EZRUN 18A Car ESC is a process that requires a bit of concentration and user input throughout. This article describes the process of setting the ESC program to suit the ROV, and also how to calibrate it so that it will play nicely with the ROV's control sketches.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / ESC / Servo / Electronics /

Lire la suite - Read More …

Installing a Dianmu OSD and FPV System in an Electric Glider

Le Tue 06 October 2015

Quite some time ago I purchased a Dianmu OSD (on-screen display) from HobbyKing. The Dianmu OSD also includes a flight controller with auto-leveling and return-to-home functions. It sat in a box for quite some time before I decided to mount it on my large(ish) electric Fox Glider. This page describes the connections between the various onboard electrical components.

Par Hamish Trolove, Catégorie : RC Gear

Tags : RC Aircraft / Electronics / Servo / ESC /

Lire la suite - Read More …

ROV Control Sketches – Third Edition

Le Wed 26 August 2015

This update is actually the seventh edition of the ROV control sketches brought about by the hardware being mounted on the frame, with a proper tether and with the camera in place. These updated editions now have the motors turning in the correct direction to get the best out of the ESCs in the direction that most matters. It also implements proper triggering for the Horyzon v3 camera and introduces some work arounds to fix a mismatch between what the camera says it is doig and what the topside indicator LEDs are indicating. On this last point, the onscreen cues for the camera status are a better indication of what it is doing than the topside LEDs, so these will be eliminated from the sketch and circuit in a later edition.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / PS2 / Playstation / ESC / Servo / Camera / Electronics / Communication /

Lire la suite - Read More …

ROV Control Sketches – Second Edition

Le Wed 18 February 2015

Well …. actually this is the fifth edition of the sketches seeing as they have evolved somewhat with the addition of better displays, more sensors, and more data being fed back to the topside station. So this page describes the two Arduino sketches and associated circuits have been developed to feed control commands between the operator using a PS2 controller handset and the ROV. The sketches and designs presented here are the basics required to run the ROV but have better developed data exchange between the two Arduinos. The circuits and sketches have been successfully tested on dry land with the 100m CAT5 cable tether in place.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / PS2 / Playstation / ESC / Servo / Camera / Electronics / Communication /

Lire la suite - Read More …

ROV Control Sketches – First Edition

Le Wed 21 January 2015

Two Arduino sketches and associated circuits have been developed to feed control commands between the operator using a PS2 controller handset and the ROV. This brings together a number of the development sketches. The sketches and designs presented here are the basics required to run the ROV and have been successfully tested on dry land with the 100m CAT5 cable in place.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / PS2 / Playstation / ESC / Servo / Camera / Electronics / Communication /

Lire la suite - Read More …

PS2 Controller Sketch for ESCs and Stuff

Le Wed 22 October 2014

The ideal controller for this ROV is a wired Playstation 2 controller. Luckily they are still made and there is a library for the Arduino to talk to them. This description is for a development sketch to take input from the PS2 controller and actuate a bunch of servos and light some LEDs to simulate the systems onboard the ROV. The program is constructed to allow for easy transfer into the Master and Slave sketches that will ultimately be based on this.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / PS2 / Playstation / ESC / Servo /

Lire la suite - Read More …

Calibrating the ROV's ESCs

Le Wed 01 October 2014

As part of the ROV setup all of the Electronic Speed Controllers (ESC) will need to be calibrated to the Arduino that will control them. The sketch described is designed to be built into the standard operating procedure of the ROV so that it can be quickly and easily done at any stage without the need to muck around with the system to calibrate each one individually. A jumper is used to signal the need to do a calibration run.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / ESC / Servo /

Lire la suite - Read More …

ESC Calibration Using an Arduino

Le Sun 28 September 2014

An important part of the happy operation of a device using an Electronic Speed Controller (ESC) is that it is calibrated to the device that is outputting the control signals. A sketch was developed to calibrate a single ground vehicle ESC. The sketch described here was further developed to calibrate all four ESCS in the ROV at the same time, links to this further development are given on this page. The same process can be applied to aircraft ESCs with only minor modification to the sequence of "Throttle" settings.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / ESC / Servo /

Lire la suite - Read More …

Multi-Joysticks transmitted to Multiple Servos

Le Mon 31 March 2014

In order to control the ROV complex instructions will need to be sent but these must be input into the control system in some way. As an aerly development it was conceived that multiple thumb joysticks could be used. This input method has been superceded by the use of the PS2 Controllers, but the code presented here is still useful and will form the basis for transferring the commands from the PS2 Controllers to the Slave Arduino in the ROV.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / Servo / ROV / Communication / CSV /

Lire la suite - Read More …

Flex Sensor and Servo

Le Wed 26 March 2014

The sketch described is designed to actuate a servo based on the input from a flex sensor. Because the sketch uses serial communications a button push to start and stop the sketch has been introduced to allow upload on Arduino Uno and Mega boards. An LED has also been introduced to show when the sensor and servo have been enabled.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / Servo / ROV / Sensors /

Lire la suite - Read More …