1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

PICMICRO 16F887 --18f2550 USB virtual Comm--

Discussion in 'SimTools compatible interfaces' started by kubing, Oct 20, 2010.

  1. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    working on cockpit right now..will update soon. thanks frakk :D
  2. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    http://www.youtube.com/watch?v=-gtBOJXUi60
    its moving now ..19800Hz PWM, 19200baud, kp=5 :)
  3. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    Re: PICMICRO 16F887

    Good job!

    Do you program this in assembly language or use a C compiler?
  4. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    i can say 60% in BASIC, 40% in ASSEMBLY, more efficient that way i think..working on Kd term now...but as u can see Kp =5 more than enough for fun..about 2 month debugging n experiment almost done now. thank you frakk for your PID advice before. :yes:
  5. dhweizel

    dhweizel New Member

    Joined:
    Mar 16, 2010
    Messages:
    27
    Location:
    Buenos Aires, Argentina
    Balance:
    339Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    good job !!!!! keep the work on the kd term and you can almost double the kp term and everything will be much more violent :)
  6. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    [​IMG]
  7. dhweizel

    dhweizel New Member

    Joined:
    Mar 16, 2010
    Messages:
    27
    Location:
    Buenos Aires, Argentina
    Balance:
    339Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    it seems conservative but may be is only in the simulation, the whole idea is to increase de p term to saturate the output most of the time and overshot and oscillate a lot, and to use de d term to brake ant the end and avoid the oscillation, the shape of the curve must be more like an s
  8. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    i dont have matlab in my pc, i used excel instead..that how they look so conservative... u can see duty(pwm) start to give u negative value when error(current) = error( previous).. at this point my controller shift their pos to reverse softly...in other word the are braking not to over shot. :yes:
  9. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    my polulu motor driver has arrive..gonna shake my table in a few day. working hard on PID code now.
  10. pathetic

    pathetic Member

    Joined:
    Jul 5, 2009
    Messages:
    62
    Balance:
    - 38Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    I am following your topic.
    Good work ;)
  11. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    working on small board now..
  12. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    source code for this project has been upload in my blog.. microcontroller lover are welcome. :)
  13. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    [​IMG]

    stress test..never do this at home :)
    http://www.youtube.com/watch?v=rR7g9RvBwT8
  14. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    Re: PICMICRO 16F887

    Good job Kubing, but I don't see any stress here. :D
  15. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    wiper motor quite hot to touch...haha. :lol:,
    BTW
    I woul like to thanks to :
    sirnoname (without X-sim it could be nothing)
    Thanos ( Your Hbridge make my wiper move)
    ps: i only use irfz44n :)
  16. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887 (adjustable kD)

    Now with adjustable kD pot...
    [img600px][​IMG]

    [/url][/img600px]
  17. whaleman

    whaleman Member

    Joined:
    May 15, 2010
    Messages:
    30
    Location:
    Finland
    Balance:
    7Coins
    Ratings:
    +1 / 0 / -0
    Re: PICMICRO 16F887

    Hello kubing,
    You may remember my problems with Pololu VNH2SP30 and AMC. I see your motor controller works fine with Pololu and it seems to be very easy to build! After regaining my motivation to continue with electronics, I’m keen to give it a try. I have some questions before I start to order components.
    First programming, when it’s being programmed, doesn’t it need some button or a jumper to be turned on to allow programming? Or is it the same button which is used during checking kp and kd values via hyperterminal? I assume Ponyprog can be used for programming as with AMC?
    As I googled MAX232 wiring diagrams, I found few little bit different ways to do it. Also you have a MAX232 diagram on your webpage with diy gear indicator instuctions. One difference I see is that your diagram has four 10uF capasitors and for example Maxim datasheet (pic 2) uses 1uF capasitors instead. Does it matter which capacitance value to use?

    max232_kubing.JPG
    max232.JPG
    max232_sdiy.JPG

    Also one instruction (pic 3) didn’t connect 9pin connector's pins together as in your instuction advice.

    Of course a quite simple solution would be to use a USB ftdi cable, but also a bit more pricy. Either way, costs would be impressive low for your controller. Thanks in advance!
  18. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    go to OLIMEX board with FTDI chip. AS my test so far MAX232 are not LM7805 friendly.
  19. whaleman

    whaleman Member

    Joined:
    May 15, 2010
    Messages:
    30
    Location:
    Finland
    Balance:
    7Coins
    Ratings:
    +1 / 0 / -0
    Re: PICMICRO 16F887

    Okay, I'll try to find olimex board and if not, just use a standard USB ftdi cable with a regular diy board. I'll get back to business as soon as I have something done.
  20. kubing

    kubing Member

    Joined:
    Sep 27, 2010
    Messages:
    259
    Occupation:
    teacher, Industrial electronic programmer
    Location:
    kelantan Malaysia
    Balance:
    350Coins
    Ratings:
    +0 / 0 / -0
    Re: PICMICRO 16F887

    you can use max232 circuit like shown in my gear indicator. Just make sure your picmicro is powered by USB 5V and problem only occur when I try to power my controller using wall adapter (with Lm7805)..btw i use vista 32bit. And everything working great till now :D