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

Getting into Pic programming

Discussion in 'Microcontrollers' started by zorbzz, Jul 20, 2009.

  1. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    here is a schematic I use

    I have a test board wired to check ports. The Junebug is charlieplexed so its not real easy to just turn on one LED.
    I want more control over the ports thus this test board.
    just connect the LEDs to desired port pins etc.
    very basic but it works.
    I wanted to test a PWM project I am working on (LED candle flickering) using 3 LEDs.
    on my test board I soldered a 5 pin header so I can connect the programming cable from the Junebug to my test board w/o pulling the PIC every time I want to change the code.
     

    Attached Files:

  2. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,792
    Likes:
    134
    Location:
    morristown,tn
    Hi MrDeb how are you?
    I made a LED candle flickering with a 12f508 and some resistors to make a sine wave
    You posted a link way back to how to do it that way so I tried it with some yellow leds
    It worked better then you would think
     
  3. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    sine wave??

    I used PWM. Am assuming its different than the sine wave your talking about?
    lets see, resistors = must be a ADC circuit??
    I recall you were working on something using ADC??
    I am trying to complete the project using the flickering candle but other things get in the way.
    building a Lego table, a Theremin (grandparents revenge) for my 4 year old grandson)as well as preparing for the county Fair next weekend.
     
  4. dave

    Dave New Member

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


     
  5. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,792
    Likes:
    134
    Location:
    morristown,tn

    No that chip don't have adc . You use 5 resistors as a voltage divider. By changing which one is on you can very the voltage. here is the circuit
     

    Attached Files:

    Last edited: Aug 13, 2009
  6. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    that can't be right??

    looking at schematic, the transistor turns on and all three leds turn on.
    by varying the base voltage the transistor conducts less thus dimming the leds??
    isn't this hard on the transistor (not saturated??)
    maybe I is missing something??
     
  7. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,792
    Likes:
    134
    Location:
    morristown,tn
    It works I ran it for about a hour and my little 2n3604 don't get hot your just talking about 60 mA wouldn't be any thing different then it osculating
     
  8. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    good point

    I recall a circuit I was working on doing about the same thing but a slow transition.
    also with a cds light sensing
    wish I had knowen more about PICs before ordering all the parts.
    still need to build it.
     

    Attached Files:

  9. colin55

    colin55 Well-Known Member

    Joined:
    Feb 14, 2009
    Messages:
    3,534
    Likes:
    82
    Location:
    Melbourne Australia

    Attached Files:

    Last edited by a moderator: Sep 16, 2014
  10. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,792
    Likes:
    134
    Location:
    morristown,tn
    We don't need one MrDeb has two junebugs and I two pickit2 and 6 kinds of JDm got it covered thanks for the post any way.
     
  11. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    I is down to one juney

    The kid I have been working with designing and hopfully build a spectrum analizer / graphic equalizer is headed to Idaho State Universcity come next week. His mom bought my second juney.
    I added the cost of both then divided by 2 = $25 each
    good deal for both.
    will look at the adapter colin55 limked to??
     
  12. sJUDGE

    sJUDGE New Member

    Joined:
    Aug 31, 2009
    Messages:
    4
    Likes:
    0
    Gday people,

    I am new to PICs and I was wondering what would be the ideal microcontroller and module to program a motor. The microcontroller needs to fit in a 1.5cm diameter pin and consume very little power. I have searched around an the PIC 16F877A is my choice at the moment. Any suggestions???
     
  13. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    168
    Location:
    Toronto, Canada
    What sort of motor, model, power etc...?

    PS best to start your own thread.
     
  14. colin55

    colin55 Well-Known Member

    Joined:
    Feb 14, 2009
    Messages:
    3,534
    Likes:
    82
    Location:
    Melbourne Australia
    Mr DEB

    I tried to find: Idaho State Universcity - is that anything to do with Universal Studios?
     
  15. colin55

    colin55 Well-Known Member

    Joined:
    Feb 14, 2009
    Messages:
    3,534
    Likes:
    82
    Location:
    Melbourne Australia
    Mr sJUDGE

    Talking Electronics has a module to drive a motor, PIC LIC-2 using a
    PIC16F628. You can also use an H-bridge.
     
  16. sJUDGE

    sJUDGE New Member

    Joined:
    Aug 31, 2009
    Messages:
    4
    Likes:
    0
    Blueroomelectronics,, good idea...I'll start a new thread just after these three replies.
    I'll give you all the details on the new thread.
     
  17. sJUDGE

    sJUDGE New Member

    Joined:
    Aug 31, 2009
    Messages:
    4
    Likes:
    0
    colin55

    Are you talking about the PICkit-2 from: Modtronix as it states on Multi Chip Programmer

    Please let me know, if this is the module you are referring to?? Also this Modtronix, would you happen to know if they post to Australia??

    Cheers
     
  18. sJUDGE

    sJUDGE New Member

    Joined:
    Aug 31, 2009
    Messages:
    4
    Likes:
    0
    Ok after searching around, I'm thinking the MICROCHIP - DV164121 - DEBUG KIT, EXPRESS, PICKIT2. Would that suit my needs?? Farnell are selling the kit for $100AUS, is that a good price??
    Again, I am new to PIC microcontrollers and need to control a small motor. I also need a low power operating microcontroller.
    Cheers
     
  19. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    168
    Location:
    Toronto, Canada
    What is the motors make & model?
     
  20. Yobortsa

    Yobortsa Member

    Joined:
    Aug 19, 2009
    Messages:
    46
    Likes:
    0
    Location:
    Brisbane, Australia
    Is there any benefit in the PICkit-3 over the PICkit-2?

    Farnell currently have an attractive price in Australia on the PICkit-2 and PICkit-3:

    http://au.farnell.com/jsp/search/productdetail.jsp?sku=984717001
    MICROCHIP|DV164131|DEBUG KIT, EXPRESS, PICKIT 3 | Farnell Australia

    Which one should I order?

    I am currently running the PICkit-1 and also have a Jaycar kit for ICSP - one of the ones mentioned by the OP:

    Serial Programmer Kit for dsPIC30F Series PIC Microcontrollers - Jaycar Electronics

    This kit is clunky, slow, and doesn't like USB PCs (RS232 Serial based).

    Thanks,

    David
     
  21. colin55

    colin55 Well-Known Member

    Joined:
    Feb 14, 2009
    Messages:
    3,534
    Likes:
    82
    Location:
    Melbourne Australia
    sJUDGE - -- Learn to start to READ.


    Buy PICkit-2 from: Modtronix, it is less than $50.00


    PICkit-2 will do everything you want to do.

    <snip: spam link deleted>
     
    Last edited by a moderator: Sep 16, 2014

Share This Page