# Benjamin's Piston Family Project ## Piston Parts ![](img/Picture2.png) ![](img/Picture3.png) “Crank Mechanical System” by Kazemoto [https://www.thingiverse.com/thing:4642032](https://www.thingiverse.com/thing:4642032) ## Electronics Wiring by Adam Outler ![](img/Picture4.png) ## Source Code 90% of source code was generated by ChatGPT, with the initial prompt of _Benjamin is in 5th grade. He has a class project to create a piston. We want to use python to create a piston demonstration. It would be best to start with tkinter, Eventually we went to use an raspberry pi or something to demonstrate the piston. What do you think?_, followed by _Please provide some source code which visually represents a piston performing a 4-stoke operation_. Source code was generated iteratively via trial & error process with input from Benjamin Outler assisted by family. Stepper motor Python code Adapted by Adam Outler from [https://ben.akrin.com/driving-a-28byj-48-stepper-motor-uln2003-driver-with-a-raspberry-pi/](https://ben.akrin.com/driving-a-28byj-48-stepper-motor-uln2003-driver-with-a-raspberry-pi/)