Free 186 More Best Homemade Tools eBook:  
New: 300+ fresh build posts/day from 275 forums → BuildThreads.com

User Tag List

Results 1 to 10 of 21

Thread: rotary table driven by stepper motor controlled by 2 Arduino's

Threaded View

  1. #9
    Supporting Member metric_taper's Avatar
    Join Date
    Mar 2017
    Location
    Marion, Iowa
    Posts
    760
    Thanks
    281
    Thanked 410 Times in 266 Posts

    metric_taper's Tools
    Quote Originally Posted by thehomeengineer View Post
    Hi metric taper
    I will have to look up what a ISR routine is but thank you for this info. Will research later
    many thanks again
    The Home Engineer
    ISR= Interrupt Service Routine. Your code enables interrupts, (attachInterrupt(0, runEncoder1, RISING ); // encoder pin on interrupt 0 >>(pin 2 on arduino)), but I don't see a service routine. I see you have a CLI()=Clear Interrupt Flag, in the main loop of the program. But a ISR will be outside this main loop. Clearly the program is working, so the Arduino IDE put something to return, that is invisible to the end coder.
    Typically with quadrature encoders, the interrupt does the count up or down based on the A vs B phase outputs of the encoder. Maybe I'm missing something.

    I do like your design of having a dedicated processor as a feed back counter, with it's own display.

  2. The Following 2 Users Say Thank You to metric_taper For This Useful Post:

    Paul Jones (Jan 15, 2020), thehomeengineer (Jan 15, 2020)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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