Pages: [1]   Go Down
Author Topic: audio to relay  (Read 436 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Edison Member
*
Karma: 22
Posts: 1164
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: