https://hades.mech.northwestern.edu//index.php?title=Intelligent_Oscillation_Controller&feed=atom&action=historyIntelligent Oscillation Controller - Revision history2024-03-29T08:20:29ZRevision history for this page on the wikiMediaWiki 1.35.9https://hades.mech.northwestern.edu//index.php?title=Intelligent_Oscillation_Controller&diff=8416&oldid=prevBrettPihl: /* Circuitry */2008-03-20T23:57:03Z<p><span dir="auto"><span class="autocomment">Circuitry</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:57, 20 March 2008</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 45:</td>
<td colspan="2" class="diff-lineno">Line 45:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The main elements of the circuit were a PIC, DAC ([http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital-to-Analog converter]) and accelerometer. The PIC would store a discretized sine waveform with integer values from 0-255. It would then output a function of this sine wave (our control signal) to the DAC. The analog signal output from the DAC would be sent to the amplifier, which would then power the speaker. The accelerometer on the mass would feedback the actual acceleration profile of the mass back to MATLAB. MATLAB would then recompute the next control signal and repeat the cycle until the mass was moving with the desired acceleration profile.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The main elements of the circuit were a PIC, DAC ([http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital-to-Analog converter]) and accelerometer. The PIC would store a discretized sine waveform with integer values from 0-255. It would then output a function of this sine wave (our control signal) to the DAC. The analog signal output from the DAC would be sent to the amplifier, which would then power the speaker. The accelerometer on the mass would feedback the actual acceleration profile of the mass back to MATLAB. MATLAB would then recompute the next control signal and repeat the cycle until the mass was moving with the desired acceleration profile.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Our circuit diagram is shown below. An optional component is a 24FC515 EEPROM chip ([http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf 24FC515 Data Sheet]). The 512 KB of memory could be used to store data to later be retrieved and processed by MATLAB. We found this to be unnecessary in our experimentation. </div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Our circuit diagram is shown below. An optional component is a 24FC515 EEPROM chip ([http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf 24FC515 Data Sheet]). The 512 KB of memory could be used to store data to later be retrieved and processed by MATLAB. We found this to be unnecessary in our experimentation. <ins class="diffchange diffchange-inline">Learn more about external memory and EEPROM's [http://hades.mech.northwestern.edu/wiki/index.php/Interfacing_to_External_EEPROM here].</ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply ([http://www.emtel.com/product-p/61-emv15012v.htm Emtel EMV15012v]). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply ([http://www.emtel.com/product-p/61-emv15012v.htm Emtel EMV15012v]). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
</tr>
</table>BrettPihlhttps://hades.mech.northwestern.edu//index.php?title=Intelligent_Oscillation_Controller&diff=8415&oldid=prevBrettPihl: /* Circuitry */2008-03-20T23:55:37Z<p><span dir="auto"><span class="autocomment">Circuitry</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:55, 20 March 2008</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 49:</td>
<td colspan="2" class="diff-lineno">Line 49:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply ([http://www.emtel.com/product-p/61-emv15012v.htm Emtel EMV15012v]). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply ([http://www.emtel.com/product-p/61-emv15012v.htm Emtel EMV15012v]). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>We used a surface mount LIS2L02AS4 accelerometer. We set pins 9, 11, and 13 LOW to give us a 2g resolution. These chips read acceleration in 2 dimensions, we used the X-direction (pin 10) read by pin 02/RC0 on the PIC. You can read more about accelerometers[http://hades.mech.northwestern.edu/wiki/index.php/Accelerometers here].</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>We used a surface mount LIS2L02AS4 accelerometer. We set pins 9, 11, and 13 LOW to give us a 2g resolution. These chips read acceleration in 2 dimensions, we used the X-direction (pin 10) read by pin 02/RC0 on the PIC. You can read more about accelerometers<ins class="diffchange diffchange-inline"> </ins>[http://hades.mech.northwestern.edu/wiki/index.php/Accelerometers here].</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Serial communication between the PIC and MATLAB was accomplished by using a FTDIChip TTL-232R USB to RS232 Cable. It is a bit more expensive then using a leveler chip and a DB-9 connector, but much more convenient. You can read more about this cable and the alternative option [http://hades.mech.northwestern.edu/wiki/index.php/PIC_RS232 here]. To learn more about serial communication between a PC and PIC, see [http://hades.mech.northwestern.edu/wiki/index.php/Serial_communication_with_Matlab this page].</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Serial communication between the PIC and MATLAB was accomplished by using a FTDIChip TTL-232R USB to RS232 Cable. It is a bit more expensive then using a leveler chip and a DB-9 connector, but much more convenient. You can read more about this cable and the alternative option [http://hades.mech.northwestern.edu/wiki/index.php/PIC_RS232 here]. To learn more about serial communication between a PC and PIC, see [http://hades.mech.northwestern.edu/wiki/index.php/Serial_communication_with_Matlab this page].</div></td>
</tr>
</table>BrettPihlhttps://hades.mech.northwestern.edu//index.php?title=Intelligent_Oscillation_Controller&diff=8413&oldid=prevBrettPihl: /* Circuitry */2008-03-20T23:55:11Z<p><span dir="auto"><span class="autocomment">Circuitry</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:55, 20 March 2008</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 45:</td>
<td colspan="2" class="diff-lineno">Line 45:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The main elements of the circuit were a PIC, DAC ([http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital-to-Analog converter]) and accelerometer. The PIC would store a discretized sine waveform with integer values from 0-255. It would then output a function of this sine wave (our control signal) to the DAC. The analog signal output from the DAC would be sent to the amplifier, which would then power the speaker. The accelerometer on the mass would feedback the actual acceleration profile of the mass back to MATLAB. MATLAB would then recompute the next control signal and repeat the cycle until the mass was moving with the desired acceleration profile.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The main elements of the circuit were a PIC, DAC ([http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital-to-Analog converter]) and accelerometer. The PIC would store a discretized sine waveform with integer values from 0-255. It would then output a function of this sine wave (our control signal) to the DAC. The analog signal output from the DAC would be sent to the amplifier, which would then power the speaker. The accelerometer on the mass would feedback the actual acceleration profile of the mass back to MATLAB. MATLAB would then recompute the next control signal and repeat the cycle until the mass was moving with the desired acceleration profile.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Our circuit diagram is shown below. <del class="diffchange diffchange-inline">Included</del> <del class="diffchange diffchange-inline">this</del> <del class="diffchange diffchange-inline">diagram</del> is a 24FC515 EEPROM chip ([http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf 24FC515 Data Sheet]). <del class="diffchange diffchange-inline">This is an optional component in the circuit, the</del> 512 KB of memory could be used to store data to later be retrieved and processed by MATLAB. We found this to be unnecessary in our experimentation. </div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Our circuit diagram is shown below. <ins class="diffchange diffchange-inline">An</ins> <ins class="diffchange diffchange-inline">optional</ins> <ins class="diffchange diffchange-inline">component</ins> is a 24FC515 EEPROM chip ([http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf 24FC515 Data Sheet]). <ins class="diffchange diffchange-inline">The</ins> 512 KB of memory could be used to store data to later be retrieved and processed by MATLAB. We found this to be unnecessary in our experimentation. </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply ([http://www.emtel.com/product-p/61-emv15012v.htm Emtel EMV15012v]). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply ([http://www.emtel.com/product-p/61-emv15012v.htm Emtel EMV15012v]). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
</tr>
</table>BrettPihlhttps://hades.mech.northwestern.edu//index.php?title=Intelligent_Oscillation_Controller&diff=8408&oldid=prevBrettPihl: /* Circuitry */2008-03-20T23:52:07Z<p><span dir="auto"><span class="autocomment">Circuitry</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:52, 20 March 2008</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 54:</td>
<td colspan="2" class="diff-lineno">Line 54:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>[[Image:<del class="diffchange diffchange-inline">smlearningoscillationcircuit</del> |900px|Left| Circuit Diagram]]</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>[[Image:<ins class="diffchange diffchange-inline">learnoscnoeeprom</ins> |900px|Left| Circuit Diagram]]</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div><br clear=all></div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div><br clear=all></div></td>
</tr>
</table>BrettPihlhttps://hades.mech.northwestern.edu//index.php?title=Intelligent_Oscillation_Controller&diff=8396&oldid=prevBrettPihl: /* References */2008-03-20T23:24:55Z<p><span dir="auto"><span class="autocomment">References</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:24, 20 March 2008</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 136:</td>
<td colspan="2" class="diff-lineno">Line 136:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>* [http://lims.mech.northwestern.edu/~lynch/ Professor Kevin Lynch]</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>* [http://lims.mech.northwestern.edu/~lynch/ Professor Kevin Lynch]</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>* [http://lims.mech.northwestern.edu/students/vose/ Tom Vose], author of the learning algorithm used in this project</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>* [http://lims.mech.northwestern.edu/students/vose/ Tom Vose], author of the learning algorithm used in this project</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>* [http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital to Analog Conversion]</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>* [http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf EEPROM Chip]</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>* [http://www.emtel.com/product-p/61-emv15012v.htm Emtel Power Supply]</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>* [http://hades.mech.northwestern.edu/wiki/index.php/Accelerometers Accelerometers]</div></td>
</tr>
</table>BrettPihlhttps://hades.mech.northwestern.edu//index.php?title=Intelligent_Oscillation_Controller&diff=8395&oldid=prevBrettPihl: /* Circuitry */2008-03-20T23:20:18Z<p><span dir="auto"><span class="autocomment">Circuitry</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:20, 20 March 2008</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 37:</td>
<td colspan="2" class="diff-lineno">Line 37:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>[[Image:poweradapter |thumb|150px|right| Power <del class="diffchange diffchange-inline">Adaptor</del> Wiring]]</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>[[Image:poweradapter |thumb|150px|right| Power <ins class="diffchange diffchange-inline">Supply</ins> Wiring]]</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>[[Image:ampinput |thumb|150px|right| Amplifier Input]]</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>[[Image:ampinput |thumb|150px|right| Amplifier Input]]</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 51:</td>
<td colspan="2" class="diff-lineno">Line 51:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>We used a surface mount LIS2L02AS4 accelerometer. We set pins 9, 11, and 13 LOW to give us a 2g resolution. These chips read acceleration in 2 dimensions, we used the X-direction (pin 10) read by pin 02/RC0 on the PIC. You can read more about accelerometers[http://hades.mech.northwestern.edu/wiki/index.php/Accelerometers here].</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>We used a surface mount LIS2L02AS4 accelerometer. We set pins 9, 11, and 13 LOW to give us a 2g resolution. These chips read acceleration in 2 dimensions, we used the X-direction (pin 10) read by pin 02/RC0 on the PIC. You can read more about accelerometers[http://hades.mech.northwestern.edu/wiki/index.php/Accelerometers here].</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Serial communication between the PIC and MATLAB was accomplished by using a FTDIChip TTL-232R USB to RS232 Cable. It is a bit more expensive then using a leveler chip and a DB-9 connector, but much more <del class="diffchange diffchange-inline">convienient</del>. You can read more about this cable and the alternative option [http://hades.mech.northwestern.edu/wiki/index.php/PIC_RS232 here]. To learn more about serial communication between a PC and PIC, see [http://hades.mech.northwestern.edu/wiki/index.php/Serial_communication_with_Matlab this page].</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Serial communication between the PIC and MATLAB was accomplished by using a FTDIChip TTL-232R USB to RS232 Cable. It is a bit more expensive then using a leveler chip and a DB-9 connector, but much more <ins class="diffchange diffchange-inline">convenient</ins>. You can read more about this cable and the alternative option [http://hades.mech.northwestern.edu/wiki/index.php/PIC_RS232 here]. To learn more about serial communication between a PC and PIC, see [http://hades.mech.northwestern.edu/wiki/index.php/Serial_communication_with_Matlab this page].</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
</table>BrettPihlhttps://hades.mech.northwestern.edu//index.php?title=Intelligent_Oscillation_Controller&diff=8394&oldid=prevBrettPihl: /* Circuitry */2008-03-20T23:19:18Z<p><span dir="auto"><span class="autocomment">Circuitry</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:19, 20 March 2008</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 43:</td>
<td colspan="2" class="diff-lineno">Line 43:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>[[Image:ampoutput |thumb|150px|right| Amplifier Output and Power]]</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>[[Image:ampoutput |thumb|150px|right| Amplifier Output and Power]]</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>The main elements of the circuit were a PIC, DAC (<del class="diffchange diffchange-inline">[</del>[http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital-to-Analog converter<del class="diffchange diffchange-inline">]</del>]) and accelerometer. The PIC would store a discretized sine waveform with integer values from 0-255. It would then output a function of this sine wave (our control signal) to the DAC. The analog signal output from the DAC would be sent to the amplifier, which would then power the speaker. The accelerometer on the mass would feedback the actual acceleration profile of the mass back to MATLAB. MATLAB would then recompute the next control signal and repeat the cycle until the mass was moving with the desired acceleration profile.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>The main elements of the circuit were a PIC, DAC ([http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital-to-Analog converter]) and accelerometer. The PIC would store a discretized sine waveform with integer values from 0-255. It would then output a function of this sine wave (our control signal) to the DAC. The analog signal output from the DAC would be sent to the amplifier, which would then power the speaker. The accelerometer on the mass would feedback the actual acceleration profile of the mass back to MATLAB. MATLAB would then recompute the next control signal and repeat the cycle until the mass was moving with the desired acceleration profile.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Our circuit diagram is shown below. Included this diagram is a 24FC515 EEPROM chip ([http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf 24FC515 Data Sheet]). This is an optional component in the circuit, the 512 KB of memory could be used to store data to later be retrieved and processed by MATLAB. We found this to be unnecessary in our experimentation. </div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Our circuit diagram is shown below. Included this diagram is a 24FC515 EEPROM chip ([http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf 24FC515 Data Sheet]). This is an optional component in the circuit, the 512 KB of memory could be used to store data to later be retrieved and processed by MATLAB. We found this to be unnecessary in our experimentation. </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply (<del class="diffchange diffchange-inline">[</del>[http://www.emtel.com/product-p/61-emv15012v.htm Emtel EMV15012v<del class="diffchange diffchange-inline">]</del>]). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply ([http://www.emtel.com/product-p/61-emv15012v.htm Emtel EMV15012v]). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>We used a surface mount LIS2L02AS4 accelerometer. We set pins 9, 11, and 13 LOW to give us a 2g resolution. These chips read acceleration in 2 dimensions, we used the X-direction (pin 10) read by pin 02/RC0 on the PIC. You can read more about accelerometers<del class="diffchange diffchange-inline">([</del>[http://hades.mech.northwestern.edu/wiki/index.php/Accelerometers here]<del class="diffchange diffchange-inline">])</del>.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>We used a surface mount LIS2L02AS4 accelerometer. We set pins 9, 11, and 13 LOW to give us a 2g resolution. These chips read acceleration in 2 dimensions, we used the X-direction (pin 10) read by pin 02/RC0 on the PIC. You can read more about accelerometers[http://hades.mech.northwestern.edu/wiki/index.php/Accelerometers here].</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Serial communication between the PIC and MATLAB was accomplished by using a FTDIChip TTL-232R USB to RS232 Cable. It is a bit more expensive then using a leveler chip and a DB-9 connector, but much more convienient. You can read more about this cable and the alternative option <del class="diffchange diffchange-inline">([</del>[http://hades.mech.northwestern.edu/wiki/index.php/PIC_RS232 here]<del class="diffchange diffchange-inline">])</del>. To learn more about serial communication between a PC and PIC, see <del class="diffchange diffchange-inline">([</del>[http://hades.mech.northwestern.edu/wiki/index.php/Serial_communication_with_Matlab this page]<del class="diffchange diffchange-inline">])</del>.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Serial communication between the PIC and MATLAB was accomplished by using a FTDIChip TTL-232R USB to RS232 Cable. It is a bit more expensive then using a leveler chip and a DB-9 connector, but much more convienient. You can read more about this cable and the alternative option [http://hades.mech.northwestern.edu/wiki/index.php/PIC_RS232 here]. To learn more about serial communication between a PC and PIC, see [http://hades.mech.northwestern.edu/wiki/index.php/Serial_communication_with_Matlab this page].</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
</table>BrettPihlhttps://hades.mech.northwestern.edu//index.php?title=Intelligent_Oscillation_Controller&diff=8393&oldid=prevBrettPihl: /* Circuitry */2008-03-20T23:18:20Z<p><span dir="auto"><span class="autocomment">Circuitry</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:18, 20 March 2008</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 45:</td>
<td colspan="2" class="diff-lineno">Line 45:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The main elements of the circuit were a PIC, DAC ([[http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital-to-Analog converter]]) and accelerometer. The PIC would store a discretized sine waveform with integer values from 0-255. It would then output a function of this sine wave (our control signal) to the DAC. The analog signal output from the DAC would be sent to the amplifier, which would then power the speaker. The accelerometer on the mass would feedback the actual acceleration profile of the mass back to MATLAB. MATLAB would then recompute the next control signal and repeat the cycle until the mass was moving with the desired acceleration profile.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The main elements of the circuit were a PIC, DAC ([[http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital-to-Analog converter]]) and accelerometer. The PIC would store a discretized sine waveform with integer values from 0-255. It would then output a function of this sine wave (our control signal) to the DAC. The analog signal output from the DAC would be sent to the amplifier, which would then power the speaker. The accelerometer on the mass would feedback the actual acceleration profile of the mass back to MATLAB. MATLAB would then recompute the next control signal and repeat the cycle until the mass was moving with the desired acceleration profile.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Our circuit diagram is shown below. Included this diagram is a 24FC515 EEPROM chip (<del class="diffchange diffchange-inline">[</del>[http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf 24FC515 Data Sheet<del class="diffchange diffchange-inline">]</del>]). This is an optional component in the circuit, the 512 KB of memory could be used to store data to later be retrieved and processed by MATLAB. We found this to be unnecessary in our experimentation. </div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Our circuit diagram is shown below. Included this diagram is a 24FC515 EEPROM chip ([http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf 24FC515 Data Sheet]). This is an optional component in the circuit, the 512 KB of memory could be used to store data to later be retrieved and processed by MATLAB. We found this to be unnecessary in our experimentation. </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply ([[http://www.emtel.com/product-p/61-emv15012v.htm Emtel EMV15012v]]). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply ([[http://www.emtel.com/product-p/61-emv15012v.htm Emtel EMV15012v]]). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
</tr>
</table>BrettPihlhttps://hades.mech.northwestern.edu//index.php?title=Intelligent_Oscillation_Controller&diff=8392&oldid=prevBrettPihl: /* Circuitry */2008-03-20T23:17:41Z<p><span dir="auto"><span class="autocomment">Circuitry</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:17, 20 March 2008</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 43:</td>
<td colspan="2" class="diff-lineno">Line 43:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>[[Image:ampoutput |thumb|150px|right| Amplifier Output and Power]]</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>[[Image:ampoutput |thumb|150px|right| Amplifier Output and Power]]</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>The main elements of the circuit were a PIC, DAC ([[http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital-to-Analog converter]]) and accelerometer. The PIC would store a discretized sine waveform with integer values from 0-255. It would then output a function of this sine wave (our control signal) to the DAC. The analog signal output from the DAC would be sent to the amplifier, which would then power the speaker. The accelerometer on the mass would feedback the actual acceleration profile of the mass back to <del class="diffchange diffchange-inline">Matlab</del>. <del class="diffchange diffchange-inline">Matlab</del> would then recompute the next control signal and repeat the cycle until the mass was moving with the desired acceleration profile.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>The main elements of the circuit were a PIC, DAC ([[http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital-to-Analog converter]]) and accelerometer. The PIC would store a discretized sine waveform with integer values from 0-255. It would then output a function of this sine wave (our control signal) to the DAC. The analog signal output from the DAC would be sent to the amplifier, which would then power the speaker. The accelerometer on the mass would feedback the actual acceleration profile of the mass back to <ins class="diffchange diffchange-inline">MATLAB</ins>. <ins class="diffchange diffchange-inline">MATLAB</ins> would then recompute the next control signal and repeat the cycle until the mass was moving with the desired acceleration profile.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>Our circuit diagram is shown below. Included this diagram is a 24FC515 EEPROM chip ([[http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf 24FC515 Data Sheet]]). This is an optional component in the circuit, the 512 KB of memory could be used to store data to later be retrieved and processed by MATLAB. We found this to be unnecessary in our experimentation. </div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>Our circuit diagram is shown below. Included this diagram is a 24FC515 EEPROM chip ([[http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf 24FC515 Data Sheet]]). This is an optional component in the circuit, the 512 KB of memory could be used to store data to later be retrieved and processed by MATLAB. We found this to be unnecessary in our experimentation. </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply (http://www.emtel.com/product-p/61-emv15012v.htm). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply (<ins class="diffchange diffchange-inline">[[</ins>http://www.emtel.com/product-p/61-emv15012v.htm<ins class="diffchange diffchange-inline"> Emtel EMV15012v]]</ins>). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>We used a surface mount LIS2L02AS4 accelerometer. We set pins 9, 11, and 13 LOW to give us a 2g resolution. These chips read acceleration in 2 dimensions, we used the X-direction (pin 10) read by pin 02/RC0 on the PIC. You can read more about accelerometers<del class="diffchange diffchange-inline"> here: </del>http://hades.mech.northwestern.edu/wiki/index.php/Accelerometers.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>We used a surface mount LIS2L02AS4 accelerometer. We set pins 9, 11, and 13 LOW to give us a 2g resolution. These chips read acceleration in 2 dimensions, we used the X-direction (pin 10) read by pin 02/RC0 on the PIC. You can read more about accelerometers<ins class="diffchange diffchange-inline">([[</ins>http://hades.mech.northwestern.edu/wiki/index.php/Accelerometers<ins class="diffchange diffchange-inline"> here]])</ins>.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Serial communication between the PIC and MATLAB was accomplished by using a FTDIChip TTL-232R USB to RS232 Cable. It is a bit more expensive then using a leveler chip and a DB-9 connector, but much more convienient. You can read more about this cable and the alternative option <del class="diffchange diffchange-inline">here: </del>http://hades.mech.northwestern.edu/wiki/index.php/PIC_RS232. To learn more about serial communication between a PC and PIC, see <del class="diffchange diffchange-inline">this page: </del>http://hades.mech.northwestern.edu/wiki/index.php/Serial_communication_with_Matlab.</div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Serial communication between the PIC and MATLAB was accomplished by using a FTDIChip TTL-232R USB to RS232 Cable. It is a bit more expensive then using a leveler chip and a DB-9 connector, but much more convienient. You can read more about this cable and the alternative option <ins class="diffchange diffchange-inline">([[</ins>http://hades.mech.northwestern.edu/wiki/index.php/PIC_RS232<ins class="diffchange diffchange-inline"> here]])</ins>. To learn more about serial communication between a PC and PIC, see <ins class="diffchange diffchange-inline">([[</ins>http://hades.mech.northwestern.edu/wiki/index.php/Serial_communication_with_Matlab<ins class="diffchange diffchange-inline"> this page]])</ins>.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
</table>BrettPihlhttps://hades.mech.northwestern.edu//index.php?title=Intelligent_Oscillation_Controller&diff=8387&oldid=prevBrettPihl: /* Circuitry */2008-03-20T23:14:46Z<p><span dir="auto"><span class="autocomment">Circuitry</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:14, 20 March 2008</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 45:</td>
<td colspan="2" class="diff-lineno">Line 45:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The main elements of the circuit were a PIC, DAC ([[http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital-to-Analog converter]]) and accelerometer. The PIC would store a discretized sine waveform with integer values from 0-255. It would then output a function of this sine wave (our control signal) to the DAC. The analog signal output from the DAC would be sent to the amplifier, which would then power the speaker. The accelerometer on the mass would feedback the actual acceleration profile of the mass back to Matlab. Matlab would then recompute the next control signal and repeat the cycle until the mass was moving with the desired acceleration profile.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The main elements of the circuit were a PIC, DAC ([[http://hades.mech.northwestern.edu/wiki/index.php/PIC18F4520:_Serial_Digital-to-Analog_Conversion Digital-to-Analog converter]]) and accelerometer. The PIC would store a discretized sine waveform with integer values from 0-255. It would then output a function of this sine wave (our control signal) to the DAC. The analog signal output from the DAC would be sent to the amplifier, which would then power the speaker. The accelerometer on the mass would feedback the actual acceleration profile of the mass back to Matlab. Matlab would then recompute the next control signal and repeat the cycle until the mass was moving with the desired acceleration profile.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td class="diff-deletedline diff-side-deleted"><div>Our circuit diagram is shown below. Included this diagram is a 24FC515 EEPROM chip (http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf). This is an optional component in the circuit, the 512 KB of memory could be used to store data to later be retrieved and processed by MATLAB. We found this to be unnecessary in our experimentation. </div></td>
<td class="diff-marker" data-marker="+"></td>
<td class="diff-addedline diff-side-added"><div>Our circuit diagram is shown below. Included this diagram is a 24FC515 EEPROM chip (<ins class="diffchange diffchange-inline">[[</ins>http://ww1.microchip.com/downloads/en/devicedoc/21673E.pdf<ins class="diffchange diffchange-inline"> 24FC515 Data Sheet]]</ins>). This is an optional component in the circuit, the 512 KB of memory could be used to store data to later be retrieved and processed by MATLAB. We found this to be unnecessary in our experimentation. </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><br /></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td class="diff-context diff-side-deleted"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply (http://www.emtel.com/product-p/61-emv15012v.htm). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
<td class="diff-marker"></td>
<td class="diff-context diff-side-added"><div>The speaker car amplifier must be powered by a 12 volt DC source, to accomplish this we used an Emtel EMV15012v power supply (http://www.emtel.com/product-p/61-emv15012v.htm). A picture of the wiring terminals is shown in a figure at the right. When powering your amplifier, the "REMOTE" terminal must be powered high with 12 V for the amplifier to remain on. We included a switch here to be able to power on our amplifier separately from the power supply. Using the left low impedance input on the amplifier means the output will be on the CH1/L terminals. Using the low impedance inputs also requires an RCA cable. We had to cut this cable in half and strip the insulation coating in order to access the positive and negative terminals of the RCA jack. The outside ring is negative, and the inside hole is positive. A picture of the amplifier input is shown to the right.</div></td>
</tr>
</table>BrettPihl