Budget: $200
Robot: Arduino uno with CNC V3 shield (com1) and A4988 stepper drive chips for x and y. 9g servo for z.
Drawing area: A4 paper
Operating system: Windows 10
Goal: control CNC plotter with mouse in processing, I want to be able to draw with my mouse. So far I have only found cnc software that works with gamepads. I want it to work with exact coordinates (if I for example I start drawing in say x50y50 in processing, it corresponds to x50y50 on the paper with the arduino). This is important because there might be a time lag, since the mouse in processing is likely faster than the arduino controlled cnc and I want it to work in real time.
I found this thread with code that didn't work (which was for a mac computer as well): processing example controlling stepper x y - Interfacing w/ Software on the Computer - Arduino Forum
I have never paid for gigs on here before but if paypal fnf payment works for you then that would be great.
Are you happy, when you get a way to implement it? i.e. I tell you what 3 lines you have to put in yout program to make it work?
zwieblum:
Are you happy, when you get a way to implement it? i.e. I tell you what 3 lines you have to put in yout program to make it work?
I'm unsure what you mean but if you can provide me with what I described in the OP with just adding 3 lines of code to the example in the link I provided and it works great, then yes I'll be happy and I'll pay you.
Ok. Install GRBL on the Arduino (if you have not done yet, you need the version that povides Z as RC servo). Configure GRBL according to your machoine. Then send from your processing program after eache mouse-move-event this sequence to GRBL over serial:
G0 X100 Y200
Note: "100" is the absolute coordinate for X, "200" the same for Y, you replace it with the mousees absolute coordinate. The string needs to end with "\n" or "\r\n".
Note 2: when you want to move te servo, send G0 Z123
where "123" is a value for up/down absolute. Check your GRBL code, what's needed. That's all.
zwieblum:
Ok. Install GRBL on the Arduino (if you have not done yet, you need the version that povides Z as RC servo). Configure GRBL according to your machoine. Then send from your processing program after eache mouse-move-event this sequence to GRBL over serial:
G0 X100 Y200
Note: "100" is the absolute coordinate for X, "200" the same for Y, you replace it with the mousees absolute coordinate. The string needs to end with "\n" or "\r\n".
Note 2: when you want to move te servo, send G0 Z123
where "123" is a value for up/down absolute. Check your GRBL code, what's needed. That's all.
Please note that both the processing code and the arduino code example in the link I provided was written by another member of this forum. I'm really terribly inexperienced with programming, if you could upload the arduino code and the processing code with the neccessary things you wrote and it works then I'll be glad to pay you the money to a paypal adress that you provide. Also note I want the cnc to move corresponding to where the mouse is in the processing window. Only when the mouse is seen within the borders of this processing window should the cnc move.
I'm going to bed soon but I'll check in here tomorrow and you have my word I'll pay you if you can provide me with this.
Sorry, but you link to a different thread with 2 code sniplets where the writer of the code admits "it does not work". All I can tell you is get GRBL, get it up running (X,Y and Z) and then we can continue. Anything else is in vain.