Animatronic Monarch

Sine Waves and Phase Shift for Servo Movement

analog computer euler spiral display on analog oscilloscope

One of the starting examples for The Analog Thing is calculating a Euler Spiral seen here on a vintage Tektronix oscilloscope.

I recently purchased an analog computer from Analog Paradigm called The Analog Thing. This computer was manufactured in 2022 in Germany with great care but a lot of frustration due to hardware supply issues. It took months to arrive, which gave me time to read and learn more about differential equations. Opamps can be used as integrators and adders, two important functions for doing these equations, and they do them effortlessly. This is the fundamental reason why Analog Paradigm is trying to develop user friendly analog computers to make computation very fast and energy efficient. Instead of running an algorithm on a digital computer which takes many watts of power, they can be run on an analog computer taking less than a watt.

This research did help me design a very slow sine wave circuit using only three op amps. Instead of trying to use the obsolete ICL8038 chip like I did in my previous project, I can use a single quad opamp chip like the MCP6004. The frequency is not voltage controlled though, so this will be useful in applications where the frequency stays constant, not for modular synthesizers.

I also developed a circuit to shift the phase of the input sine wave and I found another circuit online to create a servo PWM from a 0-5V signal. So by combining all of these together, I can create a sine wave, phase shift it, and convert them both to servo PWM. This is the beginning of a metachronal wave for insectoid robots. I found the opamp servo pulse circuit from the very knowledgeable W2AEW on YouTube. Check out his videos, they are amazing ways to learn more analog circuitry.

circuit design for sine wave, phase shift, and servo output

Schematic of a ~2Hz sine wave 0-5V with phase shift and converted to servo PWM.

I decided to prototype a circuit which would create four servo signals. Two mirrored pairs with slight phase shift. I think this would look beautiful as an update to my butterfly wing flapping mechanism. I surprised myself when the prototype came together pretty easily. Maybe I am actually getting a hang of this analog circuitry design! I created a schematic in KiCad too so I could explore circuit board design and maybe even SMD parts some day!

This circuit works for constant movement but is not easily controlled. The frequency is altered by using different capacitors. Larger capacitors lower the frequency. I could probably add a stage to attenuate and adjust the gain manually with a potentiometer.

What I would really like to accomplish is a way to control the servos on the left and right of the robot independently. I’d like to change the center point of the sine wave as well as the gain using voltage levels. This would require using an analog multiplier. Unfortunately, this is a difficult component to build and source. Analog multiplier chips are expensive. So I am turning back to The Analog Thing computer to see if I can develop a circuit which will give me the control I am looking for.

I am just beginning this new exploration, but I think I could have luck tweaking the classic mass, spring, and damping circuit. With extremely low damping and a loose spring, the wave form is a low frequency sine wave that slowly dies out. Perhaps I can occasionally re-trigger this circuit, like pushing someone on a swing. This would increase the gain suddenly, like a burst of energy in wing flapping. If thrust is not required, the oscillation is allowed to slowly die.

I’ll need to probe the different variables of this equation on the scope and see if there is a way to tap in and control them. Perhaps I can use some kind of sensor or manual control to alter the circuit behavior on the fly (pun intended). This circuit is like a ringing/bell filter or voltage controlled decay of a VCA at only one frequency, without using a multiplier. I’ll post my progress over time!

Installing the Final Piece

Close up of the face of the animatronic monarch butterfly by John Espey

Close up of the face of the animatronic monarch butterfly by John Espey

On April 11th, 2019 I visited the Kidzeum in Springfield Illinois to install the completed animatronic monarch butterfly. Thanks to the amazing support and generosity of the staff at the Kidzeum, the installation went very smooth and the final piece looks fantastic. The exhibit is scheduled to open April 27, 2019 and you can see more about it through their website, https://kidzeum.org/.

This entire process has been a dream come true. I have always wanted to find a professional avenue for my passion in creating insectoid robots. Museum displays and exhibits is a fantastic way to do that. It allows me to dedicate myself to the entomology, while being artistic with diverse materials, and encouraging education.

Part of this piece is a video describing how I built it. You can find that video on YouTube at https://youtu.be/JQik38u14HI. As you can see from my previous blog articles, I used 3D modeling and printing, decorative textiles, painting, and robotic electronics.

Completed animatronic monarch inside its custom pedestal ready to be placed in the Bees, Butterflies, and Blooms exhibit at the Kidzeum.

Completed animatronic monarch inside its custom pedestal ready to be placed in the Bees, Butterflies, and Blooms exhibit at the Kidzeum.

The main goal is to get kids aware and excited about pollinators, insects, STEAM education, and feel empowered to create and support nature. When I was a kid, I loved science museums that had interactive animatronics on display, and now I get to build them.

I hope there are many more animatronic bugs in my future.

Attention to Monarch Butterflies

In 2018 monarch butterfly populations in California reached a super low number. This is after years of steady decline. For environmental awareness and a call to action, I want to attract attention to monarch butterflies.

I am building an larger than life animatronic monarch butterfly. I am looking for support in displaying my 2015 piece and assistance in the construction and displaying of a new and larger piece currently in development.

Animatronic Monarch Butterfly created by John Espey in 2015. Embedded servo motors, textiles, and mixed media.

Animatronic Monarch Butterfly created by John Espey in 2015. Embedded servo motors, textiles, and mixed media.

In 2015, I constructed a monarch butterfly with embedded servo motors to flap its wings (image attached).  As an artist, my intention is to explore insect physiology and behavior using larger than life scale models with integrated electronics.  I hope these insectoid robots encourage viewers to think differently about their relationship to insects, as well as the incredible biomechanics they employ to survive.  I majored in Biology and have used my background in science to inspire my work. The relationship humanity has with its environment is reaching a new level of complexity and global awareness. We are discovering the critical importance pollinators, like monarchs, have on our food supply, climate, and biodiversity.

I propose to construct a new and purpose built animatronic monarch butterfly based on my previous piece with mechanical and aesthetic improvements.  The piece I built several years ago functions well as a static sculpture now. I want to build a new one with improved accuracy and strength. The new mechanics will help the piece last extended exhibition time, and refine accuracy to the monarch butterfly physiology.

Please reach out to me through my contact if you can envision a home for these pieces.