In this project, Elaine and I collaborated to complete several inflatable bags, and I was responsible for the following three.
Firstly, I created an inflatable bag that resembled a living stone flower. The process of inflating the bag simulated the gradual growth of the living stone flower. However, I noticed that the adhesive curves inside the bag caused it to wrinkle during inflation. I believe that replacing the curves with straight lines would be a better approach.
Next, I made a sit-up figurine. To simulate a real sit-up, I hollowed out the knee part of the figurine, as I hoped that inflating it would allow the knees to bend. However, I found that the volume of air filled in the thin legs was not enough to support the entire leg, and the attempt failed. Nevertheless, the hollowed-out abdomen allowed the figurine to "sit up.”
The third one I made was a collapsible cube, which I found as an example in the reading material. However, the top of my cube could not fold inward properly, and I believe it is due to an angle issue. Unfortunately, I have not yet found a way to fix it.
Code:
int motorPump = 9;
int valve = 10;
int motorSuck = 11;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(motorPump, OUTPUT);
pinMode(valve, OUTPUT);
pinMode(motorSuck, OUTPUT);
}
void loop() {
// inflate
digitalWrite(motorPump,HIGH);
digitalWrite(valve, HIGH);
digitalWrite(motorSuck, LOW);
delay(1000);
// deflate
digitalWrite(motorPump, LOW);
digitalWrite(valve, LOW);
digitalWrite(motorSuck, HIGH);
delay(1000);
}