Microstepping code picbasic pro


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    Did you find this post helpful? Yes | No

    Default Re: Microstepping code picbasic pro

    other than as a hobby or an educational process why bother when you could buy this

    http://www.ebay.com.au/itm/Single-Ax...-/400738287623?

    or this

    http://www.ebay.com.au/itm/CNC-Route...-/221654357464?

    for such a little amount , you could not homebrew it for less

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: Microstepping code picbasic pro

    Geez, it seems you still really haven't grasped the concept here.

    The L298 doesn't contain any current controller so if you're going to use that you need some way to regulate the current to whatever level your PIC commands. Remember that when you're microstepping you're NOT just setting the coil current to 1.2A or whatever - the current reference for each coil is changing. The L298 is often combined with the L297 and IT has the current controller in it. Oscillator, flip flops, compartors, blanking time etc etc. But since the L297 also has the step indexer built into it it's "locked" to full and half step mode.

    The L6207 i mentioned has the H-bridge (like in the L298) but also the current controller part of the L297 (well perhaps not the same circuit but the functionallity).

    If you DON'T use a chip with built in current controller you're going to have to implement that part of the chips circuitry with other parts or in code - possible but not easy, certainly not in the code alone.

    In the Microchip App note it looks like they are simply and "blindly" throwing PWM dutycycles from a SIN lookup table at the H-bridge without actually regulating or limiting the current. The two sense lines from the H-bridge IS connected to the ADC inputs but the only analog input read in the firmware is AN0 which is the speed reference - as far as I can see. It might work, sort of, but I think it's a very crude way and certainly one that will destroy the motor when the powersupply voltage is higher than the rated motor voltage (which, as you've found out, is needed to get any sort of speed out the motor). Either I'm missing something or that design is seriously flawed.

    Then of course, Richard is right, it'll be much easier and cheaper to just buy something - but where's the fun in that right?

    /Henrik.

Similar Threads

  1. PicBasic Pro code to drive MCP4291 DAC?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 14th July 2015, 03:28
  2. Execute Picbasic Pro code from external EEPROM?
    By CuriousOne in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 7th February 2014, 03:31
  3. sample code for AT45DB642D in Picbasic Pro
    By itsssyam in forum General
    Replies: 0
    Last Post: - 10th March 2010, 06:01
  4. Replies: 3
    Last Post: - 1st July 2008, 21:07
  5. Anyone have ADS1100 I2C PicBasic Pro code example
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 7th March 2006, 22:13

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts