Thread: Any arduino coders here?
-
23-01-2013 #11
for those who dont know what they are... (although a bit american - dont you just hate americans talking in youtube video?) anyway, its this video that made me buy one
Arduino High Speed Photography Trigger - YouTube
-
The Following User Says Thank You to kingcreaky For This Useful Post:
-
23-01-2013 #12
-
23-01-2013 #13
this is what started me off..
seeing a friend link this, then asking said friend wtf it was, him then telling me he has one, that he has it connected to his raspberry pi and can control pretty much any lighting in his house from any mobile phone with a web browser was what got me hooked
-
23-01-2013 #14
Yup.
I'm still doing simple stuff with arduino uno's and haven't yet found an excuse to get some 32bit goodness. Got to echo the sentiment that it is a fantastic tool and a fantastic time to get into electronics or making stuff in general.
-
24-01-2013 #15
-
24-01-2013 #16
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.
-
24-01-2013 #17
Am at the bolting `sketches` together level, but even for a total non programmer like me possible to get it do useful things, did a pan tilt mount with analogue stick and RC servos for a CCTV camera in about 20 minutes from Arduino libraries and sletches. Kinda reminds me of typing listings in from magazines on a ZX81 :-)
For colo(u)r organ duties, the MSGEQ7 makes life super easy, 7 band spectrum analyzer, very cheap on ebay, as are Arduino shields
Uduino.com - Using a MSGEQ7 EQ with Arduino
-
24-01-2013 #18
My Shizuoka has an old relay logic array to control the tool changer. I am in the process of changing this to an arduino - or I was until I came across CuBloc. It uses an Arduino platform and programs in Basic and Ladder. Again the software is free, but for PLC use they look great. I like C# and have no great knowledge of Basic but I do fancy getting an insight into Ladder.
http://www.audon.co.uk/cubloc_cpu/CB210.htmlLast edited by Zadig; 24-01-2013 at 06:48 AM.
-
24-01-2013 #19
Zadig, what Shizouka have you got?
I recently bought a ST-N complete with a Summit one arm bandit.
-
24-01-2013 #20
Thread Information
Users Browsing this Thread
There are currently 6 users browsing this thread. (0 members and 6 guests)
Similar Threads
-
Help Make 1st Step - Wiring Up Drivers to Motor and Arduino
By Treemonkey in forum General ElectronicsReplies: 10Last Post: 25-04-2013, 05:47 PM -
CNC Controller with Arduino and Gamepad
By Christian Knuell in forum Electronic Project BuildingReplies: 2Last Post: 20-10-2012, 10:25 PM -
Imported L298 Arduino Modules
By boldford in forum Motor Drivers & ControllersReplies: 4Last Post: 30-07-2012, 11:06 PM -
DIY arduino CNC 2 axis table
By ruthharm84 in forum Electronic Project BuildingReplies: 5Last Post: 06-05-2012, 01:54 AM
Bookmarks