Posts

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…

Arduino Servo Code

Image
Arduino Servo Code        Hardware Required Arduino  Servo   Circuit STEP = 1       STEP = 2 STEP = 3 STEP = 4  STEP = 5 CODE STEP = 6   #include <Servo.h> Servo myservo;  // create servo object to control a servo // twelve servo objects can be created on most boards int pos = 0;    // variable to store the servo position void setup() {   myservo.attach(9);  // attaches the servo on pin 9 to the servo object } void loop() {   for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees     // in steps of 1 degree     myservo.write(pos);              // tell servo to go to position in variable 'pos'     delay(15);                       // waits 15ms for the servo to reach the position   }   for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees     myservo.write(pos);              // tell servo to go to position in variable 'pos'     delay(15);                       // waits 15ms for the servo to reach the position   }

Arduino blinking led code

Image
Arduino blink ing LED code   Arduino blinking LED code Arduino  Led220  ohm Resistor STEP = 1 STEP = 2 STEP = 3 STEP = 4 STEP = 5 CODE void setup() {   pinMode(13, OUTPUT); } void loop() {   digitalWrite(13, HIGH);   delay(1000); // Wait for 1000 millisecond(s)   digitalWrite(13, LOW);   delay(1000); // Wait for 1000 millisecond(s) }     Related to Arduino blinking led code   Multiple blinking led: arduino code Alternate led blinking arduino code Blinking led arduino circuit diagram Running led arduino code Arduino blink function Led arduino projects Led blinking program Arduino blink led 5 times circuit board arduino ide voltage regulator ftdi chip arduino project arduino uno r3 reset button icsp header output pin usb cable raspberry pi development board arduino is an open source uno board arduino software latest version interactive objects arduino development analog input power supply   arduino blinking led code without delay arduino led blink code download arduino led blink code a