Week 12 : Machine Design
Since we both plan on having moving components utilizing motors in our final projects, we wanted our machine design for this week to have some overlapping features. After deliberating, we decided to make an automaton.
Below is our one minute video showing a brief overview of the entire process.Reference/Research
We both did some research and looked to Stoccafisso; a well known automata maker; for reference and inspiration. While his work tends to be more hand carved and highlights the simplicity in the mechanics of his design, we wanted to get a little more technical with the design and function of the mechanics.
As far as subject matter, after rolling around a couple of ideas we landed on creating a dragon that would flap its wings when triggered by a motion sensor. We both are into fantasy, the arts, and films and both of our fab labs host camps/classes for kids. This could be a great project to teach kids about animation, film making, and animatronics.-To get our bearings and figure out how to actually construct our machine, we looked for a template on instructables to print a test sample. Together, we found a sample that had flapping wings and immediately went to print this file.

Instructables LINK
- After sending the sample file to print, we constructed it together and started to get a better understanding of the mechanical components and construction.
Redesign
With our sample automata assembled and functional, we jumped to designing our take of a dragon automaton.
- While we already knew we would be using a 360 motor for our machine, it was nice practice to get a feel of the motion and speed with a hand crank. We created a basic plan on how to change the gears and components to become fully automated and more fitting for our end goal.Electrical Components
Coding
-We chose to use an RP2040 to control a stepper motor with a motion sensor. One of our instructors, Peter, saved us lots of future hassle by informing us, we would need a motor driver to help control the stepper motor we chose to use.
- Thankfully we had assistance from ChatGPT and Peter to get our connections and code formulated and up and running.





-With this new knowledge, we wanted to continue learning together how it works and test coding using breadboards. Augusto got to soldering the Motor Driver while Vicky soldered the RP2040. Once the soldering was done the driver and microcontroller were put in place and connected using the information we had gathered from our ChatGPT log.



- With everything put together, Peter helped us develop a quick set of code to test the PIR sensor and see if it was functioning properly and to hopefully get a better idea of its sensitivity range. To do so, we added in a serial monitor to have a read out creepily inform us when the sensor could “see us” or “see nothing”. The Motion sensor works! A bit finicky and sensitive but working.
- Seeing how this code worked with our setup we went back to ChatGPT and asked it to write code using the motion sensor as an input and output into the stepper motor. We soon tested this code and found that it worked perfectly. The stepper motor would rotate every time the sensor picked up on movement. ChatGPT log and code located below. With our inputs and outputs functional and code working, we felt more comfortable with our project development and began to divide and conquer.
PCB Board Design and Process
-Already having gone over the connections with Vicky, Augusto got to work designing the PCB board on KiCad. The first step to complete was locating a footprint for the motor driver online. Thankfully SnapEDA had both the symbol and footprint on their website.
-Unfortunately for Augusto, the symbol for the schematic portion of the design needed editing because 3 of the pins were overlapping each other.Augusto was able to move those three pins away from each other so that they could be read and connected to other parts of the board.
- The schematic portion was finalized using a heavy amount of tags to signify what was connected to what otherwise it would have been too much visual clutter.
- Augusto proceeded to lay out the footprints/components in a linear fashion that made sense for the soon-to-be redesigned model. One end would connect to the PIR sensor with the microcontroller being closest to it , the other end connected to the stepper motor which lead directly to the motor driver as suggested by the earlier mentioned ChatGPT log. To save on time, Augusto tried FreeRouter for the first time and was able to generate a perfect set of paths for the board after generating a few different designs/seeds.
- Once Augusto finished the PCB board design, he sent the files over to Vicky who proceeded to mill the board. Once milled, Vicky started to solder the pin headers to the board to make it easier to test and switch out microcontrollers, inputs and outputs if needed. Augusto finished soldering the connections for the additional power, inputs and outputs.
2D and 3D Design
- Vicky worked on the design of the dragon to incorporate laser cut components and redesign the 3D form, while Augusto worked on designing the base enclosure and redesign mechanisms.-To start drawing out the wings, Vicky first took pictures of each 3D printed section to make sure when sketching the new design, she kept in mind the shapes and proportions needed for connecting one another in a functional manner.
-She drew out the designs in Photoshop using a tablet and then moved them into Illustrator to turn the drawings into vector files and clean up any linework. This was followed by separating raster and vector cutting layers.



- Before cutting the wings out of wood, Vicky ran a test outline cut out of paper. Even though it seemed pretty close, there were a few areas with slight misalignments that could cause problems when in motion. She should have known better than to use a photo of a part to draw components with accuracy.

-To fix the minor inconsistencies and get more accurate measurements. She used the 3D files and converted them into 2D files, making sure each piece was converted in the same scale, to then match up the drawings accordingly.



-With the first run of the wings in wood, they looked pretty good, aligned properly when still. There was a slight tolerance issue when in motion though, that prevented the wings from moving their full range.
- A few trims and a couple file tweaks later, the wings were good to go.

- The body of the dragon was created in the same fashion as the wings but with less constraints to worry about since it was going to be one solid non-motion piece. The body took some time design wise to make sure it actually looked like a dragon and not some derpy snake lizard.
- To attach the laser cut pieces to the model, Vicky designed clips as an additional design element that would hold the wings in place. These made it easy to remove if the model needed to be worked on and reapplied or to change out the designs to something different all together, like many stop motion companies do with their character structures in various manners.
- To redesign the base and mechanism of the automata, Augusto decided to import the most relevant aspects of the model into Rhino3D. With the relevant pieces on display it became easier to see how Augusto could alter the model. To redesign the mechanism we essentially had to flip it so that the smallest gear responsible for moving the rest was underneath the base but still in contact with the other gears. To ensure this gear would always have the same function, the entire base was copied and flipped on its head using the holes holding all the big gears in line as a central rotating axis. That way the smallest gear would have the same distance it has on top as it would then have on the bottom.

-This circled piece is the affected, edited, and mirrored bit of the model.

-The rod here displays using that portion of the model where the gears were formerly at as the central rotating axis.

-The base is being reduced to accommodate the smaller gear that will now be located at the bottom.

- This is the end result for the flipped piece.

-This altered version of the base is nearly complete.

-The stepper motor chosen was measured using a pair of calipers.
- With its dimensions established a digital copy was made to easily visualize its place in the model.
- We altered the original handle and modified it so that it could be press-fit onto the stepper motor. The handle’s screw was sliced off, hollowed out using an internal extrusion and then slid onto our motor. Playing with the tolerances was a must given that our first few prints did not fit onto the motor but at least it worked in some sense.
- With the mechanism modified, I quickly put together an easy first draft or prototype of the base to test the modified mechanism with the stepper motor. With our connections and electronics already having worked it was no surprise seeing it work perfect with the modified base/mechanism. From that point forward it was easy to create the rest of the model