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

pic compiling/programming questions

Discussion in 'Microcontrollers' started by breadboardguy, May 7, 2009.

  1. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,328
    Likes:
    653
    Location:
    Derbyshire, UK
    ONLINE
    The IC output is normally HIGH, when it receives a burst of 38KHz it goes LOW, however there are certain restrictions in the ratio of LOW to HIGH, and how long it can stay LOW for - too long, and the AGC inside the device turns the gain down.

    However, your purpose is really identical to a remote control, so you should have no problems at all.
     
  2. breadboardguy

    breadboardguy New Member

    Joined:
    Apr 27, 2009
    Messages:
    140
    Likes:
    0
    Location:
    montreal, Canada
    Okay so 10 cycles per bursts mean that the 38 khz must go high to low more then 10 times and then putting a x delay time? So to send a 101 i must do :
    ON FOR X TIME TO ANNOUNCE THE DATA TRANSMISSING/38 khz on 10 cycles/ 38 khz off / 38 khz on for 10 cycles/ On for xtime to tell the end of the transmisson
    Each signal would be spaced by 15 or its equivalent for the "on for x time" cycles evrytime.

    Is it that ?

    Please telll me.
     
    Last edited: May 14, 2009
  3. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,328
    Likes:
    653
    Location:
    Derbyshire, UK
    ONLINE
    It depends entirely on the coding system you decide to use, my tutorials use the Sony SIRC's system as it's simple and easy to decode.
     
  4. dave

    Dave New Member

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


     
  5. breadboardguy

    breadboardguy New Member

    Joined:
    Apr 27, 2009
    Messages:
    140
    Likes:
    0
    Location:
    montreal, Canada

    Does anybody know a great place to buy pic? From mouser they are 4 dollar each and on microchip, 1.5 $... It has to ship
    to canada.

    And does the 16f628a can be reprogrammed once or multiple times?
     
    Last edited: May 14, 2009
  6. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    170
    Location:
    Toronto, Canada
    Creatron Inc or dipmicro are both Canadian. Also RobotShop.ca is based in Montreal.
     
  7. breadboardguy

    breadboardguy New Member

    Joined:
    Apr 27, 2009
    Messages:
    140
    Likes:
    0
    Location:
    montreal, Canada
    None of them have ir sensors and pic together, i will have to go mouser...

    But i need to know if i have to buy a lot or not( Can they be reprogrammed or they are only usable once?).
     
    Last edited: May 14, 2009
  8. 3v0

    3v0 Coop Build Coordinator Forum Supporter

    Joined:
    Jul 14, 2006
    Messages:
    9,404
    Likes:
    227
    Location:
    OKLAHOMA USA
    If you are going to order PICs from the US check Newark. They are much less expensive. May have the other stuff you need.
     
  9. breadboardguy

    breadboardguy New Member

    Joined:
    Apr 27, 2009
    Messages:
    140
    Likes:
    0
    Location:
    montreal, Canada
    7 weeks for chipping! mouser is not an option
     
    Last edited: May 14, 2009
  10. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    170
    Location:
    Toronto, Canada
    My junebug kit includes an IR detector. How close are you to Robotshop?
     
  11. breadboardguy

    breadboardguy New Member

    Joined:
    Apr 27, 2009
    Messages:
    140
    Likes:
    0
    Location:
    montreal, Canada
    Where is it located?

    Is a flash memory pic reprogramable ???
     
    Last edited: May 14, 2009
  12. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    170
    Location:
    Toronto, Canada
    RobotShop.ca
    Look for contact info. They are in Montreal.
     
  13. breadboardguy

    breadboardguy New Member

    Joined:
    Apr 27, 2009
    Messages:
    140
    Likes:
    0
    Location:
    montreal, Canada
    They are at 33 km, but they dont have ir receiver module.

    Can someone tell me if the pic 16f628a is reprogramable???
     
    Last edited: May 14, 2009
  14. skyhawk

    skyhawk New Member

    Joined:
    Feb 9, 2007
    Messages:
    235
    Likes:
    7
    Location:
    Morgantown, WV
    Last edited: May 14, 2009
  15. breadboardguy

    breadboardguy New Member

    Joined:
    Apr 27, 2009
    Messages:
    140
    Likes:
    0
    Location:
    montreal, Canada
    Thank you all for your help, i now have all the answers that i needed and i am already in the process of programming.

    You wont see me for a while until i have new questions...But i will try to answer them on my own.
     
    Last edited: May 14, 2009
  16. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    170
    Location:
    Toronto, Canada
    1 my Junebug includes an IR receiver.

    2 yes all the Flash PICs are reprogrammable.
     
  17. breadboardguy

    breadboardguy New Member

    Joined:
    Apr 27, 2009
    Messages:
    140
    Likes:
    0
    Location:
    montreal, Canada
    I need 10 infrared receiver, so i dont think that i will buy 10 junebug kits.
     
  18. Sceadwian

    Sceadwian Banned

    Joined:
    Oct 27, 2006
    Messages:
    14,047
    Likes:
    141
    Location:
    Rochester, US
    Umm, not that I don't blueroom to sell plenty of units, but isn't buying 10 programmers more than just a little overkill? The Junebug kits are 50 dollars. A PIC which you can program and stand alone IR modules will cost you less than 10 dollars.
     
  19. breadboardguy

    breadboardguy New Member

    Joined:
    Apr 27, 2009
    Messages:
    140
    Likes:
    0
    Location:
    montreal, Canada
    This is why i go newark (canada one) 20 $ for 5 16f628a i/p, 5 tsal 6200 and 10 tsop receivers .
     
    Last edited: May 15, 2009
  20. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    170
    Location:
    Toronto, Canada
    Yes. The PICkit2 and compatibles work great with MPLAB.
     
  21. breadboardguy

    breadboardguy New Member

    Joined:
    Apr 27, 2009
    Messages:
    140
    Likes:
    0
    Location:
    montreal, Canada
    There is something i dont get, on this page, they say the pickit2 programs 8/14/20 pins and a guy on a forum said that he succesfully programmed the 16f628a,wich is 18 pins ???

    PICkit 2 Development Programmer/Debugger

    EDIT:

    Never mind for the pickit2, i would need a 2nd programmer to make it work.


    How do i get an .asm file to send in mpasm? i need mplab sim?

    Does anyone knows about the pic programming thing,some people just build a very simple circuit to program one type exclusively of pic ( ex: 16f628a) but where can we get information of where to connect the pic pins? assuming that i use serial port of printer an ic-prog/winpic800 . On ic-prog website they claim there freeware can program almost all the pics, but they dont give a programmer for all.
     
    Last edited: May 15, 2009

Share This Page