Nodes Documentation

Input

  • Analog Sensor
  • Circuit Touch
  • IR Proximity
  • Light Sensor
  • Sonar
  • Squeeze Sensor

Brains

  • Converter
  • Gate
  • List
  • Randomizer
  • Sequence
  • Wave

Output

  • Buzzer
  • Continuous Servo
  • Dual Color LED
  • Key Press
  • Key Sequence
  • LED
  • Servo Motor
  • Voltage Output

Dual Color LED

Dual Color LED

Node to control Light Emitting Diodes (LEDs) With two leads and two colors. Like the 3 mm Red-Blue LEDs that comes with the Quirkbot kits. It controls LEDs connected to the Arms, Legs, and Head.

Connections

Inputs

  • light
    • Range: 0 - 1
    • Set brightness of the LED:
      0=Off
      1=Max
      0.5=Half brightness.
  • color
    • Range: 0 - 1
    • Set color mix of the LED, So for R-B LEDs:
      0=Red
      1=Blue
      0.5=Equal mix
  • place
    • Values: H, LA, LL, RA, RL
    • Choose where the LED is placed.

Example CODE

  • DualColorLED example
    • Funky Blinking Horn.

Hardware

Dual color LEDs

Comment

The 2 lead, dual color LEDs (or bi-color) is actually 2 LEDs inside one package connected in parallel but reverse from each other. So the long lead is the positive anode of red and the negative cathode from blue. The short lead is anode from blue and cathode from red.

Learn more

LEDs are everywhere! In a relatively short time the have become one of the most important technologies in todays world. Learn more about the history of LEDs are and what makes them special from other light sources: Light-emitting diode on Wikipedia.