Hand Installing pySerial into Python Installations

Le Sun 30 October 2016

This is a development step along the route of designing a Homebuilt VR System. PySerial is a useful python library for accessing the serial port. As such it is ideal for allowing us to directly connect the Arduino output to the Blender Game Engine python environment for efficient transfer of sensor readings to motion in the virtual environment. This page describes how to install pySerial in standalone applications with their own embedded Python environments without the need to do all kinds of extra things like installing and using pip or Easy-Installer.

Lire la suite - Read More …

Par Hamish Trolove, Catégorie : Tech Projects

Tags : VR / Arduino / Blender / Python /

Autres articles

The GY87 Combined Sensor Test Sketch

Le Thu 15 September 2016

I am intending to use a GY87 board on my Homebuilt VR system. This page describes the connections and an Arduino sketch that tests all of the GY87 board's sensors together and outputs the data to the Serial Port.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : VR / Arduino / Electronics / Sensors /

Lire la suite - Read More …

A Homebuilt Virtual Reality System

Le Wed 07 September 2016

The project is a work in progress. It describes a home built VR system based on the Quanum FPV headset used for FPV piloting of remote controlled aircraft, and making use of the GY87 10 degree of Freedom sensor to provide head tracking. It is envisaged this will be coupled to a computer running a game engine like Blender, Unity or Godot which will allow the user to build and share their own virtual environments.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : VR / Arduino / Blender / Electronics / Games / Sensors /

Lire la suite - Read More …

FrankenVinci - Converting a Bricked Da Vinci to RAMPS Controller

Le Fri 15 July 2016

OK, so you have bricked your XYZ Printing Da Vinci 3D printer. Don't be down-hearted. Rejoice! Now you have a chance to turn it into something much more versatile. This article describes what I did to convert a stuffed Da Vinci printer to run on a RAMPS controller and thereby safe it from the eWaste stream. You will find the firmware I used together with the 3D printed components I designed to hold the new stuff in place.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / 3D Printing / Electronics /

Lire la suite - Read More …

Battery Discharge Tester

Le Tue 28 June 2016

I have quite a few rechargable AA and AAA batteries kicking around that I'd like to use in various projects, but I know a number of them are pretty crappy. This article describes an Arduino based device that conducts a controlled discharge of the battery cells and logs the voltages. By analysing the discharge curves the battery health can be assessed.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / Electronics / CSV / tools /

Lire la suite - Read More …

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.

Par Hamish Trolove, Catégorie : Tech Projects

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

Lire la suite - Read More …

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 …

Timelapse Camera Slide Version 2

Le Wed 16 March 2016

A while ago I posted an article describing a Camera slide constructed from the bits of a discontinued 3DPrinter project I was working on. It worked, but not very well. So I set about redesiging it with some other ex-3DPrinter bits and using a completely different approach. This new design uses a pulley around which a string or cord could be wrapped. This allows the CameraSlide traveller to winch itself along smoothly and easily. It is also less inclined to jam because the pulley is centrally located and allows the traveller to better follow the tracks.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / Camera / 3D Printing / Electronics /

Lire la suite - Read More …

A Simple Pressure and Temperature Logger

Le Tue 23 February 2016

This article describes a simple logger arrangement that measures pressure and temperature from two pressure sensors; a BMP180 barometer for when things go right, and an MS5803-14BA high pressure sensor for when things go wrong. This logger will be installed inside the ROV shell in place of the control electronics to record the internal pressure while the ROV is subjected to design pressures in a dive decompression chamber. This will show up if there are any leaks. If the pressure rises then there is a problem.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / Pressure / Electronics / CSV / Sensors /

Lire la suite - Read More …

Arduino Library Collection

Le Thu 21 January 2016

Throughout my various Arduino-based projects I have made use of quite a number of excellent libraries that are not part of the standard Arduino IDE. To future proof these projects against the original sources of these libraries disappearing or updated libraries not working for these projects I have collected up the various libraries I have used and will host them here. In the first instance I would suggest going to the original sources for these libraries for the most up to date versions. The versions I am hosting here will not be updated.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / Pressure / Electronics / Sensors / Communication / Playstation / PS2 / Serial / I2C /

Lire la suite - Read More …

A Simple Arduino Based Logger

Le Tue 19 January 2016

This article describes a very simple Arduino based logger for capturing temperature data and recording it to a MicroSD card. It is intended as a building block for another logger project that will include pressure measurements for use during an in-air pressure test for the ROV project.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / Pressure / Electronics / CSV / Sensors /

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 …

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 …

HMC5883L Digital Compass on an Arduino

Le Mon 03 August 2015

This is a simple sketch to test out the HMC5883L based digital compass for potential inclusion in the ROV project. It consists of an HMC5883L digital compass breakout board, and Arduino, and a 16x2 LCD display.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / Electronics / Sensors /

Lire la suite - Read More …

Timelapse Camera Slide from a 3D Printer

Le Thu 02 July 2015

This is what happens to 3D Printer building projects that become too much of a drag. This timelapse camera slide was created using a whole heap of 3D printed bits that I had made for a 3D printer that I had designed. The camera rig controller is a RAMPS / Arduino Mega combination that would normally drive a Reprap style 3D printer. It is a relatively simple build and other than the 3D printed parts makes use of commonly available materials and components. The code provided can easily be modified for an Arduino UNO or Nano running a single stepper motor driver board such as an Easydriver or a Pololu board. there are some projects that just develop fast and easily - this was one of them.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / Camera / 3D Printing / Electronics /

Lire la suite - Read More …

TM1637 4-digit Display Example Sketch

Le Mon 25 May 2015

For simple data out of an Arduino project, a 4-digit LED display can be just the thing you are after. This page provides a very basic sketch to display the value of a variable on an LED display based on the TM1637 chip. Displays of this sort can be obtained from www.dx.com and SeeedStudios.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / Electronics /

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 …

Three Arduino Circuits for Temperature Measurement

Le Tue 27 January 2015

So many ways to measure temperature with an arduino! Here is a brief investigation into using three different types of temperature sensor; Thermistors, DS18B20s, and TMP36s. This is with the intention of adding one of these to the ROV circuit so that I know when it has caught fire.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / Sensors / Electronics /

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 …

Control of the Horyzon HD Camera with an Arduino

Le Wed 21 January 2015

The ROV makes use of a HoryzonHD Full HD 1080p FPV camera V3 sold by FoxtechFPV for the pilot's view of the world and also to record or take photos. Because it is sealed in the ROV it is going to need to be controlled remotely via the ROV's Arduino. This page describes a test arrangement where the Arduino runs through a routine of taking photos and shooting movies using the HoryzonHD camera.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / Camera / Electronics /

Lire la suite - Read More …

ROV Idle Sketch

Le Wed 21 January 2015

When you are building or developing something on the ROV and you have the electronics in place, there are times when you want to apply power to the system but you don't want everything to go wild. This sketch puts the ROV system into a neutral or Idle state. Think of it a bit like the “blink LED” sketch when you first learn to program an Arduino.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino /

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 …

Two Way Serial Communication

Le Mon 13 October 2014

In order to be really useful two way communication through the serial link is needed between the Arduino at the pilot's end and the Arduino onboard the ROV. This will allow data such as battery condition and depth or other sensor readings to be sent back to the pilot. A simple development pair of sketches is shown on this page.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / Communication / Serial /

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 …

PS2 Controllers on Arduinos

Le Tue 17 June 2014

It appears that the Playstation 2 controllers are still actively produced and sold for very good prices. Because they are packed with quite a number of switches, and some excellent joysticks all in a well designed package they seem like a ideal choice for controlling the ROV. This page describes connecting the PS2 controllers to an Arduino.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / ROV / PS2 / Playstation / Electronics /

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 …

Communication between Arduinos – Serial

Le Sat 15 March 2014

How to get commands between two Arduinos. This was based on the developments with I2C communication between Arduinos and then finding that capacitance of longish wires was enough to kill the signal. This required me to use another method with lower frequency signals. Signals were sent between two Arduinos connected together with 100m of twisted pair cable (ultimately I will use CAT5) Arduino. Once Arduino had a joystick wired to it while the other actuated a servo based on the joystick position on the other Arduino.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / Communication / Serial /

Lire la suite - Read More …

Communication between Arduinos - I2C

Le Sat 15 March 2014

How to get commands between two Arduinos. Originally informed by the examples in the Arduino Cookbook, this test project developed some code that took position information from a joystick and sent it to another Arduino over a relatively short wire that turned it into position motion for a servo. This was to test the ability to get information between Arduinos over long wires.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : ROV / Arduino / Communication / I2C /

Lire la suite - Read More …

An Arduino Weekend and Holiday Aware Hot Water Cylinder Timer

Le Sat 01 March 2014

An Arduino based project to control an office hpt water system over weekends and holidays and save the business energy. This article describes the project, the hardware and the code.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / Communication / CSV /

Lire la suite - Read More …

Hot Water Cylinder Controller Variant for Normally Closed Relays

Le Fri 21 February 2014

This is the working variant of the Hot Water Cylinder Controller designed to trigger NORMALLY CLOSED relays.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / CSV /

Lire la suite - Read More …

Hot Water Cylinder Controller Variant for Normally Open Relays

Le Fri 21 February 2014

This is the working variant of the Hot Water Cylinder Controller designed to trigger NORMALLY OPEN relays.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / CSV /

Lire la suite - Read More …

Developing Logic for Alarm Setting

Le Sun 02 February 2014

To develop the Hot Water cylinder Controller Project it was necessary to develop logic for controlling the relay state through triggering of alarms. This Arduino code is a translation of the logic developed with python code.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / Python /

Lire la suite - Read More …

Using TriggerOnce Alarms

Le Sat 01 February 2014

This is a brief trial script to make use of the triggerOnce function.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino /

Lire la suite - Read More …

Arduino - Alarm Logic

Le Sun 05 January 2014

To develop the Hot Water cylinder Controller Project it was necessary to develop logic for controlling the relay state through triggering of alarms. This Arduino code is a translation of the logic developed with python code.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino /

Lire la suite - Read More …

Loading CSV Off SD Card and Updating Times

Le Fri 27 December 2013

This sketch is a major step along the way for the Timer Project. It loads the data off the SD Card into an array that varies depending on the number of dates that the user has bothered to supply. It then looks at the time and jumps the weekend array components forward to the next one from now.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / CSV /

Lire la suite - Read More …

Time Loader and Adjuster

Le Fri 27 December 2013

Yes, an Arduino script to load time and adjust it. This is the fundimental section of a time machine. Yup you heard it here first.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / CSV /

Lire la suite - Read More …

Modified Simple RTC Reader

Le Sun 08 December 2013

A test sketch to use the time library. Most of the code is not mine.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino /

Lire la suite - Read More …

Capturing Data off an SD Card

Le Mon 11 November 2013

This is a small section of a development sketch to capture some sections of a stream of data read off an SD Card.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / CSV /

Lire la suite - Read More …

CSV Array Loader

Le Sun 27 October 2013

A key part of the HWC timer project was reading a file off an SD Card and then do stuff with it. In this case the Arduino code distributes the data read off the file into a variable and an array.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / Communication / CSV /

Lire la suite - Read More …

Breaking up CSVs

Le Sun 27 October 2013

One of the key elements in the code used in the HWC timer project was something to pull apart a sequence of numbers sent in a CSV format. The code here is what was tried and developed in order to do this.

Par Hamish Trolove, Catégorie : Tech Projects

Tags : Arduino / Communication /

Lire la suite - Read More …