Posts

Showing posts with the label sensors

Converting reins input to key presses for Unbridled: That Horse Game

Image
In a recent post, I got to the point of using the reins to control Unbridled: That Horse Game -- but only as mouse input, which moves the rider's head, rather than the horse's head.  To fix this, I need a way to take mouse inputs and convert them to keyboard key presses.  It looks like this is possible with the Arduino Uno I am using, by loading some special firmware onto the Atmega8/16u helper microcontroller on the board. Well, actually, it looks like it is possible for the Arduino Uno, but not the Arduino Uno Wifi Rev2 that I have been using for reading the sensors so far. Bummer! Fortunately I have an Arduino Uno lurking about as well, so I should be able to do it after all.  The regular Uno has the extra connector required for reprogramming the bootloader on the MEGA8U microcontroller.  Information on how to install it can be found  here . Hmm, nope, that won't work either -- it used to work, years ago. Now the preferred approach is to use an Arduino Leonar...

Head rotation hinge and test setup

Image
Having worked out that I need to add cheek pressure sensors to detect open reins, and that the motion of the head when asking for the horse to turn the head affects the felt pressure on the reins, I am now turning to allowing the head rotate in a more robust manner.  At the same time, I want to make a detached head setup, so that I can easily test the reins interaction from on the ground, without having to mount the "horse". The first step was to think about what I was going to do for the hinge.  So I went out to CBC Bearings at Regency Park and had a chat to the nice folks there, complete with wooden horse head on their counter.  They were very helpful, and we settled on using some nice heavy-duty bearings that take a 20mm steel shaft, to make sure that the weight and forces of the heavy horse head moving are easily accommodated without risk of self-damage etc. The steel shaft I purchased from METALCORP on Grand Junction Road, who were also really helpful.  It turns...

Reins Pressure Sensing Progress

Image
While my goal is to build a complete open-source horse riding simulator, this doesn't mean that I have to wait until I have everything working before I have anything.   Based on conversations with my friendly equestrian experts, I believe that there is potential value in a simple reins pressure trainer, that helps new riders learn to provide smooth and appropriate pressure to the horse's mouth through the reins, as well as be able to practice various activities and techniques with the reins. This is an attractive mile-stone, because it doesn't require any movement of the machine, and I already have the mouth sensors more or less working. A few other pieces fell into place for this today, while I was talking with some colleagues: First, for making a horse head, it's quite likely I can just use those latex costume horse head masks that can be bought quite cheaply as the basis for the exterior, and build a simple structure to hold it.  They already have a hollow mouth, so...

Building First-Version In-Mouth Rein Pressure Sensors

Image
Before we get onto the topic at hand, following on from the previous post, a few more thoughts on how the pressure can be measured for the mechanical horse: 1. Measure the deflection of the horse body as an alternative method of measuring the pressure, e.g., using ultrasonic range measurements or LIDAR to map the deformation of the body to determine the location and magnitude of applied pressure. 2. Use a sock or similar pre-made (or partially pre-made) container/sleeve into which the sensor(s) can be inserted for safety/holding together and/or ease of attachment. 3. Use a single resistor in-line with the sensor, to increase the range of measurement.  4. Switch between different values of in-line resistor to improve the sensitivity at different pressure ranges.  This is because the sensor is effectively being used as a voltage dividor made of the sensor and another resistor. The greatest change in voltage occurs when the other resistor is of similar resistance to the sensor. I...