Edit: I got this to work
I have the plus end of 9.6Volts (1600 mAh) connected to the power in of the LED strip and the minus connected to the ground of my arduino. I have the Red Green and Blue channels directly connected to digital pins 9,10,11.
In the arduino code, I inverted the values send to PWM (i.e. blue = 255 - Serial.read()
and tada. It works like a charm.
Hey Royboy, maybe you can help me. I have now officially butchered your project, and it "almost" works. Now I am a completel lay person at this and I am having the trouble finding the error.
I have 9.6Volts (1600 mAh) connected to the power in of the LED strip. I have the Red Green and Blue channels directly connected to digital pins 9,10,11. The ground of the battery is connected to a ground pin in the arduino.
This setup works (and makes me feel like a butcher). I can do RGB as well as CMYK and White using simple on & off. However, when I run your code, it does respond to the screen, but in a slightly random manner. Almost as if it where ouputting inverse values. (gets bright on a white background and dark on a black one etc.) One of the things I have tried is subtrackting 20 from all the values, which, for some mysterious reason improves the result (as in, black will dimm them, white makes it bright, yellows and blues are spot on, rest is random again.)
edit: the values that processing sends out are correct. something is going wrong on the arduino end.
Any Idea why it should have this issue?
I have had problems with this particular arduino board before, I suspect it might simply be bad. On the other hand, what I am doing seems rather unrefined, though I just cant find a reason for it not to work. (not that I actually know what I am doing.)
any ideas would be apreceated.
Thanks
P.