Skip to content
Snippets Groups Projects
Commit 5d502059 authored by Zihao Lin's avatar Zihao Lin
Browse files

recover

parent ac513bfb
Branches master
No related tags found
No related merge requests found
docs/img/week_11/Picture10.jpg

55.8 KiB

docs/img/week_11/Picture11.jpg

65.3 KiB

docs/img/week_11/Picture12.jpg

33.2 KiB

docs/img/week_11/Picture13.jpg

26.5 KiB

docs/img/week_11/Picture14.jpg

182 KiB

docs/img/week_11/Picture15.jpg

96.9 KiB

docs/img/week_11/Picture16.jpg

65.2 KiB

This diff is collapsed.
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<!--[if IE]><meta http-equiv="x-ua-compatible" content="IE=9" /><![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>week_11 Output Devices</title>
<meta name="description" content="Your Description Here">
<meta name="keywords" content="FabLab Taipei,FabLab,Zihao Lin,FabLab SCU">
<meta name="author" content="Lin Zihao">
<!-- Favicons
================================================== -->
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="img/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114.png">
<!-- Bootstrap -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="fonts/font-awesome/css/font-awesome.css">
<!-- Slider
================================================== -->
<link href="css/owl.carousel.css" rel="stylesheet" media="screen">
<link href="css/owl.theme.css" rel="stylesheet" media="screen">
<!-- Stylesheet
================================================== -->
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/responsive.css">
<script type="text/javascript" src="js/modernizr.custom.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Navigation
==========================================-->
<nav id="tf-menu" class="navbar navbar-default navbar-fixed-top">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Lin Zihao</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.html" class="page-scroll">Home</a></li>
<li><a href="Final Project.html" class="page-scroll">Final Project</a></li>
<li><a href="#tf-testimonials" class="page-scroll">Contact</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<!-- Home Page
==========================================-->
<div id="tf-home" class="text-center">
<div class="overlay">
<div class="content">
<h1><strong><span class="color">week_11</span></strong></h1>
<p class="lead"><strong>Output Devices</strong></p>
<a href="#tf-services" class="fa fa-angle-down page-scroll"></a>
</div>
</div>
</div>
<!-- Services Section
==========================================-->
<div id="tf-services">
<div class="container">
<div class="text-center">
<div class="section-title center" >
<h2><strong>Assignments</strong></h2>
<div class="line">
<hr>
</div>
</div>
</div>
<p>Propose a final project masterpiece that integrates the range of units covered, answering:</p>
<ul class="about-list">
<li>
<span class="fa fa-dot-circle-o"></span>
<strong>1)</strong> - <em>Individual assignment: add an output device to a microcontroller board you've designed, and program it to do something</em>
</li>
<li>
<span class="fa fa-dot-circle-o"></span>
<strong>2)</strong> - <em>Group assignment: measure the power consumption of an output device</em>
</li>
</ul>
<br />
<div class="text-center">
<div class="section-title center" >
<h2><strong>Stepping Motor</strong></h2>
<div class="line">
<hr>
</div>
</div>
</div>
<p>
At first, I used the Arudino UNO to control the stepping motor to practice the output drivers. Connection line as shown:</p>
<p style="text-align:center"><img src="img/week_11/Picture01.jpg" class="img-responsive" alt="..."></p><br/>
<p>
The pin 8 in UNO board connection the IN1 in ULN2003, the pin 9 in UNO board connection the IN2 ULN2003, the pin 10 in UNO board connection the IN3 ULN2003, the pin 11 in UNO board connection the IN4 ULN2003. Then I programed in the Ardino.</p>
<p style="text-align:center"><img src="img/week_11/Picture16.jpg" class="img-responsive" alt="..."></p><br/>
<iframe width="691" height="640" src="https://www.youtube.com/embed/VykQHUjbDeE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe><br/>
<div class="text-center">
<div class="section-title center" >
<h2><strong>Hello.RGB.45</strong></h2>
<div class="line">
<hr>
</div>
</div>
</div>
<div class="text-center">
<div class="section-title center" >
<h4><strong>Schematic Diagram</strong></h4>
</div>
</div>
<p>
This week we’re exploring output devices. So, this week the first I decided to put an RGB LED output devices. To create the schematics, I needed the list of components that I needed for the board. Once I secured the components needed, I could easily choose the correct component from the fab.lib in Eagle to create the schematic. The components I needed were:<br/>
<ul class="about-list">
<li>
<span class="fa fa-dot-circle-o"></span>
<strong>1)</strong> <em>Capacitor- 1uF *1</em>
</li>
<li>
<span class="fa fa-dot-circle-o"></span>
<strong>2)</strong> - <em>RES1-10k *1</em>
</li>
<li>
<span class="fa fa-dot-circle-o"></span>
<strong>3)</strong> - <em>RES2-1k *2</em>
</li>
<li>
<span class="fa fa-dot-circle-o"></span>
<strong>4)</strong> - <em>RES4-499 *1</em>
</li>
<li>
<span class="fa fa-dot-circle-o"></span>
<strong>5)</strong> - <em>LED RGB Diffused 4PLCC SMD *1</em>
</li>
<li>
<span class="fa fa-dot-circle-o"></span>
<strong>6)</strong> - <em>ATTiny45-SSU *1</em>
</li>
<li>
<span class="fa fa-dot-circle-o"></span>
<strong>7)</strong> - <em>5V Regulator *1</em>
</li>
<li>
<span class="fa fa-dot-circle-o"></span>
<strong>8)</strong> - <em>PINHD-2X3-SMD *1</em>
</li>
</ul>
I started by entering Eagle and worked through the schematic. It was much faster as I was more comfortable creating labels, wires and using the Fab Library. I quickly populated the board based upon the RGB files on the Fab Academy page. I was confident I had created the and labelled everything correctly. It was time to consult the drawings to make sure it was populated correctly. I felt confident it was correct.<br/>
<p style="text-align:center"><img src="img/week_11/Picture02.jpg" class="img-responsive" alt="..."></p><br/>
<p style="text-align:center"><img src="img/week_11/Picture03.jpg" class="img-responsive" alt="..."></p><br/>
Then I proceeded to convert the schematic to a board file. So, the next phase was to place all the above-mentioned components on the board. I consulted Neil's board to see how he populated his board and tried to line mine up in a similar fashion. I moved over to board view and started dragging the components over and placing them. The RGB Led board is fairly straightforward in its layout. It was a simple task to drag it over.<br/>
<p style="text-align:center"><img src="img/week_11/Picture04.jpg" class="img-responsive" alt="..."></p><br/>
<div class="text-center">
<div class="section-title center" >
<h4><strong>PCB Production</strong></h4>
</div>
</div>
<p>
This week I did some small mistake, so it took me a lot of times. The first time I laid out the plates and processed them, I found that some parts were not cut in place.</p>
<p style="text-align:center"><img src="img/week_11/Picture05.jpg" class="img-responsive" alt="..."></p><br/>
<p style="text-align:center"><img src="img/week_11/Picture06.jpg" class="img-responsive" alt="..."></p><br/>
After that, line correction was carried out through GIMP, as shown in the following figure.<br/>
<p style="text-align:center"><img src="img/week_11/Picture07.jpg" class="img-responsive" alt="..."></p><br/>
<p style="text-align:center"><img src="img/week_11/Picture08.jpg" class="img-responsive" alt="..."></p><br/>
When welding to the RGB lamp, I found that the order of the RGB pins I purchased was different from that in the fablab module, which was rotated 90 degrees clockwise. RGB LED VCC pin in my board is pin A. But the RGB LED has the wrong aspect ratio<br/>
<p style="text-align:center"><img src="img/week_11/Picture09.jpg" class="img-responsive" alt="..."></p><br/>
<p style="text-align:center"><img src="img/week_11/Picture10.jpg" class="img-responsive" alt="..."></p><br/>
I used GIMP to modify my PCB board. I increased the area of the RGB part.<br/>
<p style="text-align:center"><img src="img/week_11/Picture11.jpg" class="img-responsive" alt="..."></p><br/>
<p style="text-align:center"><img src="img/week_11/Picture12.jpg" class="img-responsive" alt="..."></p><br/>
Then I soldered the necessary components on my board.<br/>
<p style="text-align:center"><img src="img/week_11/Picture13.jpg" class="img-responsive" alt="..."></p><br/>
<div class="text-center">
<div class="section-title center" >
<h4><strong>Programming</strong></h4>
</div>
</div>
<p>
I used the USBtiny board to program my board and I used the Arudino UNO to provide the power of 5V. I used Neil's c code and made file to program the board and saved them in a specific directory inside the Desktop. I opened Git Bash and went inside the directory where the c code and the make file where located. Then, I ran the following commands:</p>
<code>make -f hello.RGB.45. make program-usbatiny</code><br/>
<p style="text-align:center"><img src="img/week_11/Picture14.jpg" class="img-responsive" alt="..."></p><br/>
<div class="text-center">
<div class="section-title center" >
<h4><strong>The RGB show</strong></h4>
</div>
</div>
<p style="text-align:center"><img src="img/week_11/Picture13.jpg" class="img-responsive" alt="..."></p>
<iframe width="691" height="389" src="https://www.youtube.com/embed/w2JgvvCz8rs" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<div class="text-center">
<div class="section-title center" >
<h2><strong>File Download</strong></h2>
<div class="line">
<hr>
</div>
</div>
</div>
<p> <a href="Files/week_11/Hello.World.RGB.45.zip">Hello.World.RGB.45</a> </p>
<p> <a href="Files/week_11/Stepping_Motor.zip">Stepping_Motor</a> </p>
</div>
</div>
<!-- Testimonials Section
==========================================-->
<div id="tf-testimonials" class="text-center">
<div class="overlay">
<div class="container">
<div class="section-title center">
<div class="section-title center">
<h2><strong>contact Me</strong></h2>
<div class="line">
<hr>
</div>
<div class="clearfix"></div>
<small><em>
Address: No.10, Kehua street, Wuhou District, Chengdu, Sichuan Province, China<br />
TEL: (028) 85406538 (+86)18981085882<br />
E-mail: linzihao@scuspark.com<br />
QQ: 386866966
</em></small>
</div>
<form>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
</div>
</div>
<div class="form-group">
<label for="exampleInputEmail1">Message</label>
<textarea class="form-control" rows="3"></textarea>
</div>
<button type="submit" class="btn tf-btn btn-default">Submit</button>
</form>
</div>
</div>
</div>
</div>
<nav id="footer">
<div class="container">
<div class="pull-left fnav">
<p>Science Park of Sichuan University Co.Ltd. All rights reserved. © 2020. Designed by Lin Zihao</p>
</div>
<div class="pull-right fnav">
<ul class="footer-social">
<li><a href="https://www.facebook.com/zihao.lin.7399"><i class="fa fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-dribbble"></i></a></li>
<li><a href="#"><i class="fa fa-google-plus"></i></a></li>
<li><a href="#"><i class="fa fa-twitter"></i></a></li>
</ul>
</div>
</div>
</nav>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.1.11.1.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/SmoothScroll.js"></script>
<script type="text/javascript" src="js/jquery.isotope.js"></script>
<script src="js/owl.carousel.js"></script>
<!-- Javascripts
================================================== -->
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment