Posts

Showing posts from November, 2020

arduino with ultrasonic sensor

Image
 Arduino with ultrasonic sensor circuit diagram            CODE    const int pingPin = 7; // Trigger Pin of Ultrasonic Sensor const int echoPin = 6; // Echo Pin of Ultrasonic Sensor void setup() {    Serial.begin(9600); // Starting Serial Terminal } void loop() {    long duration, inches, cm;    pinMode(pingPin, OUTPUT);    digitalWrite(pingPin, LOW);    delayMicroseconds(2);    digitalWrite(pingPin, HIGH);    delayMicroseconds(10);    digitalWrite(pingPin, LOW);    pinMode(echoPin, INPUT);    duration = pulseIn(echoPin, HIGH);    inches = microsecondsToInches(duration);    cm = microsecondsToCentimeters(duration);    Serial.print(inches);    Serial.print("in, ");    Serial.print(cm);    Serial.print("cm");    Serial.println();    delay(100); } long microsecondsToInches(long microseconds) {    return microseconds / 74 / 2; } long microsecondsToCentimeters(long microseconds) {    return microseconds / 29 / 2; } Searches related to arduino ultrasonic sensor arduino ul

About Us

About Us This website contains information relates to arduino . EXAMPLE = Arduino programming ( code ) , arduino circuit diagram and more If you have any query regrading Site, Advertisement and any other issue, please feel free to contact at ashikmavungal@gmail.com

Privacy Policy

Privacy Policy for Arduino Programmer At Arduino Programmer , accessible from https://arduinoprogrammer333.blogspot.com, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by Arduino Programmer and how we use it. If you have additional questions or require more information about our Privacy Policy, do not hesitate to Contact through email at ashikmavungal@gmail.com Log Files Arduino Programmer follows a standard procedure of using log files. These files log visitors when they visit websites. All hosting companies do this and a part of hosting services' analytics. The information collected by log files include internet protocol (IP) addresses, browser type, Internet Service Provider (ISP), date and time stamp, referring/exit pages, and possibly the number of clicks. These are not linked to any information that is personally identifiable. The purpose of the information is for analy

Contact US

Loading…