A simple pulse circuit.

Discussion in 'General Electronics Chat' started by Bod, May 19, 2018.

  1. Bod

    Thread Starter Member

    Sep 18, 2016
    118
    2
    I recently bought one of these Chinese audio bluetooth reciever modules: https://www.ebay.co.uk/itm/Bluetoot...136925?hash=item41e0210e1d:g:R-UAAOSwZBha1Qln.

    These modules need a two seccond button press to turn on and a two seccond button press to turn off. I am using an on/off pushbutton switch (one like this: https://lgswitch.en.made-in-china.c...Push-on-off-Pushbutton-Switch-for-Stereo.html) to turn my speaker on and off. When you press the button I need a two second pulse to turn on the bluetooth adapter. When the is pushed again, I need another two second pulse to turn the bluetooth off. Keep in mind that I am using an Arduino, so maybe theres a circuit that will allow me to do what I want to do.

    I only have one idea and that's using a capacitor and somehow discharging it into the module over a two second period, to turn it on/off.

    EDIT: I forgot to mention it all runs off of 5v

    Thanks,
    Bod
     
    Last edited: May 19, 2018
  2. Bod

    Thread Starter Member

    Sep 18, 2016
    118
    2
    Again, I forgot to mention, the 5v is supplied by a recharcheable battery.
     
  3. ericgibbs

    Moderator

    Jan 29, 2010
    5,982
    1,131
    hi Bod,
    As you are using a Arduino, are there spare I/O pins for the P/B's and the 2Sec On/Off pulse.
    Add a routine to the program.
    E
     
  4. danadak

    Well-Known Member

    Mar 10, 2018
    1,746
    357
  5. Bod

    Thread Starter Member

    Sep 18, 2016
    118
    2
    Thanks for this! I will try these out and will get back to you.

    EDIT: This could be why the circuit was wrong. I said pushbutton when I meant latching switch. Doh!

    Bod
     
    Last edited: May 19, 2018
  6. Bod

    Thread Starter Member

    Sep 18, 2016
    118
    2
    Doesn't seem to work, espicially since I have an on/off pushbutton. Would it be a good idea to use a momentary switch as the power on. From this I would take two outputs, one goes straight to the BT module and one goes to some sort of flip-flop circuit to turn it into a constant output.
     
Loading...