GithubHelp home page GithubHelp logo

drumsaber's Introduction

Arduino Test

The long-term plan is to use an M5 Atom ESP32 to control the lighting, but initial testing was done on an Arduino.

Parts List

  • Arduino Uno R3
  • Piezo Vibration Sensor - Small Horizontal
  • APA102 4-wire LEDs
  • 1MΩ and 10kΩ resistors
  • DC Barrel Jack Adapters - Male & Female
  • 5+V power supply
    • When powered through the barrel jack the Arduino Uno requires a power supply that gives 7.5V ideally, up to 9V or 12V. However, the APA102 light strip should not be fed much more than 5V. They way I've chosen to share the power between Arduino and lights with a single power supply works acceptably if the power supply is set to 5.5V or 6V, underpowering the Uno and overpowering the lights, but so far so good.
    • Switching from Arduino Uno to M5 Atom will lower the power requirements back down to a shared 5V.

Connections

schematic diagram

  1. Connect pin 13 of the Arduino to the clock input for the light strip
  2. Connect pin 11 of the Arduino to the data input for the light strip
  3. Connect the 1MΩ resistor in parallel with the piezo sensor
  4. Connect a ground from the Arduino to the negative terminal for the piezo sensor
  5. Connect the positive terminal for the piezo sensor in series with the 10kΩ resistor to the A0 analog pin of the Arduino
  6. Connect the positive and negative of the power supply to both a barrel connector for the Arduino and the power feed to the lights
    • Note: if you choose to power the lights and Arduino separately, note that they must share a common ground for the lights to receive proper signals. Wiring a ground pin from the Arduino to the light's ground should suffice.

drumsaber's People

Contributors

phrogz avatar

Stargazers

 avatar  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.