• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
Maker Hacks

Maker Hacks

Ideas, news & tutorials for makers and hackers – Arduino/Raspberry Pi, 3D printing, robotics, laser cutting, and more

  • Home
  • About
  • 3D Printing
  • Laser Cutting
  • YouTube
  • Free Arduino Course
  • Recommendations
  • Contact

Day 5: Lesson 03 – RGB LED Color-Picker

You are here: Home / 30 Days to Arduino Programming Course / 30 Days to Arduino Lessons / Day 5: Lesson 03 – RGB LED Color-Picker

Behind the scenes, Arduino borrowed heavily from another project called Processing.

Processing was a visual-art-coding platform developed in Java by Ben Fry and Casey Reas, but it has evolved into far more than that today.

The Arduino project used the Processing code as a basis for the Arduino programming environment so it will appear quite familiar as you learn it.

We can use Processing as a tool to talk to Arduino!

Grab the software from processing.org – it’s free.

In this example, we evolve the previous user-input example and will set the color of the RGB using a visual user interface, rather than by inputting text.

We will set the color using sliders, then press a key on the keyboard to send the color to the Arduino over the USB serial. 

On the Arduino side we will wait for the color information sent as a comma-delimited list.

To get the correct individual values, we do some tricks on both sides. Look out for those in the code!

Arduino and Processing Code

  • 3D Printing
  • CNC
  • Hardware
  • Laser Cutting
  • News
  • Retro Computing
  • Software

amiga amos arduino basic programming budget buying cad cnc commodore corexy c programming creality crypto doctor who emulation esp32 esp8266 filament fpga glowforge Hacks Ideas kids lighting linux Makes making Monoprice Parts pc props prusa python raspberry pi ratrig resin Reviews robots software sounds technology tips upgrades wanhao xtool

.

Maker Hacks Blog Copyright © 2023 · All Rights Reserved · Powered by Mai Theme