要确认的:
一开始都是随着呼吸频率,收到威胁后become tough
Bio — Anouk Wipprecht FashionTech
maybe the air pumper can be stick at the jaw / hand(像那个青蛙的脚蹼)
Actuator:会张开的喉扇··········
还可以做一个在胳膊下面 抬手会张开的翅膀那种的 颜色和喉扇可以呼应一下 像那个纸折扇子的做法
inflation: 小片的半圆-仿照食人花的花瓣,充气→聚拢
很多个汇成一片
// motor
int motorPump = 9;
int valve = 10;
int motorSuck = 11;
/*
Ultrasonic Sensor HC-SR04 and Arduino Tutorial
by Dejan Nedelkovski,
www.HowToMechatronics.com
*/
//defines pins numbers
const int trigPin = 5;
const int echoPin = 6;
// defines variables
long duration;
int distance;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(motorPump, OUTPUT);
pinMode(valve, OUTPUT);
pinMode(motorSuck, OUTPUT);
pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output
pinMode(echoPin, INPUT); // Sets the echoPin as an Input
}
void loop() {
// Clears the trigPin
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
// Sets the trigPin on HIGH state for 10 micro seconds
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// Reads the echoPin, returns the sound wave travel time in microseconds
duration = pulseIn(echoPin, HIGH);
// Calculating the distance
distance = duration * 0.034 / 2;
// Prints the distance on the Serial Monitor
Serial.print("Distance: ");
Serial.println(distance);
if(distance <= 10) {
// inflate
digitalWrite(motorPump, HIGH);
digitalWrite(valve, HIGH);
digitalWrite(motorSuck, LOW);
// delay(1000);
} else {
// deflate
digitalWrite(motorPump, LOW);
digitalWrite(valve, LOW);
digitalWrite(motorSuck, HIGH);
// delay(1000);
}
}