Arduino Nano - use RX PWM output to control Off On Switch

Hello,

I'm a drone pilot and totally new to arduino.
I took a picture of my parts.

My Arduino board: Nano V3

I want to control a button that basically shorts the + and - in this big buzzer circuit.

So one PWM output of the Receiver is connected to Arduino and the + and - from the Buzzer is connected to it as well.

Once the PWM signal reaches a surtain point (switch on my Radio Controller) it will make the buzzer beep.

IMG_20170210_081214 (Small).jpg

Thanks for the help,
sorry if its supper basic

IMG_20170210_081214 (Small).jpg

What kind of remote control and receiver are you using?

For a general RC control you need a channel splitter, that separates the PCM signal into distinct channels. This splitter can be provided in hardware or in software. Then listen for a signal on the selected channel, and turn your buzzer on and off depending on the signal level.

If your buzzer is an active buzzer, i.e. yells when power is applied, you simply turn the buzzer supply on and off. A passive buzzer (loudspeaker) instead needs a wave signal, as created by tone(), which you turn on with tone(pin, freq) and off with noTone(). You may need an amplifier (transistor...), if the Arduino output is not powerful enough to drive the buzzer.

DrDiettrich:
What kind of remote control and receiver are you using?

For a general RC control you need a channel splitter, that separates the PCM signal into distinct channels. This splitter can be provided in hardware or in software. Then listen for a signal on the selected channel, and turn your buzzer on and off depending on the signal level.

If your buzzer is an active buzzer, i.e. yells when power is applied, you simply turn the buzzer supply on and off. A passive buzzer (loudspeaker) instead needs a wave signal, as created by tone(), which you turn on with tone(pin, freq) and off with noTone(). You may need an amplifier (transistor...), if the Arduino output is not powerful enough to drive the buzzer.

Thanks for your answer :slight_smile:

If its PPM or SBUS protocol I guess it'll be a little more complicated, but lets say my receiver has PWM,
Which means that I can connect each channel individually which is much easier..

I think you misunderstood me when I said buzzer (my bad)

Its a Bicycle Horn device -> 7 sounds ultra-loud electronic bicycle bell bike horn siren Sale - Banggood.com sold out-arrival notice-arrival notice

That has a button, I think that the button is just a jumper between two points in a circuit inside this HORN.
Is it possible to close a circuit with arduino code ?

Sorry my questions is super basic :frowning:

How many output wires does your receiver have, and how many channels?

If the horn has 2 wires, the button will turn its power on. You'll need a transistor or relay, capable of providing the required voltage and current to the horn.

DrDiettrich:
How many output wires does your receiver have, and how many channels?

If the horn has 2 wires, the button will turn its power on. You'll need a transistor or relay, capable of providing the required voltage and current to the horn.

Could you share a link to the part that is requierd ?
or maybe a guide of a similar project for reference

thanks

Hi,
Welcome to the forum.

Can you tell us your electronics, programming, Arduino, hardware experience?

Thanks.. Tom.. :slight_smile:

If you don't have a data sheet of the horn, you have to figure out its characteristics. Do you know how to measure voltage and current?

TomGeorge:
Hi,
Welcome to the forum.

Can you tell us your electronics, programming, Arduino, hardware experience?

Thanks.. Tom.. :slight_smile:

Well I'm a fast learner, and a drone pilot, basic scripting skills.

DrDiettrich:
If you don't have a data sheet of the horn, you have to figure out its characteristics. Do you know how to measure voltage and current?

I have a multimeter.

I need some kind of part that could be controlled using the Nano V3 board and will close the circuit between those two wires of the external button of the Horn

A relay will do that, it acts like a button that can be "pressed" by the controller. Wire its (N/O) contacts in parallel to the button.

DrDiettrich:
A relay will do that, it acts like a button that can be "pressed" by the controller. Wire its (N/O) contacts in parallel to the button.

Could you please share a link or a reference to a relay that would work ?

How would I solve the PWM to the Arduino and writing a simple code that when PWM Signal value is at 80 - 100% it will switch on the relay ?

Thanks :slight_smile: