Arduino Model Displayer With Color-Adjustable Light

45

2

This displayer combines motor, RGB light bulb, and adjustable resistors to create a displayer with light-controllable technique. The user could adjust the displaying light to fit the style of the model (act like a filter). The spinning stage is a little faster than usual, but you are able to control the speed with a button. As you can see the two photos of Luffy model, you could change its color based on the style of the model. In this case, the red light might be more suitable than the green light. The wiring process is quite complex, so you must follow the instructions. Have fun !!!

Things you will NEED:

  • 1x Arduino Leonardo/UNO/ Arduino Genuino UNO
  • 1x Arduino Breadboard
  • 1x Arduino Button
  • 1x 10k ohm resistor
  • 1x Computer
  • 1x DC Motor
  • 1x L298N H-Bridge
  • 1x USB electrical interface (Arduino specialized)
  • 1x Micro USB 2.03x Adjustable resistors
  • 1x RGB LED
  • Generic Wires
  • Hot Glue
  • Tape
  • Cardboard
  • Scissors/Box Cutter

Step 1: Copy and Paste the Code Below

This displayer is most confusing at the wiring part, so there will not be much concern in this step. Paste the codes on to your Arduino sketch window.

https://create.arduino.cc/editor/kingboyleo/28b906...

void setup()

{ pinMode( 5 , OUTPUT); //This is for the output of the motor.//

pinMode( 3 , OUTPUT); //Same above//

}

void loop()

{ analogWrite(9 , ( analogRead( A2 ) / 4.0 )); //These two lines below including this line are setting the control from the resistor to the RGB LED, and to create a extraordinary LED that could alter of its color.//

analogWrite(10 , ( analogRead( A1 ) / 4.0 ));

analogWrite(11 , ( analogRead( A0 ) / 4.0 ));

digitalWrite( 5 , HIGH ); //These two lines set the rotating direction of the motor, but not to control the rotating speed of the motor.//

digitalWrite( 3 , LOW );

}

Step 2: Wiring

Attach the materials (Arduino Board, breadboard, L298N, button, USB electrical interface, wires) as shown above. This may take you up to an hour.

Step 3: Almost There...

Till this point, make sure that:

  • Two USB electrical interfaces are connected to the power
  • RGB light should change its color when you rotate the adjustable resistors
  • The motor should operate (start spinning quickly) when you press the button

Finally, here comes the most... creative and toughest part :)

Step 4: Structure-Building

This part is the most complex stage, but the structure of the displayer is partially custom-made. During this stage, using scissors or box cutter to cut cardboard into components of the structure and using hot glue to them together are extremely recommended. There are a few parts that are critical for its function or appearance:

  • The RGB LED should be placed in front of the displayer.
  • The button should be inserted anywhere that is convenient to be pressed on.
  • The three resistors should be placed outside and allow the user to rotate them without any trouble.
  • The plate that is attached to the motor to hold the model should be fixed on the motor in case of losing balance.
  • The two USB electrical interface should be connected to the external source (ex. portable charger)

After checking all the steps above and making sure all the points are fine, you are good to go! Don't forget to click the "like" and feel free to leave some comments so that I would know what to improve the next time.

Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Classroom Science Contest

      Classroom Science Contest
    • Pets Challenge

      Pets Challenge

    2 Discussions

    0
    None
    leo0920kode1303

    Reply 8 days ago

    I found this box extremely suitable for me to make the displayer ;)