GithubHelp home page GithubHelp logo

peanutnore / guitarduino Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 1.0 190 KB

Software for running Arduino based guitar effects. Supports ATMega 168/328 based Arduinos using onboard ADC and resistor ladder DAC on PORTB. The schematic is included for the board used to develop these sketches.

License: GNU General Public License v3.0

C++ 100.00%

guitarduino's Introduction

guitarduino

Software for running Arduino based guitar effects. Free software licensed under GPL.

guitarduino-mode-switching is the main release intended to run on the matching hardware to take advantage of the mode switches and provide 16 different effect modes.

Supports ATMega 168/328 based Arduinos using onboard ADC and resistor ladder DAC on PORTB. The schematic is included for the board used to develop these sketches and can be viewed / edited in Eagle 6 or higher. This instructable offers a good explanation of the resistor ladder DAC used: http://www.instructables.com/id/Arduino-Audio-Output/ NOTE: In the instructable PORTD is used for an 8 bit DAC. Even with 1% resistors it's impossible to achieve an accurate 8 bit resistor ladder DAC. In this project PORTB is used, which offers 6 pins (the 2 highest bits are used for the clock crystal on the ATMega chip. It is possible to achieve good accuracy for a 6 bit R/2R resistor ladder DAC using common 5% resistors, and this project is going for simplicity wherever possible.

guitarduino's People

Contributors

peanutnore avatar

Stargazers

Michael F. Weinberg avatar  avatar Guy avatar Frédéric THIERRY avatar Denis Kobozev avatar Daniel Pfile avatar Charlie avatar Brandon Powell avatar Stefaney Roberts avatar Gonzalo santiago martinez avatar mattl920@gmail.com avatar Mitchell Barry avatar Andrii Dmytrenko avatar Andrew Halliwell avatar  avatar

Watchers

Daniel Pfile avatar  avatar Kevin avatar

Forkers

p3po

guitarduino's Issues

Update processing logic to bitwise operations to improve speed

-core and -crush have been updated to use bitwise operations to map the 10 bit input to the 6 bit output. Validated in -speed-test. Other modules still use the map() function. For maximum sampling rate complex functions should be avoided. If a low sampling rate is desired map() may be part of that but better methods should be found for frequency doubling, amplification, etc.

Include schematic as image

Might it be possible to include the schematic as an image, for those of us without access to Eagle? Thanks!

Low pass and high pass filter modes do not produce output

Issue present in guitarduino-mode-switching

The LPF and HPF modes do not currently work. Possible causes might include the processing of each sample taking too long to run at audio frequencies, rendering output inaudible. Try using serial debugging to determine if this is the case:

//in setup:
unsigned long startTime = 0;
unsigned long endTime = 0;
unsigned long duration = 0;

//in loop:
startTime = micros();
//loop code
endTime = micros();
duration = endTime - startTime;
Serial.print("Duration in uS: ");
Serial.println(duration);
Serial.println();
delay(500);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.