Commit 163cbdcf authored by Kencho Wangdi's avatar Kencho Wangdi
Browse files

modified

parent 84ab2397
Pipeline #316953 passed with stage
in 49 seconds
......@@ -12,7 +12,7 @@ BUT I am not making excuses here, I just wanted to mention why I couldn't keep m
For the group assignment [Refer Here](https://fabacademy.org/2022/labs/bhutan/students/sangay-penjor/assign/week_9_group.html)
## Individual Assignment:
## Individual Assignment:
Design a mold around the stock and tooling that you'll be using,
mill it (rough cut + three-axis finish cut),
and use it to cast parts
......
......@@ -42,9 +42,25 @@ b. Wireless Network: “Wireless” means without wire, media that is made up of
1. Wifi
2. Bluettoth
## Wifi
Wi-Fi is a wireless networking technology that allows devices such as computers (laptops and desktops), mobile devices (smart phones and wearables), and other equipment (printers and video cameras) to interface with the Internet. It allows these devices--and many more--to exchange information with one another, creating a network.
Internet connectivity occurs through a wireless router. When you access Wi-Fi, you are connecting to a wireless router that allows your Wi-Fi-compatible devices to interface with the Internet.
source: wikipedia
## How wifi work?
The main requirement for Wi-Fi is a device that receives and transmits a wireless signal, usually a router, and sometimes a phone or computer. WiFi-enabled devices communicate with one another by sending and receiving radio waves, a type of electromagnetic radiation with wavelengths in the electromagnetic spectrum longer than infrared light. More specifically, they use either the 2.4 GHz or the 5 GHz frequency.
![search](../images/network/ip.png)
source:purevpn.com
## Bluetooth
Bluetooth is a short-range wireless technology standard that is used for exchanging data between fixed and mobile devices over short distances using UHF radio waves in the ISM bands, from 2.402 GHz to 2.48 GHz, and building personal area networks (PANs). It is mainly used as an alternative to wire connections, to exchange files between nearby portable devices and connect cell phones and music players with wireless headphones. In the most widely used mode, transmission power is limited to 2.5 milliwatts, giving it a very short range of up to 10 metres (33 ft).
# Assignment
## Individual assignment:
Design, build, and connect wired or wireless node(s) with network or bus addresses
## group assignment:
......@@ -52,19 +68,32 @@ send a message between two projects.
For the Group Assignment [Refer here](https://fabacademy.org/2022/labs/bhutan/students/tenzin-dorji/group-assignment/gr-assignment13.html)
# To Do:
1. Design Board
2. Connect ESP32 board to wifi.
3. Programming of esp32.
3. How to connect to web from esp board.
4. Document on what I learn through this week
5. Group Assignment.
## Objectives of the week
- Design Board
- Connect ESP32 to wifi
- Group assignment
- Build the web server to controls two LEDs connected to the ESP32 GPIO.
- Access the ESP32 web server by typing the ESP32 IP address on a browser in the local network.
- Control the LED stats by clicking the ON/OFF buttons on your web server.
## BOARD DESIGNING.
I have used the same board which was used during my input and output week.
I have used the same board which was used during my input and output week.
## Schematic Design
![search](../images/week11/outputsch.png)
## Board Design
![search](../images/week11/outputboard.png)
**For this assignment I will control LEDs using ESP32 web server in Arduino IDE.**
## CONNECT ESP32 TO WiFi
If you are using ESP32 for the final project or for any other project, it is the first step to connect ESP32 to wifi.
......@@ -79,6 +108,7 @@ Then enter the **'SSID and the password'** of the network you want to connect to
![search](../images/network/password.png)
Wait for the connection to complete.
![search](../images/network/connected.png)
Now the ESP32 board is connected to wifi.
......@@ -106,11 +136,34 @@ This is simple arduino code that makes RX and TX pin of the arduino as output pi
Now connect ESP board to power supply and connect RX and TX pin of arduino with RXD 0 and TXD 0 pins of ESP32 respectively.
To make the circuit connection, connect a led to the esp32 as shown in the following diagram. I have connected my led to GPIO 12
![search](../images/network/circuit.jpg)
## CODE
I have used a simple code to blink LED from example programme given in Arduino IDE.
```
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(12, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(12, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(12, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
```
Compile and upload the code.
Use the IP address given in the serial monitor and opened it in a web and control the led on the bread board.
......@@ -118,8 +171,7 @@ Use the IP address given in the serial monitor and opened it in a web and contro
# Result
<iframe width="560" height="315" src="https://www.youtube.com/embed/ABtFgB7lTzY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
![type:video](../videos/espip.mp4)
......
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