Skip to content
Snippets Groups Projects
Commit b3890f37 authored by Adrián Torres's avatar Adrián Torres
Browse files

logic_analyzer

parent 936a5519
No related branches found
No related tags found
No related merge requests found
Pipeline #220316 passed
File added
docs/images/week06/week06.44.jpg

131 KiB

docs/images/week06/week06.45.jpg

189 KiB

docs/images/week06/week06.46.jpg

320 KiB

docs/images/week06/week06.47.jpg

170 KiB

docs/images/week06/week06.48.jpg

279 KiB

docs/images/week06/week06.49.jpg

124 KiB

docs/images/week06/week06.50.jpg

173 KiB

docs/images/week06/week06.51.jpg

328 KiB

docs/images/week06/week06.52.jpg

476 KiB

......@@ -81,7 +81,11 @@
<h1>Group Assignment. Test Equipment.</h1>
<p>The <b>Group Assignment page</b> is at the following <a href="http://academany.fabcloud.io/fabacademy/2020/labs/leon/leon-group-assignments/"><b>link.</b></a></p>
<h2>Oscilloscope</h2>
<ul><li><a href="#oscilloscope"><b>Oscilloscope</b></a>
<li><a href="#multimeter"><b>Multimeter</b></a>
<li><a href="#logic"><b>Logic Analyzer</b></a></ul>
<h2><a id="oscilloscope"></a>Oscilloscope</h2>
<p>In the Fab Lab León we have an oscilloscope purchased to assemble DIY, a <a href="https://es.aliexpress.com/i/32837368469.html"><b>DSO Shell 150</b></a>. I'm going to measure the output of the LED of the Hello Board that Nuria made with the ATtiny 412, because mine being copper vinyl varnish the entire board to protect it. So I <b>regulate</b> the oscilloscope in <b>DC</b>, <b>2V</b> and a time of <b>0.2s</b> for each grid. With the clamps I measure between ground and the LED output.</p>
<p><img src="images/week06/week06.03.jpg" width="80%"; max-width="700" /></p>
......@@ -90,11 +94,55 @@
<p><iframe src="https://player.vimeo.com/video/395807262" width="100%" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe></p>
<h2>Multimeter</h2>
<h2><a id="multimeter"></a>Multimeter</h2>
<p>I use a multimeter of the brand <a href="https://es.aliexpress.com/i/33000928943.html"><b>Aneng M11</b></a> with good quality-price and that we use especially to teach "Jovenes Makers" how to use. I use the multimeter to <b>verify</b> the <b>continuity</b> of the tracks and the <b>polarities</b> of the LEDs. I can also measure capacitors.</p>
<span class="image main"><img src="images/week06/week06.04.jpg" alt="" /></span>
<h2><a id="logic"></a>Logic Analizer</h2>
<h2>20/03/2021</h2>
<p>During the fall of last year I bought a <a href="https://es.aliexpress.com/item/4001175259241.html?spm=a2g0s.9042311.0.0.274263c0Rj5XSr"><b>Logic Analyzer</b></a> but didn't get to test it until this year. A Logic Analyzer helps us to debug our electronic circuits. It is much more than an oscilloscope, because we can know the information that we send through the FTDI, how an I2C works or simply measure the pulses of a blink and if they correspond to what we have programmed.</p>
<p>The kit consists of the Logic Analyzer, a USB cable and some female-female cables, but it is better to buy the ones from the following <a href="https://es.aliexpress.com/item/32832013380.html?spm=a2g0s.9042311.0.0.274263c0ZDUJXE"><b>link</b></a> that have clamps.</p>
<p><img src="images/week06/week06.44.jpg" width="80%"; max-width="700" /></p>
<p>To use the Logical Analyzer, we must download the following <a href="https://www.saleae.com/es/downloads/"><b>Saleae</b></a> brand program (it is used for its logic analyzers such as those of generic brands such as this case). We will install all the steps, when we open the program the following screen will appear where we will be asked to connect the Logic Analyzer. When we connect it, the channels will come out.</p>
<span class="image main"><img src="images/week06/week06.45.jpg" alt="" /></span>
<p>The next step is to configure the channels (we have up to 8 channels). We can configure a channel for Async Serial, I2C, SPI... In my case I am going to configure channel 0 as Async Serial to measure Serial signals (TX, RX) or the pulse of an LED. We have to choose the channel that we are going to measure, in my case it will be channel 0 and with a speed of 115200 (speed that we have configured in the microcontroller to communicate by Serial).</p>
<span class="image main"><img src="images/week06/week06.46.jpg" alt="" /></span>
<p>Then we go to the Device Settings tab, where we will configure the Trigger mode (continuously record data until a digital trigger is found). It will be on channel 0 and the capture will last for 1 second.</p>
<p><img src="images/week06/week06.47.jpg" width="80%"; max-width="700" /></p>
<p>Once the above is configured, we go to the part of the physical connection. We have to connect a cable to Channel 0 and to GND. The GND will go to the GND (black wire) of the board and Channel 0 (red wire) to the output of the LED pin.</p>
<span class="image main"><img src="images/week06/week06.48.jpg" alt="" /></span>
<p>Once connected, we click <b>Play</b> and observe that the timeline advances and stops when the measurement of one second with the Trigger has finished. If we scroll with the mouse, we can see how many pulses we have obtained and, above all, know the time (in my case it coincides with what is programmed by 200 ms Hight, 100 ms Low).</p>
<p><img src="images/week06/week06.49.jpg" width="80%"; max-width="700" /></p>
<p>Now I'm going to test Neil's <a href="http://academy.cba.mit.edu/classes/embedded_programming/t412/hello.t412.echo.ino"><b>Echo program,</b></a> to send and receive information from the microcontroller through the TX and RX. For this I am going to configure Channel 0 and Channel 1. Within the analyzer section, we will configure the section to receive in <b>ASCII.</b></p>
<p><img src="images/week06/week06.50.jpg" width="80%"; max-width="700" /></p>
<p>Now we go to the moment of the physical connection, we will connect the GND (black wire) to GND, Channel 0 to TX (red wire) and Channel 1 to RX (green wire).</p>
<span class="image main"><img src="images/week06/week06.51.jpg" alt="" /></span>
<p>Once everything is connected, we press <b>Play</b> and from the Arduino Serial Monitor, we write "Hello" and we can see through the Logic Analyzer how it sends the pulses and in ASCII we see the letters "Hello". If we change to Channel 1, we can see how the microcontroller answers us by writing the word "Hello" letter by letter. Something awesome. 🤩</p>
<span class="image main"><img src="images/week06/week06.52.jpg" alt="" /></span>
<p><video controls width="100%"; max-width="800"><source src="images/week06/logic.mp4" type="video/mp4"></video></p>
<h1>Hello Train.</h1>
<h2>Eagle</h2>
<p>To redesign the Hello Board I will use Eagle. I will use the <b>ATtiny 1614</b>, so I will use the reference of the echo Hello Board ATtiny 1614 from Neil. I will also design the board with a cool shape, I want to make a <b>train machine.</b> I'm looking for the pinning of ATtiny 1614 because I'm going to need it to know where the pins are.</p>
......
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