Posts

Showing posts from January, 2022

HOW TO DO WI-FI CAR WITH NODE MCU

Image
Diagram  Code /arduino-projects/ Additional Board Manager URL: http://arduino.esp8266.com/stable/package_esp8266com_index.json  #define ENA   14          // Enable/speed motors Right        GPIO14(D5) #define ENB   12          // Enable/speed motors Left         GPIO12(D6) #define IN_1  15          // L298N in1 motors Rightx          GPIO15(D8) #define IN_2  13          // L298N in2 motors Right           GPIO13(D7) #define IN_3  2           // L298N in3 motors Left            GPIO2(D4) #define IN_4  0           // L298N in4 motors Left            GPIO0(D3) #include <ESP8266WiFi.h> #include <WiFiClient.h>  ...

FOR THE BLIND PEOPLE HOW TO DOTHE CAR

Image
Diagram  Code void setup() { pinMode(12,OUTPUT);//Trigger pinMode(13,INPUT);//EchoA pinMode(6,OUTPUT);//Buzzer } void loop() { long duration, distance; digitalWrite(12,LOW); delayMicroseconds(2); digitalWrite(12,HIGH); delayMicroseconds(10); digitalWrite(12,LOW); duration=pulseIn(13,HIGH); distance=(duration/2)/29.1; if (distance < 70)     // This is where checking the distance you can change the value {  // When the the distance below 100cm digitalWrite(6,HIGH); } else { // when greater than 100cm digitalWrite(6,LOW); } delay(500); } HOW TO DO HC-05 BLUETOOTH CAR  HOW TO DO ULTRASONIC SENSOR CAR