Thread: Raspberry Pi
Hybrid View
-
20-07-2012 #1
Here's one that does:
http://www.ebay.co.uk/itm/NXP-LPC176...item3f19dcb8f9
Or:
http://www.ebay.co.uk/itm/Developmen...ht_5481wt_1139
I reckon I'll get one of those, not sure which...
-
20-07-2012 #2
Both nice boards tho without the touch screen of the original one you listed, but amazing pricing...
But with only 512k rom/64k RAM you're going to have to do primarily bare-metal programming which is fine for a bit of bit-bashing, but (and I admit I've not done much research yet) I'd not want to write my own Ethernet software, web server, etc., etc. I guess there are examples of these around, but I want to focus on the CNC stuff not getting the basic platform up and running... a little googling suggests that there is limited info about this (compared to the Linux world) and a shed load of work even to do basic stuff like turn an LED on and off from a web page...
But don't let me stop you....
-
20-07-2012 #3
Nice n cheap and I might yet get one to play with but it doesn't have what i want on board, like the Ethernet...
Give me a few days and I should have something sort of working... just getting my head round this linux stuff...
-
31-07-2012 #4
Update:
Have the bare bones of a program now that takes a buffer of step requests (# of steps, step rate, direction) in 4 dimensions X/Y/Z/A and outputs these under interrupt driven timing to the GPIO outputs. Without having to resort to a kernel level interrupt handler (which I will do when I've worked out how to get the Linux cross compiler to work) and using an out of the box user-space handler I am able to get 5,000 steps/sec on each axis with <10uS delta between channels (10kHz interrupt). That uses around 50% CPU on an unclocked Pi.
Next is to get a basic G-code interpreter running and do the vector maths to handle acceleration/deceleration.
-
31-07-2012 #5
I have a working G code reader written in C# for Microsoft Visual Studio if that would help?
It's only really interested on G0-3 and tool changes but could be expanded.
-
31-07-2012 #6
-
31-07-2012 #7
Oops, forgot the cutarc() subroutine
Let me know what else I forgot
Robin
-
31-07-2012 #8
Thanks.
Been playing around with interpolation routines but run into a snag... so need to go back and rethink the code I've written. Issue is this... in 2D to make it easy... want to move from 0,0 to 1000,1300 say (steps, not mm). Lets assume that the feed rate requires this to take 1 second... then the x rate is 1000steps/sec and the y rate is 1300 steps/sec. But I have a base rate of 5000 steps sec (10khz interrupt/2). so X is every 5th interrupt and y is every 3.85 interrupts.. but you cant do 3.85.. so i need a much higher interrupt rate and some interpolation... in this case 50000 and divisors of 38,38,39,38,38,39,38,38,38,39 per 5000 gives 1301 with a max error of 2 steps... So i need to get that kernel level interrupt working... in the meantime, i'll have to run it all at 1/10 speed :(
-
01-08-2012 #9
-
01-08-2012 #10
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
cnc print a raspberry
By george uk in forum General DiscussionReplies: 7Last Post: 13-06-2014, 01:13 PM -
Raspberry Pi as a PC + Mach3 .. very possible
By Fivetide in forum General ElectronicsReplies: 2Last Post: 05-09-2012, 11:18 PM
Bookmarks