Commit fbf1e86d authored by Kencho Wangdi's avatar Kencho Wangdi
Browse files

api

parent 34962147
Pipeline #316189 passed with stage
in 52 seconds
......@@ -22,14 +22,16 @@ schematic design
Board design
![search](../images/week11/board.png)
Then I used the newly installed SRM-20 to mill the board and soldered all the components.
Then I used the newly installed SRM-20 to mill the board soldered all the components.
![search](../images/week11/pcb.jpg)
![search](../images/week11/soldered.jpg)
I used a AMS 1117 3.3v 1A voltage regulator to cut down the 5v power to 3.3v for the microcontroller, but somehow when I soldered the components, I shot circuited the traces which result in giving direct 5v power to esp32 and it burned the esp32 as shown in the above circuit. At the same time there are few unconnected traces and non-functional led.
I used a 3.3v 1A voltage regulator to cut down the 5v power to 3.3v for the microcontroller, but somehow when I soldered the components, I shot circuited the traces which result in giving direct 5v power to esp32 and it burned the esp32 as shown below. At the same time there are few unconnected traces and non-functional led.
![search](../images/week11/soldered.jpg)
I decided to make a new controller board just for the output week.
I decided to programme one output of my final project. I wanted to programme the stepper motor.
Board design for the output week.
......@@ -42,21 +44,24 @@ Board Design.
Now my board is ready but the problem is I am still under home quarantine and couldn't get access to lab.
But I will try with ESP32 Uno, WiFi, Bluetooth, USB, Wemos D1 R32, 3.3V to programme an output till I can mill my board.
Meanwhile I will try to use ESP32 Uno board, to programme an output and later when I get access to lab I will mill my board to try different outputs.
This time I am going to control a stepper motor using ESP board.
## code
![search](../images/week12/code.png)
Circuit Connection
Initially I tried to use motor driver A4988 to drive my stepper motor. I connected the motor driver to a breadboard and gave the connection as per the pin out of the driver to esp32 uno and then to the stepper motor.
![search](../images/week11/driver.jpg)
I connected two analog pin of esp32 uno to direction and step pin to the motor driver and A and B pin of driver to the motor.
I connected the vcc to esp32 board and vmot to the common 5v power, thinking that the motor is 5v.
After a successful connection I tried to program the motor using arduino ide but even after successful compiling and uploading the program the stepper motor is not spinning as per the program.
Then I realized that I need a new driver to drive the motor. So I used ULN 2003 motor driver and decided to use it.
Then I realized that I need a new driver to drive the motor. So I used ULN 2003 motor driver.
I made the connection as shown in the image below.
![search](../images/week11/driver.jpg)
......@@ -73,6 +78,8 @@ Once I reched the lab, I milled my board and soldered the components.
![search](../images/week11/board.jpg)
There are few mistakes while routing the board. For that I have used jumper wires to do the corrections. Once the correction was done I tested the board and it's working fine. Next time I will make the necessary correction and milled the board for my final project.
# Output device used for the week
1. 12V Fan
2. Oled
......@@ -91,7 +98,9 @@ Once I reched the lab, I milled my board and soldered the components.
- FTDI Cable
If I connect the 12V fan to a power supply of 12V, the fan spins at full speed. so, to control the spped of the fan I have to connect the 12V fan to 12V PWM signal.
If I connect the 12V fan to a power supply of 12V, the fan spins at full speed. so, to control the speed of the fan I have used a relay.
You can use FTDI cable to program the board directly but in my case I have used the TX and RX pin of arduino uno to run the program specifically for this output as I wanted to learn whether I can use arduino uno to program my board or not.
## Wiring Diagram
![search](../images/week12/wiring.jpg)
......@@ -127,7 +136,15 @@ void loop() {
This code periodically turns the fan ON/OFF in every 10 seconds.
## Result
<iframe width="560" height="315" src="https://www.youtube.com/embed/7EY_AwDH-hc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Off for 10 seconds
![search](../images/week11/off.jpg)
On for 10 seconds
![search](../images/week11/on.jpg)
## Oled as output
**Hardware required**
......
......@@ -111,8 +111,6 @@ Then set a refernce point using the laser point. The Reference point is denoted
Once the reference point is set start the job.
## Zund at work
video
## Result
......
docs/images/week11/board.jpg

100 KB | W: | H:

docs/images/week11/board.jpg

75.2 KB | W: | H:

docs/images/week11/board.jpg
docs/images/week11/board.jpg
docs/images/week11/board.jpg
docs/images/week11/board.jpg
  • 2-up
  • Swipe
  • Onion skin
docs/images/week11/finalboard.png

85.9 KB | W: | H:

docs/images/week11/finalboard.png

71.7 KB | W: | H:

docs/images/week11/finalboard.png
docs/images/week11/finalboard.png
docs/images/week11/finalboard.png
docs/images/week11/finalboard.png
  • 2-up
  • Swipe
  • Onion skin
docs/images/week11/pcb.jpg

75.8 KB | W: | H:

docs/images/week11/pcb.jpg

115 KB | W: | H:

docs/images/week11/pcb.jpg
docs/images/week11/pcb.jpg
docs/images/week11/pcb.jpg
docs/images/week11/pcb.jpg
  • 2-up
  • Swipe
  • Onion skin
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