Git Product home page Git Product logo

arduino-quadlfo's Introduction

ArduinoQuadLFO

ArduinoQuadLFO uses PWM, interrupts and simple low-pass filters on output pins to create four simultaneous waveforms from an Arduino.

For each oscillator, ArduinoQuadLFO uses one analog pin and 2-3 digital pins (see pin map in source code):

  1. One analog pin connected to the center pin of a potentiometer to adjust frequency
  2. One digital pin for PWM output connected to a simple lowpass filter
  3. One digital pin input connected to a switch to increment through waveforms. This uses the Arduino internal pullup resistor
  4. One digital pin input to restart the LFO (Optional. It is floating. Active HIGH or LOW is determined in settings.h)

Additional Notes:

  • The Arduino sketch is in the Quad_LFO folder. You can copy it to your Arduino Sketches folder. Or, you can open the sketch directly from the Arduino IDE using File > Open...
  • Also included is an Excel workbook to calculate 256-byte waveforms. Sample data is copied from a wave worksheet to a sketch header file. You can add your own worksheets to the workbook to create your own waveforms.

Hardware Connections

Lowpass Filter for PWM Output Pins:

                1K
             Resistor
PWM PIN > ----/\/\/\--•------------  (LFO Output)
                      |
                      |
                     ---  100nf
                     ---  capacitor
                      |
                      |
                     GND


Frequency Potentiometer:

                     5V
                     |
                    _|_
                   |   |
ANALOG IN <------- |   |  POT (10K)
                   |   |
                    ---
                     |
                     |
                    GND
                    

Waveform Selector Button (Tact Switch):

                    |
                  -----
DIGITAL IN <------    ------ GND
                    

arduino-quadlfo's People

Contributors

robertgallup avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.