In the final week of building our model we fitted the arduino board onto the base. Above the board we fitted the motors and fixed the pulleys onto them (see below).
The range sensor was fitted to the lid, then the Plexiglas stem was added so we could loop the nylon cords into the mechanism. We tensioned the cords and glued on the petals and the rose head. We used a turned over vase for the cover and a veneer to seal the base. Below is the completed model.
We also produced a flowchart of our code, setting up the stepper motors and range sensor, then activating the motors whenever the sensor detects an object within 10cm.
In term of future plans for this project, we would like to have a speaker play a tune of some sort when the motors were activated (image below show parts we would use for this – a module with an SD card reader, in which the SD card would contain the music). We would also have added more motors to increase the number of falling petals, and refined the pulley system to make them fall more seamlessly.
Despite these potential improvements we are very pleased with the outcome of our project. The code works as intended and the quality of the model is very good, giving the user experience that we hoped to achieve.
Below is the final code and Fritzing diagram of the project.
The other tab contains the default stepper motor library, powering the magnets which allow the motors to rotate.