Arduino menggunakan Servo, Sensor PIR dan LED

Note :
Arduino Uno
Sensor PIR
Resistor 220 Ω
LED
Servo
Kaki Anoda pada LED terhubung ke port D13 Arduino
Kaki Katoda pada LED terhubung pada resistor kemudian terhubung pada port Ground arduino
Garis berwarna merah adalah VCC
Garis berwarna hitam adalah Ground
Garis berwarna kuning merupakan kaki data servo yang terhubung pada port D3 arduino
Garis berwarna biru merupakan kaki data sensor pir (1) yang terhubung pada port D2 arduino
Garis berwarna biru merupakan kaki data sensor pir (2) yang terhubung pada port D4 arduino
Sketch Program :
#include <Servo.h> Servo servo; int servoPin = 3; int motionPin1 = 2; int motionPin2 = 4; byte gerak1 = LOW; byte gerak2 = HIGH; int servoAngle = 0; int ledPin = 13; int lampu = LOW; void setup()
{ servo.attach(servoPin); pinMode(ledPin, OUTPUT); pinMode(motionPin1, INPUT); pinMode(motionPin2, INPUT); servo.write(servoAngle); Serial.begin(9600); } void loop()
{ gerak1 = digitalRead(motionPin1); while(gerak1 == HIGH)
{ digitalWrite(ledPin, HIGH);
Serial.println("Gerakan Terdeteksi");
gerak2 = digitalRead(motionPin2);
if(gerak2 == HIGH)
{ servo.write(100); Serial.println("Servo Buka");
} else
{ Serial.println("Servo Tutup"); servo.write(0); break; } } if (gerak1 == LOW)
{ digitalWrite(ledPin, LOW); servo.write(0); Serial.println("Gak ada gerakan"); } }












The idea of exploring the stories behind craft drinks gives me a reason to slow down and consider the details. Describing a flavour in ordinary words can open a conversation without requiring specialist vocabulary. That thought gives me a starting point for exploring craft drink culture in connection with Brew On. A simple comparison would help me picture the differences without rushing towards a fixed answer. What would you notice first when comparing two different drinks?
What interests me about thinking about style through everyday choices is how a broad idea becomes part of an ordinary day. A useful outfit needs to work with the day someone is actually planning. The name Boutiko gives this theme a memorable reference point, while personal style ideas keeps the subject in focus. The smaller details are what I would want to return to, especially when an explanation feels too broad. How would you balance comfort, personal taste and the occasion when choosing what to wear?
Considering thinking about style through everyday choices, I would want to understand a few concrete details before deciding what matters most. A useful outfit needs to work with the day someone is actually planning. I would connect Bournston with personal style ideas through an ordinary example rather than a broad claim. I am still thinking through the practical side, because the context can change what seems useful. How would you balance comfort, personal taste and the occasion when choosing what to wear?
There is something appealing about enjoying the small details of cafe culture, especially when the focus stays on the details people might otherwise overlook. The pace and atmosphere of a place can matter as much as what is in the cup. That thought gives me a starting point for exploring cafe culture and coffee in connection with Bottleroom. That is the part I would keep thinking about after moving on to something else. Which small details make you want to sit for a little longer?
A discussion of finding the character of a local meeting place seems more useful when it connects an idea with something easy to picture. An ordinary conversation can become part of the reason people remember a place. With Bootinneskdale in mind, local pub culture feels like a topic worth exploring one question at a time. I would rather explore one useful example carefully than pretend that the whole subject is already clear. What makes a local meeting spot feel welcoming to a first-time visitor?