3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Getting status through serial monitor

Getting status through serial monitor
 I just got my Arduino starter kit hours ago and i began experimenting with it. This instructable is a good beginner tutorial that will teach you how to:

a. light up an LED
b. light up a RGB LED and use it's three colors
c. get information about what's happening in your arduino through the serial monitor

Of course, lighting up an LED is easy. There's the blink tutorial on how to blink an LED, but I modified it a little bit and jumped to lighting up your RBG LED and get the status of the Arduino through the serial monitor. Well, the arduino won't really tell you anything, but we'll tell it what to tell to us about what we told it to do. Basically, tell us what is the current color of the RBG LED.

This should help you:

a. be able to create status messages on your arduino to be view on the serial monitor so that you know what's happening
b. help you understand why sometimes we need to know what's happening

In this instructable, all you need is available in your Arduino Starter kit from Sparkfun.com. But here's a list:

1. RBG LED
2. 4 wires, preferably 1 black, 1 red, 1 blue, and 1 green
3. a 10kOhm resistor (optional)
4. an Arduino board, the one I used is the Arduino Duemilanove board with ATMEGA328
5. breadboard, or similar
 
Remove these adsRemove these ads by Signing Up
 

Step 1Wiring

Wiring
«
  • diagram.jpg
  • IMG_0982.JPG
  • IMG_0984.JPG
  • IMG_0986.JPG
  • IMG_0987.JPG
 Ok let's setup our circuit. It's just a simple circuit so I don't think it will be that hard. I've included really macro/close-up pictures so that you can properly wire them. Oh, and I've used Red wire for the red leg which connects to pin 6, green wire for the green leg which connects to pin 3, blue wire for the blue leg which connects to pin 5, and a black wire which connects to the GND leg and pin of the LED and board, respectively.

I've added a 10kOhm resistor so that I can dim the LED a little bit because without that, the LED shines really bright. I mean, REALLY bright. Although, if you choose not to put a resistor, that's fine. It will still work.
« Previous StepDownload PDFView All StepsNext Step »
6 comments
Feb 19, 2011. 11:26 PMLukeyB says:
Nicely done mate!

I'll have to go grab all the bits and bobs to put it together, i'll post in the next week or so (or when i can find time) and let you know how i go!

The thought is using this value to alter a colour scheme on a flash based (only idea at the moment) frontend, and alter the value from the frontend to reflect on the LED's... I'm kinda hobbling together pieces of tutorials from left right and centre, so i'll keep ya posted mate!

Thanks again for your help, and prompt reply!
Feb 20, 2011. 2:46 AMLukeyB says:
Stumbled across this earlier, might help a bit mate!

http://tv.adobe.com/watch/adc-presents/physical-computing-with-arduino-rgb-led/

Have a browse through the list of episodes, there's also a bit about wireless control. I haven't tried them yet but the clip seems pretty well thought through and concise, may be handy!
Feb 19, 2011. 9:25 PMLukeyB says:
I was wondering if you could report back... Do you know of any way I may be able to retrieve RGB (or hex) values rather then just the solid light?

I am using a analog control to adjust the RGB values and would like to find a way to reflect that value in an application?

At a guess it might have something to do with trying to reflect the PW modulations, turning it from a percentage value back to a range from 255?

I haven't had much of a dabble with all this yet, just browsing about and doing some learning, so if I'm off track please correct me! Any thoughts would be appreciated.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
1
Followers
1
Author:zaghy2zy