Yesterday we went on an incredible tour of the Hospital de Sant Pau after La Sagrada Familia! We learned from a very passionate tour guide about the intricacies of the establishment and of its significance as one of the first modern hospitals which utilized hygienics. It was designed by Gaudi鈥檚 teacher in 1902 and has recently been restored to mint condition.聽
The servo motor is rly fun!!!!!!1!!!!!2!1!! I think that this is the most fun project I have done because it moves and you can wrestle other servo motors with it! will update soon lol bye
This pressure sensor keyboard with an arduino made different special-effect type noises depending on whether a light or heavy force was applied to a specific sensor.
#include <Servo.h>; // include the servo library Servo servoMotor; // creates an instance of the servo object to control a servo int servoPin = 3; // Control pin for servo motor void setup() { Serial.begin(9600); // initialize serial communications servoMotor.attach(servoPin); // attaches the servo on pin 2 to the servo object } void loop() { int analogValue = analogRead(A0); // read the analog input Serial.println(analogValue); // print it // if your sensor's range is less than 0 to 1023, you'll need to // modify the map() function to use the values you discovered: int servoAngle = map(analogValue, 70, 700, 0, 179); // move the servo using the angle from the sensor: servoMotor.write(servoAngle); }