Thread: Any arduino coders here?
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:
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
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.
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.
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
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.
Last edited by Zadig; 24-01-2013 at 05:48 AM.
Zadig, what Shizouka have you got?
I recently bought a ST-N complete with a Summit one arm bandit.
By Treemonkey in forum Resources & HelpReplies: 10Last Post: 25-04-2013, 04:47 PM
By Christian Knuell in forum Electronic Project BuildingReplies: 2Last Post: 20-10-2012, 09:25 PM
By boldford in forum Motor Drivers & ControllersReplies: 4Last Post: 30-07-2012, 10:06 PM
By ruthharm84 in forum Electronic Project BuildingReplies: 5Last Post: 06-05-2012, 12:54 AM