Connect with us

Robotics

Discussion in 'Microcontrollers, Programming and IoT' started by pavankukkala, Nov 8, 2015.

  1. pavankukkala

    pavankukkala

    78
    0
    Mar 25, 2014
    Hi friends,
    Its nice to see u after a long time.
    I am interested in robotics, can anyone suggest me which book is good for robotics beginner and I want to do projects on Robotics.
     
  2. Colin Mitchell

    Colin Mitchell

    1,419
    314
    Aug 31, 2014
    Everything you want is free on the web. Just use Google.
     
  3. nepow

    nepow

    99
    1
    Jul 18, 2011
    Hi I need help, I with assembly code written for the pic 12C508 however I want to use pic 12f675 instead. I use MPLAB IDE and have the template and linker but need guidance on how I can transfer this program. I can use pic programming language only so looking for help to make any alterations to the program. Alternatively if anyone knows of a pic 12f675 robot obstacle avoidance that uses left/right IR LED's and a single IR sensor.
     
  4. Minder

    Minder

    2,824
    585
    Apr 24, 2015
    Use the respective manuals and instruction sets and go through the pgm line by line and convert the instruction where and if necessary.
    M.
     
  5. nepow

    nepow

    99
    1
    Jul 18, 2011
    I will have ago although the code was not written in a language I'm familiar with, probably somebody who is a wizard with programming! I can use the pic's 35 instruction codes just about and that's it. Many thanks for your reply however.
     
  6. Colin Mitchell

    Colin Mitchell

    1,419
    314
    Aug 31, 2014
    show your program
     
  7. nepow

    nepow

    99
    1
    Jul 18, 2011
    Hi Colin, thank you... here is the MPLAB IDE file: 12C508TEMP.ASM
    I assume I've sent this correctly appreciate your help.
     
  8. nepow

    nepow

    99
    1
    Jul 18, 2011
    What type of file is acceptable? ...can't upload
     
  9. nepow

    nepow

    99
    1
    Jul 18, 2011
     

    Attached Files:

  10. Minder

    Minder

    2,824
    585
    Apr 24, 2015
    Looks like a couple of mistakes in the program and formatting does not conform to the conventional method.
    I can look it over tomorrow and see what is needed if necessary.
    M.
     
  11. nepow

    nepow

    99
    1
    Jul 18, 2011
    Very kind of you, the program was not written by me...I don't have programming knowledge at this level. As you can see the idea is to pulse two IR LED's mounted left and right of center. The IR sensor mounted between the two will pick up signals and turn the bot left or right to avoid any obstacles. Thank you for sparing your time regards nepow.
     
  12. Minder

    Minder

    2,824
    585
    Apr 24, 2015
    You have to decide what language you intend programming in, if C then converting the program it will still be in Assembly as I do not do C.
    Do you have a Pic programmer?
    M.
     
  13. nepow

    nepow

    99
    1
    Jul 18, 2011
    Yes I have a Prokit 2 which is listed in MPLAB IDE pic programming and simulation software from microchip. I program using pic.ASM assembly which i run and build using MPLAB IDE if you don't use it this free download from MicroChip will build/debug/and generate hex files etc. I also have another PIC programmer by 'Vellerman 6048' you select the pic chip from a list and import the HEX code and then write to the chip, however it doesn't support 12C508 hence seeking an alternative flash memory device (12f675) or alternatives. Many thanks for your help.
     
  14. Minder

    Minder

    2,824
    585
    Apr 24, 2015
    Here is the converted program, I sure it will need a little debuging and tweeking.
    M.
     

    Attached Files:

  15. nepow

    nepow

    99
    1
    Jul 18, 2011
    Thank you for taking the time and trouble to help me with this. Haven't had chance to check it out so will try over this weekend and will report back. Kind regards
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-