Giter VIP home page Giter VIP logo

arduino-led's Introduction

Arduino LED Control

Arduino code for controlling LEDs:
See working animation code on a Paramotor Frame (youtube video)

Paramotor LED Lights Paramotor LED Lights Purple Paramotor LED Lights Flight Halloween Themed Home LED Lights


How to Program the Arduino Boards

Prerequisites

  • Install Arduino IDE
  • Open the IDE then click Tools -> Manage Libraries... -> Search for and install FastLED by Daniel Garcia

Make sure you can upload code in Arduino IDE first

  • Open the IDE then click File -> Open... (Browse to the arduino-led.ino)
  • Connect your arduino via USB
  • Tools -> Board -> (Choose your board, this was coded for the Arduino Nano)
  • Tools -> Programmer -> Choose AVRISP mkII for the Nano
  • Tools -> Port -> (Chose the COM port of the arduino)
  • CLick the Upload -> Icon (Top left corner) to upload the code to the Arduino Board.

With VSCode

VSCode is more friendly to code in, so after setting up Arduino IDE you can switch over.

  • Open VSCode then click File -> Open Folder... (Browse to this top level folder))
  • Install the workspace recommended extensions (VSCode should ask). They are defined here for reference
  • Connect your arduino via USB
  • Change the paths in c_cpp_properties.json appropriate for your system.
  • If needed change values in arduino.json. Extension will also display the Port, Programmer and Board at the bottom of the screen to switch between.
  • Open arduino-led.ino
  • Click the Upload Icon (Top right corner) to upload the code to the Arduino Board.

Changing Colors/Patterns/Code

  • Everything is done in arduino-led.ino
  • Specific LED strip presets can be imported, or not and used the default #defines for LED setup
  • Color/Patters preset selections follow after
  • General code is the rest
  • Add new bi-colors in the getBiColor() function
  • Add new animations to the activateLeds() function

Hardware/Build

Soldering

LED strips had 4 connections:

Strip Connection Arduino Pin
Ground GND (Shared)
12v VIN (Shared)
Data D6 (Output)
Data Backup D6 (Output)

Simple LED Test

5 Volt Board power: 5v circuit 12 Volt External Power 12v circuit Test LED (TM1809 chipset) Connection LED TM1809

Paramotor Strips

LED Node Soldering LED Section

PPG AC Nitro200 Wiring

Global LED array => 270 total
Purchased 2 rolls, 150 per led roll = 300 total => 30 left over

  • 3 sections
    • Left
    • Top
    • Right
  • 2 clusters per section
    • Left
    • Right
  • 3 Nodes per cluster
    • Front
    • Back
    • Side
  • 15 leds per node

Air Conception Paramotor LED WiringAir Conception LED Wiring

Resources

Arduino

FastLED

Code Ref

Color

Sim

arduino-led's People

Contributors

deniszholob avatar

Watchers

 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.