- Sewing Machine:- https://amzn.to/4430DgA
- Socks: -https://amzn.to/448q14N
- Coffee: -https://amzn.to/3CwaRdK
- Smart Watch: -https://amzn.to/441PRHT
- Phone:-https://amzn.to/3rtFQ8c
- Bag:- https://amzn.to/3XPR02Z
- M14 5G:- https://amzn.to/3NVWO6C
- cover:-https://amzn.to/3O07L7i
- https://amzn.to/3O32LyA
- https://amzn.to/3Y6GpRC
- https://amzn.to/3OHWI4a
- https://amzn.to/3Kt8D3i
- https://amzn.to/3DZwe87
- https://amzn.to/3spOk0h
- https://amzn.to/45D81Ae
- https://amzn.to/45pcqWV
- https://amzn.to/48MGuP2
- https://amzn.to/48HxomL
- https://amzn.to/3rDgDIS
- https://amzn.to/48T1rI6
- https://amzn.to/3QipW9t
- https://amzn.to/46TQFA2
- https://amzn.to/3tx6wGk
- https://amzn.to/499Vt5a
- https://amzn.to/4bfoQF8
- https://amzn.to/3P0gxmT
- https://amzn.to/430qqXu
- https://amzn.to/48U0Pkf
- https://amzn.to/3TpPeUo
- https://amzn.to/3THpSmq
- https://amzn.to/49cEDCd
- https://amzn.to/4awhXxX
- https://amzn.to/43AFE62
- https://amzn.to/3IPs3hB
- https://amzn.to/4a9V4jY
// Created by Simple Circuits #include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27,16,2); #include <Servo.h> Servo myservo; int IR1 = 2; int IR2 = 3; int Slot = 4; //Total number of parking Slots int flag1 = 0; int flag2 = 0; void setup() { Serial.begin(9600); lcd.init(); //initialize the lcd lcd.backlight(); //open the backlight pinMode(IR1, INPUT); pinMode(IR2, INPUT); myservo.attach(4); myservo.write(100); lcd.setCursor (0,0); lcd.print(" ARDUINO "); lcd.setCursor (0,1); lcd.print(" PARKING SYSTEM "); delay (2000); lcd.clear(); } void loop(){ if(digitalRead (IR1) == LOW && flag1==0){ if(Slot>0){flag1=1; if(flag2==0){myservo.write(0); Slot = Slot-1;} }else{ lcd.setCursor (0,0); lcd.print(" SORRY :( "); lc...
Comments
Post a Comment