Posts

How to make a happy birthday song tune using Tinkercad || Arduino projects using Tinkercad || DP (CODE)

Image
                                                                                                                              CIRCUIT                                   CODE                                      int speakerPin = 10; int length = 28; // the number of notes char notes[] = "GGAGcB GGAGdc GGxecBA yyecdc"; int beats[] = { 2, 2, 8, 8, 8, 16, 1, 2, 2, 8, 8,8, 16, 1, 2,2,8,8,8,8,16, 1,2,2,8,8,8,16 }; int tempo = 150; void playTone(int tone, int duration) { for (long i = 0; i < dura...

How To Make Smoke Alarm In Tinkercad || How To Use Gas Sensor Using Tinkercad || Doodads Projects (CODE)

Image
  CIRCUIT  CODE int const PINO_SGAS = A1; int LED_VERDE = 7; int LED_AMARELO = 6; int LED_VERMELHO1 = 5; int LED_VERMELHO2 = 4; void setup(){   pinMode(LED_VERDE, OUTPUT);     pinMode(LED_AMARELO, OUTPUT);     pinMode(LED_VERMELHO1, OUTPUT);     pinMode(LED_VERMELHO2, OUTPUT);     Serial.begin(9600); } void loop(){     int valor = analogRead(PINO_SGAS);     valor = map(valor, 300, 750, 0, 100);     digitalWrite(LED_VERDE, HIGH);   digitalWrite(LED_AMARELO, valor >= 30 ? HIGH : LOW);     digitalWrite(LED_VERMELHO1, valor >= 50 ? HIGH : LOW);     digitalWrite(LED_VERMELHO2, valor >= 80 ? HIGH : LOW);      delay(250); } Making of this video is available on our YouTube channel.... watch that to understand easily... Channel link :  https://youtube.com/channel/UCj2DwYVQo7ZQgSbQ8AbG3Dw Video link :  https://youtu.be/MAApxveXs5U E-Mai...

How to make LDR Based street light controller using Tinkercad || Part-1 (CODE)

  How to make LDR Based street light controller using Tinkercad || Part-1 (CODE) int ldr=A5; int ldr_value; int light=3; void setup() { pinMode(light, OUTPUT); pinMode(ldr, INPUT); } void loop() { ldr_value=analogRead(ldr); if (ldr_value>512) digitalWrite(light, LOW); else digitalWrite(light, HIGH); }  Making of this video is available on our YouTube channel.... watch that to understand easily... Channel link :  https://youtube.com/channel/UCj2DwYVQo7ZQgSbQ8AbG3Dw Video link :  https://youtu.be/B_s4zgT0-Vo E-Mail :  vikaashkumar313@gmail.com                                             LIKE||SHARE||SUBCRIBE                                               
unsigned const int A = 13; unsigned const int B = 12; unsigned const int C = 11; unsigned const int D = 10; unsigned const int E = 9; unsigned const int F = 8; unsigned const int G = 7; unsigned const int H = 6; void setup(void) {   pinMode(A, OUTPUT);   pinMode(B, OUTPUT);   pinMode(C, OUTPUT);   pinMode(D, OUTPUT);   pinMode(E, OUTPUT);   pinMode(F, OUTPUT);   pinMode(G, OUTPUT);   pinMode(H, OUTPUT); } //My Functions void zero(void) {   digitalWrite(A, LOW);   digitalWrite(B, HIGH);   digitalWrite(C, HIGH);   digitalWrite(D, HIGH);   digitalWrite(E, HIGH);   digitalWrite(F, HIGH);   digitalWrite(G, HIGH);   digitalWrite(H, LOW); } void one(void) {   digitalWrite(A, LOW);   digitalWrite(B, LOW);   digitalWrite(C, LOW);   digitalWrite(D, HIGH);   digitalWrite(E, LOW);   digitalWrite(F, LOW);   digitalWrite(G, HIGH);   digitalWrite(H, LOW); } void two(void) {   di...