Motor Stepper Example - Page 4


Closed Thread
Page 4 of 4 FirstFirst 1234
Results 121 to 135 of 135
  1. #121
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Yep you can find that SPECIFIC MOTOR at sparkfun.

    It is not expensive and not with HIGH torque but it is Good for many applications.

  2. #122
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    normally i dont open a new thread, i really dont like it, so i will continue the next request from you guys here.

    If any moderator would like to open a new thread, it is free to do it. My request is related to motors again, but this time to a brushells motors.

    I have the following motor

    and Detrum driver 25 A

    i would like to control very simply the driver with a PIC and a potentiometer

    so they way to rotate the potentiometer to speed up the motor via PWM from PIC.

    Is that possible?

    have a look first of my new design and what i would like to do.


    Attached Images Attached Images     
    Last edited by astanapane; - 18th April 2013 at 12:16.

  3. #123
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Quote Originally Posted by astanapane View Post
    ...i would like to control very simply the driver with a PIC and a potentiometer

    so they way to rotate the potentiometer to speed up the motor via PWM from PIC.
    You could do it with a PIC but a $5 servo tester like this would work just as well.

    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  4. #124
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    The motors are Brushless type and need a special High current driver (at least 30 Amps).

    When a specific driver is selected we can see how to control it.

    Ioannis

  5. #125
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Hi rmteo,

    thanks a lot for your reply, just wanted to use a PIC and a potentiometer, because i would like to understand the programming as well behind it.

    Right now i have a reciever and transmitter to do it.

    But i would like to use my own pic PWM with potentiometer to send pulses to controller.

  6. #126
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Quote Originally Posted by Ioannis View Post
    The motors are Brushless type and need a special High current driver (at least 30 Amps).

    When a specific driver is selected we can see how to control it.

    Ioannis
    For my case i have selected the Dentrum 25A controller for the specific motor. IT works fine.

    But i havent checked the input for the controller yet. And dont want to mess around a lot with it. The cost is not too high...about 20 euros.

  7. #127
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    I could not find any datasheet about the Dentrum, but I suppose it is a standard servo input controller.

    If this is the case then it just needs pulses every 20ms and from 1 to 2ms wide.

    Please confirm the input of the driver.

    Ioannis

  8. #128
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Quote Originally Posted by astanapane View Post
    ....But i would like to use my own pic PWM with potentiometer to send pulses to controller.
    Well then, as mentioned "it just needs pulses every 20ms and from 1 to 2ms wide." Here is a hint, you do not want to use the PIC's PWM module as it will give only about 5.5 bits of resolution.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  9. #129
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    This is a little very simple code to produce the required servo pulse by reading an analog port (say a pot).

    It then creates the pulse after some maths and loops back again.

    Code:
    again:
    adcin channel,value          'read pot value
    if value>250 then value=250  'compress value over 250
    pulse=4*value+1000           'upscale from 1000 to 2000
    HIGH output_pin
    pauseus pulse     'create the servo pulse
    low output_pin
    pauseus (20000-pulse)' pause for the rest of the 20ms period
    goto again
    Ioannis

  10. #130
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Quote Originally Posted by astanapane View Post
    ... The cost is not too high...about 20 euros.
    Or less: http://www.hobbypartz.com/60p-dye-1002-25a-esc.html

  11. #131
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Quote Originally Posted by Ioannis View Post
    This is a little very simple code to produce the required servo pulse by reading an analog port (say a pot).

    It then creates the pulse after some maths and loops back again.

    Code:
    again:
    adcin channel,value          'read pot value
    if value>250 then value=250  'compress value over 250
    pulse=4*value+1000           'upscale from 1000 to 2000
    HIGH output_pin
    pauseus pulse     'create the servo pulse
    low output_pin
    pauseus (20000-pulse)' pause for the rest of the 20ms period
    goto again
    Ioannis
    Right Now i need first to do the schematic and will wait for the printed parts tomorrow morning.

    Then I can do the tests.

    Thanks a lot Ioannis.

  12. #132
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Hello All, Havent updated you because i changed the designed and wait for the port.
    The first test i did with a new motor at 19000 rpm was Very Good.

    But still with the joystick transmitter and receiver.

  13. #133
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Long time since Last update. Havent done a BIG test yet but i will upload the video before the end of November.
    Attached Images Attached Images   

  14. #134
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    it is being long time but i have promised you those videos.






  15. #135
    Join Date
    Jan 2015
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Hi there astanapane!, i just read all threads and i have to congratulate you for your progress in programation, as i am a big fanatic to electrnonics and robotics. I have a request to anybody willing to help, i dont have a stepper driver as LEonardo has (big easy) but i made one with a 16f84a, i programmed it to receive a dir and step pulse from another pic, and to give the combinations to som mosfets and to the coils of the bipolar motor. At first it worked well with some weird movements sometimes, (i guess it wass because of the supply or some electrical noises), but as i have been studying, im interested in programming a pic to work as a microstepper driver. Until now, i know that some pwm are required to make the required signals to operate the coils, but i dont have it very clear.

    Of course, if somebody can help me out with this in picbasic pro i would be very grateful!. So teh basic idea is:

    -Inputs:
    *Full Step
    *Half Step
    *switches to select the microstepping config (4, 8, 16, 32)
    *Step
    *DIR
    *Enable
    -Outputs
    *the pwm signals to the power transistors or the Hbridges to drive the Bi Polar Motor
    *anything else needed
    I think that just one pic would control one motor, because it would be too much to ask for the three motors.
    I guess it is to much to ask, but i want to learn futher about programming in picbasic pro and maybe it can be done .

    And sorry for my bad english, im from Mexico!

    Best Regards and happy holidays.!

Members who have read this thread : 2

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

Posting Permissions

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