This shows you the differences between two versions of the page.
pm:prj2022:sgherman:guitar_pedal [2022/06/02 01:17] cristina.grigore00 [Setup] |
pm:prj2022:sgherman:guitar_pedal [2022/06/02 01:52] (current) cristina.grigore00 [Bibliografie/Resurse] |
||
---|---|---|---|
Line 52: | Line 52: | ||
===== Setup ===== | ===== Setup ===== | ||
- | In etapa de setup, configurez Timer-ul 0 si Timer-ul 2 pe fastPWM 8-bit inverting, prescaler 1. Configurez ADC-ul: tensiunea de referinta la 1.1V si prescaler-ul la 32. | + | In etapa de setup, configurez Timer-ul 0 si Timer-ul 2 pe fastPWM 8-bit inverting, prescaler 2. Configurez ADC-ul: tensiunea de referinta la 1.1V si prescaler-ul la 32. |
<code> | <code> | ||
void waveformGenerationMode(int pin) { | void waveformGenerationMode(int pin) { | ||
Line 74: | Line 74: | ||
analogReference(INTERNAL); | analogReference(INTERNAL); | ||
//set the ADC's prescaler to a low value (32) | //set the ADC's prescaler to a low value (32) | ||
- | analogPrescale(analogPrescale32); | + | ADCSRA &= ~B111; // clear analog prescale |
+ | ADCSRA |= B101; | ||
</code> | </code> | ||
===== Input Switch ===== | ===== Input Switch ===== | ||
Line 128: | Line 129: | ||
===== Download ===== | ===== Download ===== | ||
- | <note tip> | + | |
- | </note> | + | {{:pm:prj2022:sgherman:arduino_guitar_pedal.zip|}} |
===== Jurnal ===== | ===== Jurnal ===== | ||
Line 140: | Line 142: | ||
<note> | <note> | ||
- | [[https://www.instructables.com/Arduino-Guitar-Pedal/]] | + | [[https://www.instructables.com/Arduino-Guitar-Pedal/]]\\ [[https://www.electrosmash.com/pedalshield-uno]] |
- | [[https://www.electrosmash.com/pedalshield-uno]] | + | |
</note> | </note> | ||
- | <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | + | {{:pm:prj2022:sgherman:arduino_guitar_pedal_1_.pdf|}} |