Output settings for 16F88


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Location
    Sweden
    Posts
    73


    Did you find this post helpful? Yes | No

    Red face

    Thanks skimask!

    Yes I did miss your point; of curse the "squarewave" must look better to the 5804 if the duty is more like 50/50!
    New code:

    for a = 0 to 2000 ‘ ten turns
    ST = 1 ‘ start pulse
    for b=0 to 28:next b ‘ on time
    ST = 0 ‘ end pulse
    for b=0 to 28:next b ‘ off time
    next a ‘ loop

    The motor runs at the same speed as before, perhaps with a little less noise. If I try to go below 28 it loses torque and I do not help to use different on and off times. I have tried both ways, shorter on time and shorter off time.
    S**t, I really thought this was the solution!

  2. #2
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    You *might* get a little more speed out of it if you ramp up to speed (i.e. set an acceleration rate) rather than instantly hitting the full speed.

    But, as Skimask said, steppers are designed for low speed, and once you hit their top speed in the circuit, the motor will stall...which is a nice way to stay stop.

Similar Threads

  1. Bit Banging input to output on PIC16F876A
    By Bronurstomp in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 26th June 2008, 19:50
  2. PIC 16F684 Configuration Settings
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th April 2007, 15:18
  3. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46
  4. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 22:19
  5. HSEROUT Newbie question/problem
    By Mark Scotford in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 11th July 2006, 14:44

Members who have read this thread : 0

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