IMU – Inertial Measurement Unit

IMU stands for “Intertial Measurement Unit”. It measures accerations, angular velpcity and magnetic field. From these measurements and with some clever Mathematics, we can calculate the orientation of a device in a Gravitational field (Earth) and the direction it is pointing in (using the Magnetometer).

Why do we want an IMU?

It is important to know what state the rocket is in:-

  • Immediately before launch – i.e. is its movement within prescribed safety limits?
  • During launch  – i.e. what is the acceleration that it is experiencing, in what direction is it accelerating?
  • And after launch – i.e. how long is it in freefall? Has the parachute deployed?

This IMU will give us a very good idea of how it is behaving. The groundstation will receive all raw IMU data as well as pitch, roll and yaw and will save this to the local database. We have created several alerts that feed on this data to advise us of particular states. e.g. excessive rotation,  acceleration milestones, freefall detection.

We will also have a 3-D representation of the rocket, so we can quickly picture its orientation and motion. Below is a Youtube clip of us testing out an initial release of the code. It works, but there is much to be done.

 

 

The IMU is not mounted in the normal sense, with Z up, X and Y in the horizontal plane. We have it mounted with positive X axis up instead. We expect the rocket to be predominantly in X axis. So we are low risk of Gimbal Lock. As it goes up we expect certain amount of swaying from this position. As it is accelerated, (for that few seconds), the acceleration will far exceed the gravitational acceleration, so the routines for measuring orientation will not be of much use. While the rocket is coasting, the IMU will detect ‘freefall’ state. We won’t be able to sense its orientation too well at this point. Once the drogue parachute is deployed we should get some good data on orientation…because the rocket/parachute will more or less be falling at a constant velocity.

Preparing for Trial Launch of Model Rocket

We wish to test out the RLS systems and what better way than to do a real rocket launch. We hope to do a rocket launch next weekend of the Calliso Rocket and of another smaller rocket.

A lot of preparation has gone into this so far. We have done the following:-

  • Created a Checklist of things to bring
  • Done up a list of procedures/tasks
  • Charged batteries
  • Packed most of the ‘Launch Boxes’
  • Tested assembly of Rocket Launch pad
  • Trial pack into the car.
  • Reading up on documentation of fuel load for engine

 

Upright and ready
Upright and ready
Can you see the destination?
Can you see the destination?

 

 

RLS Relay PCB

I’ve sent off the “Relay PCB” design to pcbcart.com so that they can manufacture some Prototype PCB’s. A picture of Relay PCB is shown below.

Relay PCB
Relay PCB

 

A lot of work into this board. Special attention was made to the width of tracks because some parts of this system need to be able to cope with currents up to ~4amps. [Despite best efforts, I had a track blow-out on the ‘Test’ board; so this really pushed this point home].

We also wanted this board to be complete, in that we don’t need to have any auxiliary boards for connecting/joining wires. We also wanted to connect the RFD900 modem directly and do away wit the clumsy cables. Note, there is not enough room to lay the modem flat on the PCB. We will have external plastic structure which will have additional level to screw the modem to.

One of the concerns with this board is vertical height and the direction in which connectors ‘connect’. We want to keep height to a minimum to ensure it can fit in a 60mm diameter rocket tube. We also don’t want cables coming in from the side as this will result in un-due strain on wires and all other assets (cameras, antennas, batteries).

 

Measuring voltages on the GroundStation

I’ve decided to share how we solved the problem with measuring the voltage of the groundstation battery. First question: Why would we want to know what the voltage is? It is absolutely critical that we know the health of our ground station during any launch. This includes the battery health. Lithium Ion batteries have a tenancy to suddenly stop working… for the voltage to suddenly dive south.

We choose to use a Rasberry-Pi Model 2 as the Groundstation computer; because it is extremely fast. The problem with the Rasberry Pi is that it does not have any ADC inputs. Not sure why these were not included on the Rasberry-Pi. Not to worry, what we did was get a very small Arduino (a Mini Pro Arduino 3.3 volt version) board and connected it up to the i2c on the Rasberry Pi. Then we created a program on the Arduino that configures it as a i2c Slave. Its sole purpose was to get the ADC reading on A0 input and provide that to the master i2c process on request.

We then created a C program on the Ardunio that connects to this Arduino device and requests the A0 value. We then adopted the PERL script to call this executable to get the A0 value. Within the PERL script we do the necessary conversions to convert the ADC value to the voltage.

The great thing is that if I need any more serial ports or Analogue portsow PWM outputs, then I can very easily just wire up another one and modify the programs to allow access to them!

Brilliant!

On the topic of ‘flight management’, I made created a new Alert based on the Groundstation voltage. If the voltage of the Groundstation falls below a certain level, we alerted of this fact. So there is no need to continually monitor voltage.

The Launch Systems

Good progress has been made on the Launch System Electronics. We have managed to perform a test ignition of a model rocket igniter. This itself is no great feat, but integrating all the technology together is certainly no easy task.

A video demonstrating the Launch System is shown below. Since this video was created, changes have been made to make the app to significantly reduce the delays when going through the launch sequence. The display is almost in sync with the relays as they do their work!

 

 

Our hope is to perform a real model rocket launch in the next few weeks.