Commit 378f95e2 authored by Jesse Eubanks's avatar Jesse Eubanks
Browse files

editing week12

parent b75e84c2
Pipeline #237037 passed with stage
in 24 seconds
......@@ -122,16 +122,31 @@ p.agreement {
<i>Equation for spindal speed</i>
</div>
<p>Again for this lab, our Prof. Goodman demoed a variety of different output devices
that we could use during our individual assignment. For the lab, we looked into the
voltage, current, and power of certain devices when we had them set up. We did this
with a DC motor. </p>
<p>Here, you can see us using a setup that involves two different multimeters. One
multimeter is measuring the voltage drop across the motor while the other is hooked
up into our circuit so that we can see the current.</p>
<div class="img-with-text">
<img src="Images\outputg2.JPG" class="image" width="60%">
<i>Equation for spindal speed</i>
</div>
<p>Now when we had someone hold onto the motor we could see that the voltage increased and
the amperage went down. This can be seen in the image above. Another thing that we tested
was that when someone turned the motor on its own when it was not powered on, we were
able to generate a small amount of current. </p>
<div class="img-with-text">
<img src="Images\outputg3.JPG" class="image" width="60%">
<i>Equation for spindal speed</i>
</div>
<div class="img-with-text">
<img src="Images\outputg4.JPG" class="image" width="60%">
<i>Equation for spindal speed</i>
......@@ -142,63 +157,123 @@ p.agreement {
<i>Equation for spindal speed</i>
</div>
<p>The final thing we did in the lab was to take a look at pulse width modulation.
To do this we programmed an LED so that it would fade in and out. It turns out when
the LED is fading in and out, the LED switches on and off at a certain frequency
so that it can change the amount of voltage that is coming in. Obviously we cannot
see this with our eyes, but using the oscilloscope we can see the binary signals. </p>
<h1>Individual Assignment</h1>
<p>This week I decided that I would do something simple and create a smaller board. I have been mainly working with
larger chips like ATtiny 1616, 3216, and 1614 so I decided I wanted to create something with a smaller chip likean ATtiny 402.
You can see below that the schematic says that it is an ATtiny 412, but for some reason when I milled everything out, the 412 didn't fit
but the 402 did. So that is what I ended up using.
</p>
<div class="img-with-text">
<img src="Images\output1.JPG" class="image" width="60%">
<i>Equation for spindal speed</i>
</div>
<p>This is how I routed my board. I wanted it to be as small as possible so the board only contains an ATtiny
402, a capacitor between ground and vcc, a 1x3 pin to program, and two 1x2 pins so that I could connect two
piezo buzzers if I so pleased.</p>
<div class="img-with-text">
<img src="Images\output2.JPG" class="image" width="60%">
<i>Equation for spindal speed</i>
</div>
<p>I then used Mods to create the RML files that I would need to run this design out on the Roland. All
files and linked down at the bottom of the page for quick downloads.</p>
<div class="img-with-text">
<img src="Images\buzzmods.JPG" class="image" width="60%">
<i>Equation for spindal speed</i>
</div>
<p>Then I ran the three RML files that I generated (traces, holes, and outline) on the Roland
in our lab.</p>
<video class="image" controls autoplay loop>
<source src="milling.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<p>This is how my board came out, This is quite literally the smallest board that I made during this whole class. But I
now needed to test to make sure that it worked as I wanted it to.</p>
<div class="img-with-text">
<img src="Images\output3.JPG" class="image" width="60%">
<i>Equation for spindal speed</i>
</div>
<p>This is some code that I wrote up in arduino. I wanted to use a piezo buzzer for my final project. In my final prject I will
be needing to create a countdown for the launch sequence of my model rocket and I would like to have the piezo buzzer there as
an added effect. Below you can see me testing the buzzer and the different kind of tones that it can display.</p>
<div class="img-with-text">
<img src="Images\output4.jpg" class="image" width="60%">
<i>Equation for spindal speed</i>
</div>
<p>Before running anyhing we need to make sure to set up the ATtiny 402 in the arduino IDE. Below we are going to go to
where it says board in the tools drop down menu. </p>
<div class="img-with-text">
<img src="Images\output5.jpg" class="image" width="60%">
<i>Equation for spindal speed</i>
</div>
<p>That will open up another dropdown menu where we will select he megaTinyCore library that we installed
in a previous week.</p>
<div class="img-with-text">
<img src="Images\output6.jpg" class="image" width="60%">
<i>Equation for spindal speed</i>
</div>
<p>In that drop down menu I selected the option of ATtiny412/402/212/202</p>
<div class="img-with-text">
<img src="Images\output7.jpg" class="image" width="60%">
<i>Equation for spindal speed</i>
</div>
<p>We will now go all the way out and back to the tools drop down menu and where it says "chip or board"
we will select ATtiny402 as what we are programming for</p>
<div class="img-with-text">
<img src="Images\output8.jpg" class="image" width="60%">
<i>Equation for spindal speed</i>
</div>
<p>Last but certainly not least in tools again but under programmer we need to make sure that we have
it set to pyupdi</p>
<div class="img-with-text">
<img src="Images\output9.jpg" class="image" width="60%">
<i>Equation for spindal speed</i>
</div>
<p>Below you can see a video of my code succesfully uploading to my milled out board.</p>
<video class="image" controls autoplay loop>
<source src="outputv1.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<p>Here is video of some example code that I ran on my board before hand so that I could know that everything is working.</p>
<video class="image" controls autoplay loop>
<source src="outputv2.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<p>And finally here is the code that I am uploading for this week. The code simply just reduces the tone and plays ten different tones
then repeats on a cycle.</p>
<video class="image" controls autoplay loop>
<source src="outputv3.mp4" type="video/mp4">
Your browser does not support the video tag.
......
Supports Markdown
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