input board

parent e53ade8d
Pipeline #82042 passed with stage
in 26 seconds
......@@ -104,9 +104,24 @@
The operation of the ultrasonic sensor is different, the transmitter (trig pin) sends a signal: a high-frequency sound, when the signal finds an object, it is reflected and the transmitter (echo pin) receives it. The time it takes for the signal to arrive is what indicates the distance of the object.
<a title="HCR 04 function"><<img class="image center" src="images/week11/hcr04function.jpg"></a>
The choice of these sensors are aligned with my final project, since I have to measure the water temperature of the steaming machine and the amount of water that exists in the tank with the presence sensor.
The choice of these sensors is aligned with my final project, since I have to measure the water temperature of the steaming machine and the amount of water that exists in the tank with the presence sensor.<br>
As described above, I have decided to use an analog and a digital sensor, as I will use these sensors for my final project. Therefore, I reread the attiny44's datasheet to know how to use the analog and digital input pins.<br>
The attiny44 has a total of 7 analog pins, internally it has a digital analog converter (ADC) which will help us to interpret the analog sensor in a better way.<br>
There is a table on page 180 of the<a href=""> data sheets</a> that indicates the maximum value that the ADC can have is 1023, which would be the analog value of the maximum input voltage, in this case it will be 5VDC.
In other words, it means that the analog pins will have values between 0 and 1023, which would be from 0 to 5VDC. With programming we must convert this measure into a value that we can understand using different formulas.<br>
On page 55 of the data sheet they mention that digital pins are bidirectional, that means they can serve as inputs and outputs. We remember the hello world board in which we use a led as a digital output and the button as a digital input, only its operation is configured on setup as input or output.<br>
Only in case analog pins work only as inputs, they cannot be outputs. In case of wanting to use an analog output, we must use the PWM pins of the microcontroller.<br>
With these previous concepts, we proceed to make the schematic of our inputs board, remaining as the next picture.
<a title="Schematic circuit"><img class="image center" src="images/week11/schmatic.JPG"></a>
We remember from week 7, the attiny44 has a small internal clock of 8MHZ, for that reason I save the resonator and take both pins for the ultrasonic sensor and make a smaller board.
The final board is shown in the following picture.
<a title="Board circuit"><img class="image center" src="images/week11/board.jpg"></a>
We start with the manufacturing and soldering process, having the following result.
<a title="Inputs board"><img class="image center" src="images/week11/inputsboard.jpg"></a>
For this week, I made a replicated the head of Bender, from Futurama series by Matt Groening, because it is necessarily made a 3d design with some curves.
......@@ -326,18 +341,18 @@
<a title="Fail"><img class="image center" src="images/week10/mouldingfail.jpg"></a>
With this week you can see the importance of being able to make several copies of designs made in a design software without having to wait long in print.
<h2>Download files</h2>
You can donwload files Here: <br>
<a href="images/week10/bender.ipt" download>Bender (Inventor 2018)</a><br>
<a href="images/week10/Roughing1.prn" download>Roughing (Modela MDX-540)</a><br>
<a href="images/week10/Finishing1.prn" download>Finishing (Modela MDX-540)</a><br>
<a href="images/week11/inputs.sch" download>Schematic design</a><br>
<a href="images/week11/inputs.brd" download>Board design</a><br>
<a href="images/week11/traces.png" download>Traces</a><br>
<a href="images/week11/out.png" download>Out</a><br>
<p><ul class="actions">
<li><a href="index.html" class="button primary">Main Menu</a></li>
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