Commit 69b664dd authored by Camilo Ortiz's avatar Camilo Ortiz
Browse files

camilo w10

parent 9d67b05f
......@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Week 9</title>
<title>Week 10</title>
<!-- Bootstrap Core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Theme CSS -->
......@@ -92,7 +92,7 @@
</header>
<hr />
<h3>Jeffery Naranjo</h3>
<P>For this week's assignment, two sensors will be used, the first a humidity sensor that can measure analog and digital signals according to
<P>For this week's assignment, two sensors will be used, the first a humidity sensor that can measure analog and digital signals according to
the pin we use, and a motion sensor that gives us a digital signal.
</p> <br>
<h2>Analog read</h2></p>
......@@ -109,9 +109,37 @@
To read the digital signal we use a motion sensor HC-SR501 connected in the same way to pin 2 of our ATtiny 44
<span class="image"><img src="img/w10/sen4.jpg" alt="" height="500"/></span></p>
For more information and to be able to download the files, I invite you to see the following link
For more information and to be able to download the files, I invite you to see the following link
<a href="http://fabacademy.org/2021/labs/zoi/week10_Input_devices.html" target="_blank">INPUTS</a>
<br>
<br>
</p>
<h3>Camilo Ortiz</h3>
<p>
This week I decide to use the Attiny45 and a <a href="https://www.hotmcu.com/ir-reflective-sensor-tcrt5000-p-184.html"> TCRT5000 Module</a> which have an IR emitter and a phototransistor incorporated
and can be use for some applications as detect white and black color (commonly used in line follower robot) distance detection (short distances), position sensor for shaft encoder and more.
This module have an analog output and digital output so it's perfect to test and read from the same sensor both kind of signals.
</p> <br>
<img height=200em src="img/w10/PinoutT45.jpg" alt="">
<h2>Programming</h2>
<p>
Connecting the module pins, vcc, gnd and digital, analog signals to the board and the Tx, Rx pins from the board to Arduino, everything ready to read the values.
This module have a potenciometer to calibrate the sensitivity of the digital signal to change from one to zero. This can be usefull if you don't need to map the analog values,
in other words, show data to the user to be read as distance. It's also important to notice using analog signal will be always more precise than a potenciometer calibration
in this module and could be cases is needed to detect different positions of an object and not just care obout a "border line" in this cases will be convinient read an analog
signal.
</p>
<img height=250em src="img/w10/sensor.jpg" alt="">
<img height=250em src="img/w10/sensor1.jpg" alt="">
<h2>Serial Read</h2><br>
<p>
Once everything is programmed and connected it's time to read the values
</p>
<video width="620" controls>
<source src="img/w10/SensorSerialRead.mp4" type="video/mp4">
</video><br><br><br>
<p>
You can find the original files and more details on my personal <a href="http://fabacademy.org/2021/labs/zoi/students/camilo-ortiz/week10.html">Week 10 Assigment page</a>
</p>
</div>
<hr>
......@@ -119,7 +147,7 @@
</div>
</article>
<!-- Footer -->
......
Markdown is supported
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