how to control 555 resisters with PIC


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    KB3BYT's Avatar
    KB3BYT Guest


    Did you find this post helpful? Yes | No

    Lightbulb how to control a resistance or capacitance

    OK OK OK
    a pic can do anything a 555 can.
    Again...
    I ask how the right way to do this task of using a PIC to
    control the resistance and capacitance of external circuits... for a real good reason.
    There are lots of example circuits that show how to build discrete component projects. There must be a 1000 of them out there.
    BUT
    when I want to do a PIC controlling project to interface those circuits... I don't really find ANY examples.
    So...
    I ask here if anybody knows a good way to make the
    replacement circuitry to interface a PIC where a resistor or capacitor is found in a circuit....
    because its the resistors and caps that are always attached to dials with pots and variable caps.
    Forgetting the 555....its all those other circuits I want to learn to interface.
    I just used the 555 as the example because there are sssssssssssoooooo many web sites devoted to showing the 555 pins layout...where plus and minus and ground lays compared to the pins....so anyone could find good references.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Ok,Ok,Ok,...I smell what you're cooking...

    Well, for controlling programmable resistors, maybe check out the XICOR type programmable resistors (X9241 for example). XICOR makes them in various values (for instance one version might start at 0K and go to 1K, another might start at 0K and go to 100K). You can control them in PBP using I2C commands (just like accessing an external serial eeprom chip as shown in the PBP manual and wired up in almost the same manner), or, for that matter, a couple of the XICOR types only need 'up' and 'down' pulses to change their resistances. I can't remember thier numbers off the top of my head.

    Relatively simple-ish chips to use. I used them for voltage dividers in front of small amplifiers before. Worked good for me. And the resistance value seen by the external circuit would be completely independant of the PIC circuit controlling it (except of course for power/ground type lines).

    As far as change capacitors values, like they've said earlier here, small DIP
    relays switching different capacitors in/out of the circuit is about the only way to go. I wouldn't try to use a 4066 (correct number???) which is a multi pole digital switch, but it has built-in resistance due the MOSFETs in it, which will screw with the values quite a bit (I know, I've tried it).

    JDG

  3. #3
    KB3BYT's Avatar
    KB3BYT Guest


    Did you find this post helpful? Yes | No

    Default

    thanks for the info

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by KB3BYT
    thanks for the info

    If you really wanted to get crazy, you could easily drive an R/C aircraft servo to turn a rotary switch connected to a bank of capacitors (ya know, ka-chunk, ka-chunk, ka-chunk) and another servo to drive a linear pot. Drive servo's is easy with a PIC also. At least you'd have something mechanically silly to watch, something a tad bit over engineered.
    JDG

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


    Did you find this post helpful? Yes | No

    Talking The parrot ...

    Quote Originally Posted by skimask
    If you really wanted to get crazy, you could easily drive an R/C aircraft servo to turn a rotary switch connected to a bank of capacitors (ya know, ka-chunk, ka-chunk, ka-chunk) and another servo to drive a linear pot. Drive servo's is easy with a PIC also. At least you'd have something mechanically silly to watch, something a tad bit over engineered.
    JDG
    Hi Skimask

    before ... just learn how to fly models with old non proportionnal radios ...

    THEN you can talk about all that ...

    Ah ... look at the little ( humour ) difference between AD7376 and the XICOR X9xxx ...
    One can be used ... and the other NOT here.

    Alain

    Hi, KB3

    As the capacitor have one terminal to be grounded, you can use Mosfets like 2N7000 or BS 170 instead of the relays.
    But it will introduce a small parasitic capacitor ... if it doesn't matter, that would be simpler to build.

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Same problem when the TV remote controls were introduced.
    To replace the potentiometers, ICs + fixed value resistors
    were used.

    From the 4000 Series CMOS:

    Quad Bilateral Switches
    4016, 4066.

    CMOS Analog Multiplexers/Demultiplexers
    4051, 4052, 4053.

    * * *

    About the 4016:
    http://www.doctronics.co.uk/4016.htm

    * * *

    Modern Digital Potentiometers:
    http://www.maxim-ic.com/DigitalPotentiometers.cfm

    Best regards,

    Luciano

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics
    Hi Skimask
    before ... just learn how to fly models with old non proportionnal radios ...
    THEN you can talk about all that ...
    Ah ... look at the little ( humour ) difference between AD7376 and the XICOR X9xxx ...
    One can be used ... and the other NOT here.

    Alain

    Hi, KB3
    As the capacitor have one terminal to be grounded, you can use Mosfets like 2N7000 or BS 170 instead of the relays.
    But it will introduce a small parasitic capacitor ... if it doesn't matter, that would be simpler to build.

    Alain


    Who says I haven't used non-proportional radios, with them ol' 45v batteries in the TX's...big ol' switches, big ol' boxes...etc.
    Besides that, I've got a pilot license now. I've still got to train my arms to be a little more proportional on those crosswind landings

    AD7376 - X9xxx - One can be used, the other can't.... Looks to me like both could be used.
    What am I missing?


    As far as using the 2N7000 to switch the cap's in and out...
    Q: Even if you drive the '7000 fairly hard, it'll still have a couple of ohms across the drain-source. Won't that mess with whatever cap it's connecting into the circuit like the 4066? I know the 4066 is a lot worse and it affected my circuit.

    JDG

Similar Threads

  1. The best way to control a servo with a PIC
    By The Master in forum Off Topic
    Replies: 41
    Last Post: - 19th October 2008, 02:44
  2. PIC relays control
    By flipper_md in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 1st October 2008, 16:03
  3. Motor Control PLC with a PIC
    By sougata in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 2nd November 2006, 07:59
  4. Pic Control With Software
    By Agent36 in forum General
    Replies: 5
    Last Post: - 18th October 2006, 18:18
  5. Need help on pic to pic flow control (simple problem I think)
    By khufumen in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th January 2006, 00:34

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