Show Posts
Pages: [1] 2
1  Using Arduino / LEDs and Multiplexing / Re: Control 3x3 RGB LED's with transistors on: December 15, 2013, 02:39:39 pm
It looks like you may have a few problems, but at the very least, pin 2 of the LED has to be connected or nothing will happen.

And read about how to hook up transistors to drive LEDS. Maybe this:
http://www.sqlskills.com/blogs/paulselec/post/arduino-figuring-out-transistors-and-associated-resistors.aspx

Oh yeah, sorry i just forgot it in this picture. On my breadboard pin2 of the led is connected to ground of cause, because it is an common cathode rgb led.
2  Using Arduino / LEDs and Multiplexing / Control 3x3 RGB LED's with transistors on: December 15, 2013, 10:09:50 am
Hello, i got 9 RGB Leds and i'd like to control them with my arduino. I do not want to control them seperately, but i want to have them all the same color at the same time.  So for this i need 3 transistors and 3 digital pins right ? I tried this: (see attached picture). But it is not working. In this example i just hooked up 1 rgb led, not 3x3 to keep it simple, but it should be the same. Anyone an idea why my circuit in this picture is not working ?

Thanks a lot.
3  Using Arduino / Networking, Protocols, and Devices / Re: Showing Radar on webserver on: December 13, 2013, 03:53:48 am
Thank your for this advice ! Could it be possible if i got a processing sketch to show a radar from the arduino sensor values, to embed this process sketch in my arduino webserver ? I think i heard a while ago something about Processing.js (javascript port).

Do you know if something like this is possible ?

Thanks, David
4  Using Arduino / Networking, Protocols, and Devices / Showing Radar on webserver on: December 12, 2013, 05:22:26 am
Hello smiley

I saw this and multiple other videos and i'd like to make such a project on my own. Instead of showing the radar on the computer through a processing sketch, i'd like to show the radar on my arduino webserver, which is setup through the ethernet shield. So i know how to read the data from the sensor etc, and how to drive the servo etc, but how is it possible to show the read values in a radar animation on my arduino website ? I am not a css, javascript pro so i am not 100% sure how to visualize this data on my webserver. Somebody here who can give me a hint or knows some resources where i can get information on how to do this ?

Best Regards,
David
5  Using Arduino / Networking, Protocols, and Devices / Re: Stream webcam on arduino webserver on: December 11, 2013, 03:03:16 am
You can generate an arduino server web page that contains a video stream from another video server. 

Yeah i probably will go with that. Control the servos via arduino to pan/tilt the camera. Plug in the Camera via usb to pc and stream the picture from pc to a video service. Show the stream on my arduino with an embbeded frame.

I think i will try that. Thanks for your answers smiley
6  Using Arduino / Networking, Protocols, and Devices / Stream webcam on arduino webserver on: December 10, 2013, 10:02:38 am
Hello,

i hope i'm posting this post to the correct subforum. But since this one involves video, ethernet (networking), and propably a lot more i'm not 100% sure where to put it. Anyway... I got an Arduino setup as a webserver thanks to the ethernet shield. Now i'm trying to show the picture of a webcam i found a few days ago on this server. Is this even possible ? I think i can't add the webcam to my arduino directly since the UNO won't have enough ram etc to process this. But is it possible to hook up the webcam via usb to my pc or mac and then show the picture/video on my arduino webserver ?

I greatly appreciate any answer which can help me to get an idea how to manage this project.

Thanks,
David
7  Using Arduino / Programming Questions / Re: Button on Digital Pin of Shift Register on: December 13, 2012, 10:41:11 am
ah ok, thanks for this information.
8  Using Arduino / Programming Questions / Re: Button on Digital Pin of Shift Register on: December 13, 2012, 10:36:29 am
Hm ok i thought everything should clear. But i try to describe it more in detail. I hooked up 4 shift registers like so: (example 2)
http://arduino.cc/en/Tutorial/ShiftOut.
I am using the shift registers to control 9 rgb less. For this i use the ShiftPWM Library. But this library is only for working with leds, so i cant use this library to get my button value (high or low). I hope its more understandable now ? Sorry but because i dont know how to program this i can't upload a little test sketch.
9  Using Arduino / Programming Questions / Button on Digital Pin of Shift Register on: December 13, 2012, 10:24:42 am
I got 4 Shift Registers. On Q3 of register number 4 i'd like to hook up a button and whenever the button is pressed I'd like to recognize it.
Code:
pinMode(Q3 of register 4, INPUT);
if(Q3 of register 4 == HIGH) {
}

So how can i accomplish that ? Any idea ?
Thanks
10  Using Arduino / Audio / Re: Piezo Buzzer - Win and Fail Sound on: December 12, 2012, 09:30:09 am
thanks a lot smiley
11  Using Arduino / Audio / Re: Piezo Buzzer - Win and Fail Sound on: December 12, 2012, 09:04:42 am
Hey, first of all great project ! I like the sounds very much. Do you think you could send me the melody and noteDurations array for these two sounds ?
12  Using Arduino / Audio / Piezo Buzzer - Win and Fail Sound on: December 11, 2012, 03:47:09 pm
Hey, i am searching for two sound examples for my piezo buzzer.
Currently i am using the piezo with the example from arduino
Code:
int melody[] = {
  262, 196,196, 220, 196,0, 247, 262};

// note durations: 4 = quarter note, 8 = eighth note, etc.:
int noteDurations[] = {
  4, 8, 8, 4,4,4,4,4 };

 for (int thisNote = 0; thisNote < 8; thisNote++) {
    int noteDuration = 1000/noteDurations[thisNote];
    tone(12, melody[thisNote],noteDuration);
    int pauseBetweenNotes = noteDuration * 1.30;
    delay(pauseBetweenNotes);
    noTone(12);
    }

But i am searching for a sound that underlines whether the user won or lost. But i can't find any examples for arduino/piezo sounds. So maybe you have some hints for me where i can find sounds like that for my arduino, or maybe you composed sounds like that by yourself smiley ?!

Thanks
13  Using Arduino / Programming Questions / Re: Random number for RGB Led on: December 11, 2012, 10:00:39 am
Yeah sure so my function would be something like
Code:
void randomColor(int led) {
int rand = random(0,3);
if (rand == 0) {
colorRed(led);
}
else if (rand == 1) {
colorGreen(led);
}
else if (rand == 2) {
colorBlue(led);
}
}

and then
for (int i = 0;i<ledArray.length;i++) {
randomColor(i);
}

right ?

I will try that out now.
14  Using Arduino / Programming Questions / Random number for RGB Led on: December 11, 2012, 09:50:38 am
Hey,
i have 9 RGB Led's. Each of this led should light up red, green or blue. Which color the led lights up should be randomly.
Therefore i wrote this method (which works) but i hope that you can give me a better solution:
Code:
int rand=random(0,2);
if(rand == 0) {
lightRed(led1);
}
else if (rand == 1) {
lightGreen(led1);
}
else if (rand == 2) {
lightBlue(led1);
}

int rand2=random(0,2);
if(rand2 == 0) {
lightRed(led2);
}
else if (rand2 == 1) {
lightGreen(led2);
}
else if (rand2 == 2) {
lightBlue(led2);
}
.....

int rand9 = random(0,2);
if(rand9 == 0) {
lightRed(led9);
}
else if (rand9 == 1) {
lightGreen(led9);
}
else if (rand9 == 2) {
lightBlue(led9);
}


....way to much code. There must be a more elegant solution.
Thanks for your help.
15  Using Arduino / Programming Questions / Re: ShiftPWM and Tone Problem on: December 08, 2012, 05:50:11 pm
Ah i see... thanks for the quick and easy help smiley !
Pages: [1] 2