...
 
Commits (2)
......@@ -148,7 +148,8 @@
<span class="image main"><img src="../images/final/pcbs.jpg" alt="pcbs" /></span>
<p></p>
<span class="image main"><img src="../images/final/pcb-hero.jpg" alt="pcb-hero" /></span>
<p> <br>Here are the c codes and make files:
<p>Visit my <a href="/assignments/week9.html">Embedded programming</a> assignment to see the software documentation.
<br>Here are the c codes and make files:
<br><a href="../cad files/final/sun.44.zip">sun.44.zip</a> For light sensing
<br><a href="../cad files/final/dc.44.zip">dc.44.zip</a> For DC driver
</p>
......
......@@ -122,7 +122,7 @@
<div class="col-4 col-12-medium">
<h4>For Button board you need</h4>
<p><br>1x<a
<p>1x<a
href="https://www.digikey.com/product-detail/en/microchip-technology/ATTINY45-20SU/ATTINY45-20SU-ND/735466">ATtiny
45</a>
<br>1x10k SMD 1206 Resistor
......@@ -135,7 +135,7 @@
</div>
<div class="col-4 col-12-medium">
<h4>For Hall sensor board you need</h4>
<p><br>1x<a
<p>1x<a
href="https://www.digikey.com/product-detail/en/microchip-technology/ATTINY45-20SU/ATTINY45-20SU-ND/735466">ATtiny
45</a>
<br>1x10k SMD 1206 Resistor
......@@ -148,7 +148,7 @@
</div>
<div class="col-4 col-12-medium">
<h4>For temperature sensor board you need</h4>
<p><br>1x<a
<p>1x<a
href="https://www.digikey.com/product-detail/en/microchip-technology/ATTINY45-20SU/ATTINY45-20SU-ND/735466">ATtiny
45</a>
<br>4x10k SMD 1206 Resistor
......@@ -172,14 +172,29 @@
</div>
<p>Here are the final boards</p>
<span class="image main"><img src="../images/week11/hero.jpg" alt="hero" /></span>
<h3>Making of FabFTDI -- Ինքնաշեն FTDI սարքի պատրաստումը</h3>
<p>I decided to make the FabFTDI and explore it a little. There are two FabFTDI boards that you can make here
are the links:
<br><a href="https://ppatil.pages.cba.mit.edu/FabFTDI/">Atmega16 FabFTDI</a> This is USB 2.0 Full-speed
device and supports upto 38400bps of serial communication.
<br><a href="http://fab.cba.mit.edu/classes/863.16/doc/projects/FabFTDI/FabFTDI.html">ATtiny45 FabFTDI</a>
This is a low-speed USB device and supports from 1200 - 4800bps.
<br>I choose the second one. One problem I came across was that it uses two 470om resistors that I couldn't
find at fablab. I bought them later in Yerevan from a <a href="http://www.radiom.am">hardware store</a> that everybody calles
"radiolover". The price was 10 drams for one smd resistor that's 2 US cents.</p>
<div class="row">
<p><span class="image left"><img src="../images/week11/ftdi-programing.jpg" alt="ftdi programming" /></span>
Programming of FabFTDI</p>
</div>
<h3>Programming --- Ծրագրավորում</h3>
At this point my frustration begun. Now I understand why good documentation matters.
The only thing I found that somehow made sense for me was <a
href="http://fabacademy.org/archives/2014/students/mejia.ciro/input.html">Ciro Mejia's Input Devices</a>
2014 assignment
and this article
2014 assignment.
I used Ubuntu and <a href="./week5.html">usbtiny</a> we made on week5 to program the boards. In order to program
this boards we will need the C codes, makefiles and python programs to read data from the keynotes for each
board my advice is to keep them in separate folders and name them "Button" "Magnet" "Temperature"
......@@ -200,7 +215,9 @@
Make sure your FTDI cable is seen, type:
<br><code>ls /dev</code> and find "ttyUSB0"<br>
Finally type:
<br><code>sudo python term.py /dev/ttyUSB0 9600</code></p>
<br><code>sudo python term.py /dev/ttyUSB0</code>
<br>In my case I used FabFTDI and in this case you need to change <code>/ttyUSB0</code> to <code>/ttyACM0</code> and baudrate to 4800</p>
<span class="image main"><img src="/images/week11/button.jpg" alt="" /></span>
<h4>Hall sensor board</h4>
<p>Connect your usbtiny (FabISP) to the Hall sensor board's ISP port and your computer's USB port, connect FTDI
cable to the USB of your computer and to the FTDI 6pin on the Hall sensor board
......@@ -211,7 +228,9 @@
Then type this command and hit enter
<br><code>avrdude -p t45 -P usb -c usbtiny -U flash:w:hello.mag.45.c.hex</code><br>
Finally type:
<br><code>sudo python hello.mag.45.py /dev/ttyUSB0 9600</code></p>
<br><code>sudo python hello.mag.45.py /dev/ttyUSB0</code></p>
<br>In my case I used FabFTDI and in this case you need to change <code>/ttyUSB0</code> to <code>/ttyACM0</code></p>
<span class="image main"><img src="/images/week11/magnet.jpg" alt="" /></span>
<h4>Temperature sensor board</h4>
<p>Connect your usbtiny (FabISP) to the temperature sensor board's ISP port and your computer's USB port,
connect FTDI cable to the USB of your computer and to the FTDI 6pin on the temperature sensor board
......@@ -222,25 +241,9 @@
Then type this command and hit enter
<br><code>avrdude -p t45 -P usb -c usbtiny -U flash:w:hello.temp.45.c.hex</code><br>
Finally type:
<br><code>sudo python hello.temp.45.py /dev/ttyUSB0 9600</code></p>
<h3>Making of FabFTDI -- Ինքնաշեն FTDI սարքի պատրաստումը</h3>
<p>I decided to make the FabFTDI and explore it a little. There are two FabFTDI boards that you can make here
are the links:
<br><a href="https://ppatil.pages.cba.mit.edu/FabFTDI/">Atmega16 FabFTDI</a> This is USB 2.0 Full-speed
device and supports upto 38400bps of serial communication.
<br><a href="http://fab.cba.mit.edu/classes/863.16/doc/projects/FabFTDI/FabFTDI.html">ATtiny45 FabFTDI</a>
This is a low-speed USB device and supports from 1200 - 4800bps.
<br>I choose the second one. One problem I came across was that it uses 2 470om resistors that I couldn't
find at fablab. I bought them later in Yerevan from a <a href="http://www.radiom.am">hardware store</a> that everybody calles
"radiolover". The price was 10 drams for one smd resistor that's 2 US cents.</p>
<div class="row">
<p><span class="image left"><img src="../images/week11/ftdi-programing.jpg" alt="ftdi programming" /></span>
Programming of FabDTDI</p>
</div>
<br><code>sudo python hello.temp.45.py /dev/ttyUSB0 9600</code> // this is for FTDI cable
<br>In my case I used FabFTDI and in this case you need to change <code>/ttyUSB0</code> to <code>/ttyACM0</code></p>
<span class="image main"><img src="/images/week11/temp.jpg" alt="" /></span>
</p>
Useful links
......
......@@ -33,11 +33,6 @@
<header class="main">
<h1>Output devices --- Ելքային սարքեր</h1>
</header>
<!-- <div style="text-align: center;"><iframe width="853" height="480"
src="https://www.youtube.com/embed/l9b_6WLemmg" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe></div> -->
<!-- <span class="image main"><img src="../images/" alt="" /></span> -->
<!-- <a href=""></a> -->
<h2>Introduction --- Ներածություն</h2>
<p>For this week we had to:
......
......@@ -33,11 +33,6 @@
<header class="main">
<h1>Wildcard Week --- Ազատ ստեղծագործ</h1>
</header>
<!-- <div style="text-align: center;"><iframe width="853" height="480"
src="https://www.youtube.com/embed/l9b_6WLemmg" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe></div> -->
<!-- <span class="image main"><img src="../images/" alt="" /></span> -->
<!-- <a href=""></a> -->
<h2>Introduction --- Ներածություն</h2>
<p>For this week we had to:
......