ULTRASONIC MAXIMUM RADAR PROJECT FOR VISUALLY IMPAIRED WITH ARDUiNO by AVCU Elif

ULTRASONIC MAXIMUM RADAR PROJECT FOR VISUALLY IMPAIRED WITH ARDUiNO by AVCU Elif

Author:AVCU, Elif [AVCU, Elif]
Language: eng
Format: azw3
Published: 2018-12-10T16:00:00+00:00


void pulse()

{

analogWrite(mGround, 0);

analogWrite(m1, offset + motorScale - inches * 1.0 * motorScale / maxDist);

}

void pulseOff()

{

analogWrite(mGround, 0);

analogWrite(m1, 0);

}

void ping()

{

pinMode(pingPin, OUTPUT);

digitalWrite(pingPin, LOW);

delayMicroseconds(2);

digitalWrite(pingPin, HIGH);

delayMicroseconds(5);

digitalWrite(pingPin, LOW);

pinMode(pingPin, INPUT);

duration = pulseIn(pingPin, HIGH);

inches = duration / 74 / 2;

}

void buttonCheck()

{

volState = digitalRead(volButton);

distState = digitalRead(distButton);

if(volState == HIGH || distState == HIGH)

{

if(volState == HIGH && distState == HIGH)

{

distChange();

volChange();

}

else if (volState == HIGH)

{

volChange();

}

else

{

distChange();

}

while(volState == HIGH || distState == HIGH)

{

volState = digitalRead(volButton);

distState = digitalRead(distButton);

delay(1);

}

}

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.