Noob Question
As you can see on the diagram
I have 3 switches going to digi pins all works fine
But I wanted to add a buzzer to each switch (note, switches are 50meters from arduino) and one central buzzer that work for all the switches
I got some nice little 6v buzzers and one double buzzer for the center but it would seem the pull up resistors are effecting my buzzers ??
Im sure there is an obvious answer but I cant see the wood for the trees
its an ADK Mega if that makes any differance ie has build in pull ups I could use if that would help ?
it would seem the pull up resistors are effecting my buzzers ?
What pullup resistors? You do not have the internal ones enabled.
You do not show any external resistors.
Do you have just the 1 external pulldown? Or is that supposed to represent a resistor per pin?
How are the buzzers connected?
Acelliott:
I have 3 switches going to digi pins all works fine
But I wanted to add a buzzer to each switch (note, switches are 50meters from arduino) and one central buzzer that work for all the switches
I got some nice little 6v buzzers and one double buzzer for the center but it would seem the pull up resistors are effecting my buzzers ??
There are no pullup resistors in your diagram, and you are not enabling the internal ones.
There are no buzzers in your diagram
and heres the code incase that helps too:
Please put your code into code tags. Highlight the code, then click on the # icon above the editor.
Yes the switch needs to send 5v to the buzzer as well
if I make the resistors pull up I get a delayed weak buzz and if I have them bull down I get nothing,
without the resitors and Arduino the buzzer is fine
Acelliott:
Yes the switch needs to send 5v to the buzzer as well
if I make the resistors pull up I get a delayed weak buzz and if I have them bull down I get nothing,
without the resitors and Arduino the buzzer is fine
It's incredibly difficult to supply any meaningful help if you don't show us the schematic and tell us the type (or electrical characteristics) of the buzzers.
Hi, I think at this stage we need an up to date correct wiring diagram. As you say the first one was not accurate at all.
I would have reservations over running a buzzer on the arduino input, how much electrical noise do these buzzers make?
Also are all these buzzers in the one location, why do you need a buzzer that works whenever any button is pushed as well as a buzzer for any specific button?
This is how it should be without buzzers
but I want a buzzer on each switch an a load one in the center that works for all three switches
Sorry about the dodgy diagram but you get the idea
The switches are 50 meters away from the main unit. the buzzers are so the person pushing the button knows they have pushed it (without looking) and the main big buzzer at the main unit is so the person in the middle also knows
Acelliott:
This is What I was trying to do lol
but still want to add one big buzzer at the unit
Running 5V over a 50 metre wire to run a buzzer is a bit optimistic I think. Your specs on the buzzers did not mention the current draw at 5 V, but the more current it takes, the less likely it is to be loud enough.
You say you are using 7.4 volts. I'm unsure of what you mean by APK, but is the power wired to the barrel-style power connector on the Arduino board? If so, and if you are taling 5V from the Vin pin on the six-pin header, it will make matters even worse You might want to run the buzzers directly off the 7.4 volts instead.
If I run the direct from the 7.4v power will it be ok to go straight in to a the Arduinos inputs or will I need to bring it back down to 5V ?
And yes I would like to program an output to sound the siren but again need more than 5v
They are cheap, easy to use, will completely isolate the different voltages and also help protect your Arduino from induced spikes and interference that comes with long lines connected to it.