About ten years ago, the extraordinarily talented artist Steven Ives created a space suit costume out of shell shaped children’s sandpit, and a whole bunch of…well….very intriguing….bits and bobs.
Getting to work with such an exceptional artist was quite breathtaking.
I installed a number of fun things on board:
- Programmable LEDs, highlighting the features and nooks and cranny’s, and to cast light on the suit so it looked nice at night.
- An orange rotating warning light, like what you see on machinery when in operation.
- A stepper motor to open and close the helmet.
- Fans on the front breastplate, and rear of the helmet, for added cooling in summer.
- Programmable fiber optic to highlight the perimeter of the helmet.
The big orange light on the left in this image was repaired, and wired into a relay. It started life as a battery operated light for kids, though with some voltage tweaking it operates stable.
To make it stand out the lighting system will dim when it is turned on.
I noticed there was an old Nintendo controller on the arm. I took it apart and found it was very easy to attach it to the analogue ports of the Arduino controller I was going to use to run the lights. Each button is very easy to detect.
I decided to farm out the Lighting controller to a separate Arduino to the stepper motor controller, as both units are time sensitive.
The stepper controlling Arduino serves as the master controller, as while it is time sensitive, the lights are more time sensitive.
So we have a SYSTEM controller and a LIGHTING controller.
Below we see an early prototyping of the system. The final version is much neater with wires tucked securely away, and covered with a panel.
The system controller makes the decisions of what to do, and the lighting controller simply accepts serial numbers that tell it what program to run next.
You can also set the current via a pot, and also set the stepping division for micro stepping a bipolar stepper motor.
I attempted to do so in code, by adjusting the wait time between steps….but it was very jerky.
I found this great article by Texas Instruments, that is easy to follow, and explains they idea of setting TWO timers to do the job of ramping up and down.
One timer flips a pin on and off, which makes the motor perform ONE step. The other timer periodically changes the wait time between those individual steps, making it shorter or longer depending on weather we wish to ramp UP or DOWN.
The timing calculations should be done first, then turn on the timers. With the addition of some code to manage the length of time, or steps, it will autonomously ramp up, coast, and ramp down.
I found there was about 15mm of travel after the micro switches were triggered, so I simply used them to indicate when it is time to ramp down!
Here is a video of Steph cycling through some of the programs, turning the rotatory light on and off, and operating the visor: