. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    arduino's are quality. :-D.... get an xbee wireless adapter they are even more fun. Mine is what originally got me into cnc.. I made a little plotter... Even "invented" gcode... before I realised I wasnt the first one! :-D

    ive got loads. too many. best achievement lap timer for multiple rc cars... but ive also got one on my american style mailbox that emails me. and one that controls my curtains... (but thats a story for another day!)

    Its a really exciting time for computer / electronics (wish I was 20 years younger!, my career path may of been different) between these an the Rasberry Pi's it must encourage lots of younguns to be a bit more experimental. if they can prize themselves off their games consoles. WIsh I had one when I was 14 up in my parents loft with my meccano.


    Jonathons a bit hardcode by the sounds of it >> we already knew that.
    Last edited by kingcreaky; 23-01-2013 at 10:44 PM.

  2. #2
    Quote Originally Posted by kingcreaky View Post

    Its a really exciting time for computer / electronics (wish I was 20 years younger!, my career path may of been different) between these an the Rasberry Pi's it must encourage lots of younguns to be a bit more experimental. if they can prize themselves off their games consoles. WIsh I had one when I was 14 up in my parents loft with my meccano.
    this basicly sounds like me..

    i have one little saving grace in that i have 2 twin boys that i hope at least one of them will take an interest in what i am doing and i'll happily provide them with all clever stuff for them to get stuck in to when the time comes

  3. #3
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 23 Hours Ago Forum Superstar, has done so much to help others, they deserve a medal. Has a total post count of 2,971. Received thanks 369 times, giving thanks to others 9 times.
    Quote Originally Posted by kingcreaky View Post
    best achievement lap timer for multiple rc cars
    Out of curiousity, how are you doing the multiple car bit?

  4. #4
    Quote Originally Posted by kingcreaky View Post
    Even "invented" gcode... before I realised I wasnt the first one! :-D
    I re-invented G code because it wasn't invented for computers.

    Picture this scenario, you are belting along a line, reach the end and the next item is an arc, joining at a tangent so you want to hold your speed. All you get is offsets to the centre and an end point. This is not friendly. The stepper motor is champing at the bit for it's next step and you start to do floating point trig on ASCII text. You manage to carry past that and, before you know it, that swine of an operator decides to press PAUSE halfway through your acceleration

    Obviously you are going to predigest the tool trajectory before you even attempt this. At one end of the wire you have a 10GHz 64 bit monster with Gigabytes of fast access RAM which can hold the whole movement array without breaking a sweat. At the other end you have a 100Mhz tiddler, 32 bits if you are lucky, and an SD card for storage. No prizes for guessing which end is best suited to do the conversion.

    My R code is binary XYZW co-ordinates defining the end points of a series of interconnecting straight lines. The co-ordinates are integers in stepper resolution. The only other clues you get for the line are a maximum velocity and a preferred terminal velocity. Velocities are pointers to a list of timer delays. To accelerate you move up the list one slot at a time. To decellerate you move down similarly.

    I don't even start producing R code until the tool position is known and all is ready to go. It starts from where you are now with no appreciable delay. It flips the mill into cut mode, PAUSE's it then starts streaming R codes. That way I have to press the GREEN button on the pendant to start it and my thumb is convenoently close to the RED button should I have forgotten something.

    Driving steppers on an interrupt with R code input is a doddle once you accept that the terminal velocity for the line is only a suggestion. If you can't make it on this line, try next time. To brake you convert every step to a decelleration until you are safe. To restart you use the same routine that you use at the beginning of every line. Simples.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help Make 1st Step - Wiring Up Drivers to Motor and Arduino
    By Treemonkey in forum General Electronics
    Replies: 10
    Last Post: 25-04-2013, 05:47 PM
  2. CNC Controller with Arduino and Gamepad
    By Christian Knuell in forum Electronic Project Building
    Replies: 2
    Last Post: 20-10-2012, 10:25 PM
  3. Imported L298 Arduino Modules
    By boldford in forum Motor Drivers & Controllers
    Replies: 4
    Last Post: 30-07-2012, 11:06 PM
  4. ​DIY arduino CNC 2 axis table
    By ruthharm84 in forum Electronic Project Building
    Replies: 5
    Last Post: 06-05-2012, 01:54 AM

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
  •