Go Down

Topic: audio to relay (Read 627 times) previous topic - next topic

dennis010

hello, i'm new with arduino and i having a lot of fun. I'm  playing with audio and light.

i use this code in this topic: http://arduino.cc/forum/index.php?topic=8590.0

but now i whant to connect a relaybord instead of leds, but what do i change in de code that here is no pwm?

i only whant to make a pin HIGH or LOW and not dimmable because of the relays

DVDdoug

Simply use digitalWrite() instead of analogWrite().  And, take-out any code that sets the "analog" PWM values.

dennis010

Thank you!

only the output pins are now (opposing) high when there is no volume and if there is volume then the pins are low
how do i change that?

already many thanks

dennis010

i figured it out, it whas a problem in my relay bord.

Go Up