1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

4017 as a variable resistor??

Discussion in 'Electronic Projects Design/Ideas/Reviews' started by MrDEB, Mar 21, 2009.

  1. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,414
    Likes:
    23
    I had 4066 ic's w/ resistors connected but came up with this idea.
    not even sure if its cosure??
    the 4017 supplies the voltage to the 556 disc pin (pin 6 on the 555) which the 556 is connected as an astable timer.
    the 4017 adds resistors so the output frequencies change.
    I want to cycle from 2khz, 3khz, 4khz on one output and 6khz, 5khz, 4khz on the second output.
    but will the 4017 supply enought for the 556 to operate
    normally the disc pin is connected to vcc via a resistor which determnes the frequency.
    any input as to feasability??
     

    Attached Files:

  2. k7elp60

    k7elp60 Active Member

    Joined:
    Oct 21, 2003
    Messages:
    1,156
    Likes:
    19
    Location:
    Utah
    You may have a problem with the 4017 because the output has two levels, either high or low.
    I have used 4000 series analog switches to connect different resistors and different capacitors to the 555 timer to change frequencies. It worked with the analog switches as when the particular gate is not selected it is an open circuit. I once buit a circuit that had 2ea 4067 analog switches so I could select 32 different frequencies.
    I hope this helps
     
    Last edited: Mar 21, 2009
  3. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,588
    Likes:
    950
    Location:
    Canada, of course!
    You are changing the value of the resistor that affects the duty-cycle a lot and affects the frequency a little.
    But the other resistor needs both of its ends free.
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    170
    Location:
    Toronto, Canada

    Microcontrollers. Yep I said it.
     
  6. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,414
    Likes:
    23
    would love to do this with a pic

    but being a beginner and this is expermental (see DEER CHASER post.
    I am trying to cut down the parts count.
    If I could get someone to program some chips then I would be in bussiness on this circuit.
    I myself have been looking at different programming boards and language but hav't decided. Pocket book gets in the way as well.
    If I could get someone to program some chips, I would be willing to pay for them either cash or trade (I do custom woodworking like portraits, furniture etc.)
    I am hoping to be able to sell the Deer Chaser and have my scout troop assemble them so the troop can make some money.
     
  7. colin55

    colin55 Well-Known Member

    Joined:
    Feb 14, 2009
    Messages:
    3,534
    Likes:
    82
    Location:
    Melbourne Australia
    What you are saying is incorrect:

    [​IMG]

    The output of the 4017 can be connected to pin 7 via a resistor but since the output can both sink and source, you will have to gate them to prevent the other outputs from interfering with the result.
     
    Last edited: Mar 21, 2009
  8. Sceadwian

    Sceadwian Banned

    Joined:
    Oct 27, 2006
    Messages:
    14,047
    Likes:
    141
    Location:
    Rochester, US
    Everything looks like a nail after a while =) Then again, after a while, everything IS a nail.
     
  9. colin55

    colin55 Well-Known Member

    Joined:
    Feb 14, 2009
    Messages:
    3,534
    Likes:
    82
    Location:
    Melbourne Australia
    It would be very simple with a PIC but first you have to get a programmer (either JDM or PICkit-2 with extn socket <snip>) and a PIC12F629 and then everyone here will help you program it. You will also need a prototyping board with 5 pins for In circuit Programming.

    But we really don't know what you want to do.
     
    Last edited by a moderator: Sep 16, 2014
  10. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,588
    Likes:
    950
    Location:
    Canada, of course!
    No.
    I am correct. I am making a variable frequrency 555 oscillator.
    Your circuit changes the duty-cycle of the pulses.



    [​IMG]
     

    Attached Files:

  11. Sceadwian

    Sceadwian Banned

    Joined:
    Oct 27, 2006
    Messages:
    14,047
    Likes:
    141
    Location:
    Rochester, US
    Everyone here will be able to help but me and you colin.
    I'll be pushing AVR's, you'll be referencing other peoples code and circuits and pushing your website.
     
  12. colin55

    colin55 Well-Known Member

    Joined:
    Feb 14, 2009
    Messages:
    3,534
    Likes:
    82
    Location:
    Melbourne Australia
    Not really. The circuit I submitted: PULSE GENERATOR, has a constant-width LOW but the HIGH changes in length and this creates the different frequency.
     
    Last edited: Mar 21, 2009
  13. colin55

    colin55 Well-Known Member

    Joined:
    Feb 14, 2009
    Messages:
    3,534
    Likes:
    82
    Location:
    Melbourne Australia
    You can push AVR's all you like. If you can help someone who knows absolutley nothing about programming and wants to produce a project for $10.00 to deliver a particular application, then show me the website and instruction-set that enables him to do so.
    I get people started, who know absolutley nothing about programming. Pushing my website does not bring in any money. My main kits are train kits.
    I chose PIC 8 years ago because it had the biggest following and support on the web.

    I am not against any microprocessor but when I asked for 300,000 ATiny12's they said they were going out of production.
    I had to get MCV08A - a PIC chip made expressly for the Chinese market.
     
  14. 3v0

    3v0 Coop Build Coordinator Forum Supporter

    Joined:
    Jul 14, 2006
    Messages:
    9,404
    Likes:
    227
    Location:
    OKLAHOMA USA
    Yup that will break the bank. $15 for a programmer from sparkfun which should work fine if an old PC can be found(better to spend a bit more and get a PICkit2 or clone). You can run the ICSP cable to a breadboard to do the programming. But there is that bit about not knowing how to program.

    We are a bit on the gullable side here. From time to time we help people, even write code or layout PCBs.

    A uC is not as far fetched as you might think.

    3v0 :)
     
    Last edited: Mar 21, 2009
  15. Sceadwian

    Sceadwian Banned

    Joined:
    Oct 27, 2006
    Messages:
    14,047
    Likes:
    141
    Location:
    Rochester, US
    colin55, my first AVR project was programmed on free samples that were included with a 27 dollar serial based ISP programmer because Id idn't want to make my own, you can interface any AVR that support ISP programming via a serial port with any machien that lets you run the software (win98) I don't generally provide the links for stuff like that because personally I think the first thing anyone interested in micro controllers should do is research things for THEMSELF, it's how I learned everything I know and chose the chips I have, and I have no trouble. Hand feed people schematics and code and you learn jack.
     
  16. colin55

    colin55 Well-Known Member

    Joined:
    Feb 14, 2009
    Messages:
    3,534
    Likes:
    82
    Location:
    Melbourne Australia
    That's wonderful. You are a highly intelligent electronics person who knows what he is doing.
    Many newcomers are struggling with electronics in the first place and they don't have the capability of go out and buy a kit and do it themselves. That's why they are looking at sites like this.
    And when I contacted Parallax about the number of projects produced by reader’s they said about 100, even though 1,200,000 Stamps had been sold.
    Even when hand-feeding, it's extremely difficult.
     
  17. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,414
    Likes:
    23
    I didn't mean to raise some dust

    If you boys can't play together nicely then you both can go to your room without dinner--LOL
    I plan on buying a programming board, looking at the JuneBug as well as the PICKIT2.
    BUT I need to assemble a prototype so I can test it out on some deer.
    The deer are staring to appear in town as we type.
    My plan is build 5 units using ic's as in my schematic. need to reduce the parts count etc. if possiable
    have 5 PIR moduls from SURE Electronics on there way.
    Get 5 in operation while designing units using a PIC.
    Problem is learning how to program a PIC.
    Time is a concern RIGHT NOW. not 3 months from now.
     
  18. Roff

    Roff Well-Known Member

    Joined:
    May 16, 2003
    Messages:
    7,757
    Likes:
    89
    Location:
    Idaho, USA
    PIR module? Is this to warn people that there is a deer in their yard, or is it to scare away deer?
     
    Last edited: Mar 22, 2009
  19. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,414
    Likes:
    23
    straight lines/revisions

    YES this device is to scare deer away. The PIR is used to detect the deer
    Instead of using the 4066 I figure why not use some 2n2222 transistors.
    the 4017 outputs need resistors (I come up with 4500 for 2ma to base. the 4017 outputs up to 5ma.Just forgot to insert.
    Maybe one resistor as I have seen here somewhere??
     

    Attached Files:

  20. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,414
    Likes:
    23
    a VCO /556/4017

    revised the DEER CHASER circuit so the timming resistors stay put as per audioguru suggestion.
    Well how about a VCO where the resistor combos R9 or R11 + R12 = voltage divider (R8 or R10 + R13) to change the frequency of the 556 output.
    The resistor combos need to be calculated (need to find out what values for desired frequency)
    changed the piezo units to speakers.
    I want a two tone sound= 1st tone goes from 2khz to 3khz to 4khz.
    2nd tone from 6khz to 5khz to 4khz
    tones then recycle until 10 seconds has passed.
     

    Attached Files:

  21. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,588
    Likes:
    950
    Location:
    Canada, of course!
    The 556 will melt if it tries to drive 8 ohm speakers. You need a stereo power amplifier. Also the 556 would try to put DC in the speakers which is bad.
    Why two channels?

    Have you calculated the actual sound level at the distance of the deer? The deer might need to wear the speakers on their ears to be scared away.
     
    Last edited: Mar 26, 2009

Share This Page