Skip to content

Latest commit

 

History

History
124 lines (104 loc) · 5.25 KB

README.md

File metadata and controls

124 lines (104 loc) · 5.25 KB

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