Commit 4627601b authored by anithghalley's avatar anithghalley
Browse files

update to assignments

parent 6df38fea
Pipeline #314025 passed with stage
in 48 seconds
......@@ -34,6 +34,8 @@ The ultrasonic sensor has four pinout. The pin at the edges are the Vcc(+5V) and
So based on the image above, the working of the ultrasonic is based on the reflection of the sound wave produced by the trigger pin. So by measuring the time for the wave to reflect back we can measure the distance covered by the sound wave.
![](../images/input/ultrasonic_data.jpg)
## Schematic And PCB Design.
To design this input design board. I used the eagle CAD software, because for this assignment I am using my old hello world board and improvised the schematic by adding 02x02 header pin to connect my ultrasonic sensor
......@@ -149,6 +151,17 @@ The program code used to interface can be found under files. I am able to get th
Then I programed the LED to blink based on the input from the ultrasonic sensor.
```
if(distance <= 50)
{
digitalWrite(2,HIGH);
}
else
{
digitalWrite(2,LOW);
}
```
And Its working.
## Problem during the week.
......
......@@ -2,8 +2,8 @@
#include <WiFi.h>
// Replace with your network credentials
const char* ssid = "Enter SSID";
const char* password = "Wnter Password";
const char* ssid = "PROJECT_WIFI";
const char* password = "tracphms@2022";
// Set web server port number to 80
WiFiServer server(80);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment