Spin Stabilized Camera
A technical guide on camera stabilization methods for CanSat satellites, exploring both software and hardware approaches to counteract spinning during descent.
The Problem
If you want to use a camera in your CanSat, you better be prepared for spinning video. Your CanSat will be spinning due to parachute and wind. There is nothing to stop it from spinning.
Spinning video without stabilization
So, what if you want to make it stabilized? There are two main approaches: Software Stabilization and Hardware Stabilization.
Software Stabilization
Understanding Video
Videos are fast-played images. You basically show 30 photos in 1 second. In every frame you change the image little bit. It's super fast so a human eye can't see the interrupts. It looks like moving.
16 x 16 pixels illustration
By Selecting a Point from Image
You can select something from the image. For example, you choose eye of the Mario and then you track its position. Then you can position the other pixels.
Drawback: This method means lots of effort for small processor, you need some serious memory and processor.
By Getting Yaw Value from Sensors
If you put gyro sensor to your spinning system then get the yaw value, you can know how much you need to tilt your image (or 2D array). But you still have a lot of work.
Let's calculate the effort needed:
- Resolution: 640 x 480 = 307,200 pixels
- Per frame: 307,200 ร 24 bits รท 8 = 921,600 bytes
- At 24 FPS: 921,600 ร 24 = 22,118,400 bytes/second
This is for uncompressed video. Even with compression, it's too much data for small processors.
Hardware Stabilization
You can turn the camera physically. If your CanSat spins in Clockwise direction, you can turn the camera to Counterclockwise direction so image doesn't move.
Aircraft rotation axes
CanSat with counter-rotating camera
"My awesome paint drawing" - Original caption from 2020
Requirements:
- Gyro sensor - to read yaw values
- Electric motor - to spin camera in opposite direction
- Separate battery - camera must be unattached with wires (they would tangle or break)
- Motor encoder/decoder - to turn motor exactly the same degree that CanSat has spun
Method Comparison
Software
- โ No additional hardware
- โ Can be done post-processing
- โ High computational load
- โ Requires powerful processor
- โ Large memory requirement
Hardware
- โ Real-time stabilization
- โ No processing overhead
- โ Additional weight
- โ More complex design
- โ Separate power needed
Want the Full Document?
Download the original PDF with detailed diagrams and calculations.
Download PDF