Skip to content
Snippets Groups Projects
Commit 1ceacae1 authored by Ahmad Fares's avatar Ahmad Fares
Browse files

-m delete bigger images

parent 75823bb0
No related branches found
No related tags found
No related merge requests found
Pipeline #
participants/fares.ahmad/3dprinters-scanning/images/23.jpg

1.89 MiB

participants/fares.ahmad/3dprinters-scanning/images/24.jpg

3.69 MiB

participants/fares.ahmad/3dprinters-scanning/images/25.jpg

2.32 MiB

......@@ -2,6 +2,15 @@
## Introduction
## Interrupts
## Comments
## Interrupts
## Timers
## Count 1 seconds for 1 Mhz (Rule of thirds)
**Descrip all the codes**
**Push LED, Interrupt, delay, withoutPullUp**
**Add video of each code**
......@@ -185,21 +185,20 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
</div>
<p>The source code of the original design can be found in this <a href="http://academy.cba.mit.edu/classes/embedded_programming/hello.ftdi.44.cad">link</a>.</p>
<pre><code>BU1 = button_6mm(&#39;BU1&#39;);
pcb = BU1.add(pcb,XTAL1.x+0.02,J1.y+0.1,z,90);
pcb = wire(pcb,w,IC1.pad[5],BU1.pad[4])
pcb = wire(pcb,w,J1.pad[6],BU1.pad[2])
<div class="sourceCode"><pre class="sourceCode python"><code class="sourceCode python">BU1 <span class="op">=</span> button_6mm(<span class="st">&#39;BU1&#39;</span>)<span class="op">;</span>
pcb <span class="op">=</span> BU1.add(pcb,XTAL1.x<span class="fl">+0.02</span>,J1.y<span class="fl">+0.1</span>,z,<span class="dv">90</span>)<span class="op">;</span>
pcb <span class="op">=</span> wire(pcb,w,IC1.pad[<span class="dv">5</span>],BU1.pad[<span class="dv">4</span>])
pcb <span class="op">=</span> wire(pcb,w,J1.pad[<span class="dv">6</span>],BU1.pad[<span class="dv">2</span>])
LED1 = LED_1206(&#39;LED&#39;);
pcb = LED1.add(pcb,IC1.x+0.3,IC1.pad[10].y,z,180)
LED1 <span class="op">=</span> LED_1206(<span class="st">&#39;LED&#39;</span>)<span class="op">;</span>
pcb <span class="op">=</span> LED1.add(pcb,IC1.x<span class="fl">+0.3</span>,IC1.pad[<span class="dv">10</span>].y,z,<span class="dv">180</span>)
R2 = R_1206(&#39;R2&#39;);
pcb = R2.add(pcb, LED1.x+0.06,LED1.y-0.2,z,90)
pcb = wire(pcb,w,IC1.pad[10],LED1.pad[2])
pcb = wire(pcb,w,LED1.pad[1],R2.pad[2])
pcb = wire(pcb,w,J1.pad[2],R2.pad[1])
I have added my parts which they are the LED, 100ohm resistor and the button as shown inside the square in the following image.</code></pre>
R2 <span class="op">=</span> R_1206(<span class="st">&#39;R2&#39;</span>)<span class="op">;</span>
pcb <span class="op">=</span> R2.add(pcb, LED1.x<span class="fl">+0.06</span>,LED1.y<span class="fl">-0.2</span>,z,<span class="dv">90</span>)
pcb <span class="op">=</span> wire(pcb,w,IC1.pad[<span class="dv">10</span>],LED1.pad[<span class="dv">2</span>])
pcb <span class="op">=</span> wire(pcb,w,LED1.pad[<span class="dv">1</span>],R2.pad[<span class="dv">2</span>])
pcb <span class="op">=</span> wire(pcb,w,J1.pad[<span class="dv">2</span>],R2.pad[<span class="dv">1</span>])</code></pre></div>
<p>I have added my parts which they are the LED, 100ohm resistor and the button as shown inside the square in the following image.</p>
<div class="figure">
<img src="images/koko-code.png" />
......@@ -240,7 +239,7 @@ I have added my parts which they are the LED, 100ohm resistor and the button as
}
}</code></pre></div>
<p>To upload the code I have connected the board with the programmer and plugged the programmer into a USB port then I have executed the commands <code>make flash</code> then <code>make program</code>.</p>
<p>The LED now will be switched on when the button is pressed.</p>
<p><strong>PUT VIDEO</strong></p>
<p>The LED now will be switched on when the button is pressed. <strong>Attach links for CAD and original images of the traces and cut</strong> <strong>Talk about the makefile modification</strong> <strong>PUT VIDEO</strong></p>
<p><strong>Oscilloscope, talk about button and bouncing</strong></p>
</body>
</html>
......@@ -153,7 +153,7 @@ I have downloaded the software from this [link](https://github.com/TheBeachLab/k
The source code of the original design can be found in this [link](http://academy.cba.mit.edu/classes/embedded_programming/hello.ftdi.44.cad).
```
```python
BU1 = button_6mm('BU1');
pcb = BU1.add(pcb,XTAL1.x+0.02,J1.y+0.1,z,90);
pcb = wire(pcb,w,IC1.pad[5],BU1.pad[4])
......@@ -167,9 +167,9 @@ pcb = R2.add(pcb, LED1.x+0.06,LED1.y-0.2,z,90)
pcb = wire(pcb,w,IC1.pad[10],LED1.pad[2])
pcb = wire(pcb,w,LED1.pad[1],R2.pad[2])
pcb = wire(pcb,w,J1.pad[2],R2.pad[1])
I have added my parts which they are the LED, 100ohm resistor and the button as shown inside the square in the following image.
```
I have added my parts which they are the LED, 100ohm resistor and the button as shown inside the square in the following image.
![](images/koko-code.png)
The idea is to switch on the LED when the button is pressed. The LED is connected to the 5v trace and the button is connected to GND trace.
......@@ -223,5 +223,8 @@ int main (void)
To upload the code I have connected the board with the programmer and plugged the programmer into a USB port then I have executed the commands `make flash` then `make program`.
The LED now will be switched on when the button is pressed.
**Attach links for CAD and original images of the traces and cut**
**Talk about the makefile modification**
**PUT VIDEO**
**Oscilloscope, talk about button and bouncing**
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