Posts

Showing posts from March, 2023

Amazon Shopping

Image
https://amzn.to/47iap0w     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

Sequential LED Circuit Diagram

Image
  Materials Required:- 1.  Arduino UNO 2.  9V Battery 3.  220 Ohm Resistors 4.  Breadboard 5.  Male to Male Jumper Wires 6.  Red LED's

Arduino Code 1

Image
int LED1 = 2; int LED2 = 3; int LED3 = 4; int LED4 = 5; int LED5 = 6; int LED6 = 7; int LED7 = 8; int LED8 = 9; int LED9 = 10; int LED10 = 11; int LED11 = 12; int LED12 = 13; int t=30; void setup() {    pinMode(LED1, OUTPUT);    pinMode(LED2, OUTPUT);    pinMode(LED3, OUTPUT);    pinMode(LED4, OUTPUT);    pinMode(LED5, OUTPUT);    pinMode(LED6, OUTPUT);    pinMode(LED7, OUTPUT);    pinMode(LED8, OUTPUT);    pinMode(LED9, OUTPUT);    pinMode(LED10, OUTPUT);    pinMode(LED11, OUTPUT);    pinMode(LED12, OUTPUT);      } void loop(){ digitalWrite(LED12, HIGH);       delay(t);                    digitalWrite(LED11, HIGH);       delay(t);                     digitalWrite(LED10, HIGH);    delay(t);                    digitalWrite(LED9, HIGH);     delay(t);                     digitalWrite(LED8, HIGH);       delay(t);                    digitalWrite(LED7, HIGH);       delay(t);                    digitalWrite(LED6, HIGH);     delay(t);                  digitalWrite(LED5, HIGH);    delay(t);    

Arduino Code 2

Image
 int LED1 = 2; int LED2 = 3; int LED3 = 4; int LED4 = 5; int LED5 = 6; int LED6 = 7; int LED7 = 8; int LED8 = 9; int LED9 = 10; int LED10 = 11; int LED11 = 12; int LED12 = 13; int t=20; int y=100; void setup() {    pinMode(LED1, OUTPUT);    pinMode(LED2, OUTPUT);   pinMode(LED3, OUTPUT);     pinMode(LED4, OUTPUT);    pinMode(LED5, OUTPUT);    pinMode(LED6, OUTPUT);    pinMode(LED7, OUTPUT);    pinMode(LED8, OUTPUT);    pinMode(LED9, OUTPUT);    pinMode(LED10, OUTPUT);    pinMode(LED11, OUTPUT);    pinMode(LED12, OUTPUT);      } void loop() {                        digitalWrite(LED12, HIGH);       delay(t);                    digitalWrite(LED11, HIGH);       delay(t);                     digitalWrite(LED10, HIGH);    delay(t);                    digitalWrite(LED9, HIGH);     delay(t);                     digitalWrite(LED8, HIGH);       delay(t);                    digitalWrite(LED7, HIGH);       delay(t);                    digitalWrite(LED6, HIGH);     delay(t);                  digita

Arduino Code 3

Image
  #define t   30 #define t1  20 #define t2  100 #define t3  50 void setup() {   // set up pins 2 to 13 as outputscf   for (int i = 2; i <= 13; i++) {     pinMode(i, OUTPUT);   } } void loop(){ effect_1(); effect_1();  effect_2();  effect_2();  effect_3();  effect_3();  effect_4();  effect_4();  effect_5();  effect_5();  effect_6();  effect_6();  effect_7();  effect_7();   } //left to right and right to left void effect_1() { for(int i=2; i<14; i++){ digitalWrite(i, HIGH); delay(t1); digitalWrite(i+1, HIGH); delay(t1); digitalWrite(i+2, HIGH); delay(t1); digitalWrite(i, LOW); delay(t1); digitalWrite(i+1, LOW); delay(t1); } for(int i=13; i>1; i--){ digitalWrite(i, HIGH); delay(t1); digitalWrite(i-1, HIGH); delay(t1); digitalWrite(i-2, HIGH); delay(t1); digitalWrite(i, LOW); delay(t1); digitalWrite(i-1, LOW); delay(t1); } } void effect_2() { int count = 13; // keeps track of second LED movement   // move first LED from left to right and second from right to left   for (int i = 2;