author
3Instructables13,687Views13CommentsOrlando, FloridaJoined January 11th, 2015
I am a student of Electronics and Communication Engineering. Who loves Travelling, Nature and above all ELECTRONICS and SOLDERING :p. Want to make a breakthrough in my feild of study.

Achievements

10K+ Views Earned a bronze medal
  • DivasG commented on DivasG's instructable Control RGB LED With Arduino and Processing.2 years ago
    Control RGB LED With Arduino and Processing.

    Hey, sorry for late reply, heavy college work going on these days. Okay so it seems that mine was Common cathode LED so, it turns out that your anode should be connected to +5V from arduino. Check this and if it still does not work then send me the schematic of the connections you made.This is a great site to make circuit/schematics online.https://circuits.io/

    And one more thing that yours is common anode so our code will change we have to send the value 255-(the value from pixel) to each "R","G" and "B" pins.See this clearly. We have a function named "outputColour" and its like this:void outputColour(int red, int green, int blue) {analogWrite(redPin, red);analogWrite(bluePin, blue);analogWrite(greenPin, green);}okay now here we have to change the scenario a little bit. As you can see it's sending values ranging from 0-255 which is for common cathode as the three RGB legs need to have +ve voltage to glow but, in common anode, we need to first connect our Led's anode to +5V from Arduino and change the function "outputColour" like this:void outputColour(int red, int green, int blue) {analogWrite...

    see more »

    And one more thing that yours is common anode so our code will change we have to send the value 255-(the value from pixel) to each "R","G" and "B" pins.See this clearly. We have a function named "outputColour" and its like this:void outputColour(int red, int green, int blue) {analogWrite(redPin, red);analogWrite(bluePin, blue);analogWrite(greenPin, green);}okay now here we have to change the scenario a little bit. As you can see it's sending values ranging from 0-255 which is for common cathode as the three RGB legs need to have +ve voltage to glow but, in common anode, we need to first connect our Led's anode to +5V from Arduino and change the function "outputColour" like this:void outputColour(int red, int green, int blue) {analogWrite(redPin, 255-red);analogWrite(bluePin, 255-blue);analogWrite(greenPin, 255-green);}Here what happens is suppose the colour value from the pixel of pic is of green i.e. (RGB = 0, 255, 0) okay. Now when we have to send this value to the led via our "outputColour" function we need to change it that is why because it needs 0, -ve values to glow.So, its 0, 255, 0 after going to the function "outputColour" it will be255-red = 255-0 = 255255-green = 255-255 = 0255-blue = 255-0 = 255it reverses the values so now red and blue will be dim and green will glow. I hope you get it. just change the outputColour function as I have told above and it will start working. If you still don't get it or it won't work or it works and you still need more clarification on this. FEEL FREE TO POST ANOTHER COMMENT.a bit long comment this on is.Always happy to help:)

    View Instructable »
  • DivasG commented on geo bruce's instructable Arduino Solar Tracker2 years ago
    Arduino Solar Tracker

    How did you aligned the servo with sun/lightsource at first?

    View Instructable »
  • DivasG commented on DivasG's instructable Control RGB LED With Arduino and Processing.2 years ago
    Control RGB LED With Arduino and Processing.

    Well, the processing code is alright because image opens. Now the problem could be in serial communication or maybe wiring as you said that you checked it 3 times. But, keep one thing in mind to check if your RGB led is a common anode or common cathode.Check these two things and comment back if you still got a problem, then we'll solve it together.

    View Instructable »
  • How to use iOS devices as a monitor of Raspberry Pi

    Nice thing I liked it very much. But, is it possible to do this between Android and iPad, I mean displaying android on iPad

    View Instructable »