. .
Page 2 of 2 FirstFirst 12
  1. Robin,

    Have you seen this thread on CNCZone discussing PIC-based DRO capbility using cheap chinese scales?

    regards,
    Irving...

  2. I guess, seeing as you posted there tonight, the answer is now yes :)

  3. #13
    Quote Originally Posted by irving2008 View Post
    I guess, seeing as you posted there tonight, the answer is now yes :)

    Absolutely, thanks for the heads up :D

    I'm not sure he isn't introducing too many delays, that scale data gets very stale very quickly. I suppose it all depends on what he is trying to achieve.

    I made the data input, scale reading and motor stepping completely interrupt driven. There is a sort of housekeeping program that looks for new devices and button presses, but all the vital stuff happens automatically in the background without the slightest intervention apart from Pause and Abort. It's as close to real time as I can possibly make it. I find PC's are a bit too handy at turning the interupts off.

  4. Quote Originally Posted by Robin Hewitt View Post
    Absolutely, thanks for the heads up :D

    I'm not sure he isn't introducing too many delays, that scale data gets very stale very quickly. I suppose it all depends on what he is trying to achieve.

    I made the data input, scale reading and motor stepping completely interrupt driven. There is a sort of housekeeping program that looks for new devices and button presses, but all the vital stuff happens automatically in the background without the slightest intervention apart from Pause and Abort. It's as close to real time as I can possibly make it. I find PC's are a bit too handy at turning the interupts off.
    Using a PC for anything truly real-time is hard - actually its not the PC of course, but Windows that is the issue. There are good real-time extensions for Linux and there used to be a pretty good real-time extension for Windows too but I don't know what happened to it - http://www.directinsight.co.uk/produ...urcom/rtx.html is something similar though. I've done projects in the past with single board and single chip solutions with tiny real-time kernels such as iRMX, embedded Linux as well as solutions based on WindowsCE, stuff you couldn't begin to make work reliably under Windows.

  5. #15
    Quote Originally Posted by irving2008 View Post
    stuff you couldn't begin to make work reliably under Windows.
    Tell me about it. My current stepper driver works under DOS so I can get my sticky fingers on the timer interrupt. Fortunately SVGA screen drivers are available or it would have to be VGA. It does everything in straight lines. I call the routine with a new x,y,z then idle away the time painting the screen until it gets there.

    The new driver will run under XP. Every command is single byte until tool change when I upload tables. The little computer will buffer up to 32k so I should be able to keep ahead even when XP goes on vacation.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Digital angle gauge
    By njhussey in forum Tool & Tooling Technology
    Replies: 4
    Last Post: 04-12-2012, 08:07 PM
  2. FOR SALE: DRO + 4 Scales
    By Rikk in forum Items For Sale
    Replies: 0
    Last Post: 22-10-2011, 09:41 AM
  3. Digital drivers from Zap
    By Simon C in forum Motor Drivers & Controllers
    Replies: 5
    Last Post: 31-03-2011, 03:27 PM
  4. FOR SALE: digital vernier.
    By i2i in forum Items For Sale
    Replies: 8
    Last Post: 13-08-2010, 11:31 AM
  5. Reading and fixing Chinese scales
    By irving2008 in forum Tool & Tooling Technology
    Replies: 26
    Last Post: 24-02-2010, 10:35 PM

Tags for this Thread

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
  •