Question about the Count Command.


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Any simple single supply OpAmp would do the job.

    Configure it for a gain of 50+ and supply it with 5V

    an input signal of 50mV would result in an output of >=2.5V
    (which is interpreted as HIGH in TTL)

    But Steve is our Car Audio Expert,
    so I'll leave it to him to find the final and perfect solution.

    ;-)
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Ralph suggestion is quite good, the only problem i see, is when the audio signal will cross the Zero, the amp could turn off.

    mmm... in conjunction with the ralph suggestion, connect the op-amp output to the PIC, check the signal, wait let's say 100 ms or more and redo the test. If both tests are positive, turn on the amp, if both negative, turn off the amp.

    Now it's time to do some home work guy. We provided more than enough stuff to do the whole thing... even on more than one thread
    1. You have a snip of code
    2. you have a heap of idea how to do it
    3. the circuit is virtually in the air... look !!! you see it??

    Probably... the op-amp could be skip if you use the PIC comparator. If you keep the op-amp, you can do the whole project with a simple nifty 10F serie without analog stuff on
    Last edited by mister_e; - 26th July 2005 at 18:36.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    Ralph suggestion is quite good, the only problem i see, is when the audio signal will cross the Zero, the amp could turn off.
    Steve, I was assuming there is a small PIC at the output of the OpAmp.
    (This was why had suggested to supply the OpAmp with 5V)
    (The positive Rail of the OpAmp would limit the voltage you feed into the PICs)

    However,
    let's stop here, TEAR has probably got more info than he'll ever need or he can cope with.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  4. #4
    Join Date
    Oct 2004
    Location
    Porto - Portugal
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    Hi Michael and of course all the others

    I supposed that in your post #3 you said that you intend to get the audio signal from the link between the stereo deck and the amplifier, and in post #7 you wrote about getting the signal from speakers wires, which one is the correct one?

    Besides a lot of other things, at my company we produce audio amplifiers (OEM regime) from 100W to 3000W (2 channels). One thing I've learned, turning on a amplifier with signal present at the inputs when the amplifier has no soft-start feature or other kind of (BUMP) protection will surely damage the speakers, please take care in your aproach regarding the method of turning on the power while monitoring the ammount of signal at the inputs.

    I suppose that you are really determined to use a PIC, because as all the others had already said there are "other" ways to get the same result.

    Keep us informed
    nomada

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Nomada have a good point about the soft start for sure, this is why we suggest a op-amp at the input with a wide gain to compensate, but i do understand your point.

    BTW last suggestion, since more than everything has been covered, and we still don't know in wich car it will be installed...

    Most of those deck have a turn-on lead for factory amp and/or electric antenna and such. The use of a volmeter on the back connector of the radio will show you the truth. The easy solution of using the ignition/accessory wire it's still working too.


    http://www.installdr.com/QuickWiring.html or www.google.com for radio pinout

    And of course, the best one that need a few experience.. open the radio and probe the circuit to find a remote, use a MOSFET, Transistor ,CMOS buffer to provide your turn-on.

    That's all for me too
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking

    Hi

    I think a simple LM3915 or 3916 could do most of the job, offering moreover a superb "christmas tree " ... to your child's eyes.

    just select the open collector output for the level to trigger!!!

    National datas offer the drawings for full wave rectification, averaging, peak detection ... Heaven !!!

    No, Analog circuits are not dead ...

    Alain

    PS : France : 1 point ... Canada : Boooooo....

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics
    No, Analog circuits are not dead ...
    That's for sure, return to basic, it's still a good pratice. Let`s see
    1. PIC 12F629 => 2,28$ each in really small Qty will fit in half of matchbox
    2. LM3914,LM3915,LM3916 => 3,15 - 3,75$ + external capacitors, extra board space + chances to do some erratic turn off when signal is a bit low, and blah blah blah


    Quote Originally Posted by Acetronics
    PS : France : 1 point ... Canada : Boooooo....
    j't'emerde... c une farce... humour Québécois

    Is the score is still the same... BAH who cares!!!

    Mes amitiés à la France!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking

    Hi, steve

    I've paid my LM 3915 1.80 Euros ...

    If it's a problem for you, a gang of transistors ( 5 to 6 ? ) plus some R and C can fit into a sugar lump ...

    I already did that for a sound animated christmas star ... ( 16 Leds, 4 channels !!! )

    Here, Relay will have to keep outside ... too bad !!!

    But, Why not to use a PIC ???

    Cheers to la belle Province !!!

    Alain

Similar Threads

  1. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 21:31
  2. COUNT is not counting again
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 19th June 2009, 05:52
  3. Can I do this???
    By noobie in forum mel PIC BASIC
    Replies: 2
    Last Post: - 10th June 2006, 19:57
  4. Bootloader + EEPROM / DATA Command Question
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th September 2005, 21:01
  5. Count command
    By hawk72501 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th September 2005, 20:04

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts