Show Posts
Pages: 1 [2] 3 4
16  Using Arduino / Project Guidance / Re: 3d printer using arduino uno on: October 31, 2013, 02:45:36 am
Anyone mentioned GRBL yet? It is a G-code interpreter for the Arduino.

Yes but have you found any sketch which work for Arduino Uno ?
17  Community / Bar Sport / Re: CNC ISO-G Code on: October 30, 2013, 04:49:33 am
3-axis CNC router based on Arduino UNO:
http://www.instructables.com/id/CHEAP-ARDUINO-CNC/

GRBL (https://github.com/grbl/grbl) isn't an Arduino sketch but it will run on an Arduino UNO.


Do you have any Arduino uno sketch working with g-code ?
18  Using Arduino / Project Guidance / Re: Need Help with 3d printing code and arduino uno on: October 30, 2013, 03:50:06 am
Grumpy_Mike, you are right about the defining!
These lines does not exist in the new library so I add them in the begginning of your code!
This is solved !

The Only Message I get now is

GCode_Interp328a:32: error: 'SPI' does not name a type

and it highlights: SPI SPI();  // initilise SPI object

but as I told you, checking SPI examples from the new library I think that
the "SPI SPI();" has to be replaced by SPI.begin();
and it has to be added inside void setup()

This clears all messages. What do you think ?
19  Using Arduino / Project Guidance / Re: 3d printer using arduino uno on: October 30, 2013, 03:07:22 am
I'd say no problem for a "simple" 3D printer. Shiftregisters have been invented and take care of all home switches so you do not need to dedicate precious pins on that. (Limit switches should be hardwired and "mechanical" and outside the Arduino - otherwise they fail to work if the software is glitchy.) Shiftregister the other way can reduce pin count for heater, motor enable and such like. That way you might even have your LCD (if it uses Serial or I2C or such like). The real problem when adding too many things is running out of time, you need to cycle through you main loop often enough to keep the steppers stepping evenly (unless have put that into interrupt/timer driven code - but that is trickier)

That is what I thought about pins. I do not want any too special 3D printer with too complicated capabilities  but
a basic one with almost limited capabilities that will work with arduino Duemilanove and using g-code. My basic aim is initially to see a completed work to study it , to understand it and finnaly to develop ip to my needs.
This is why I am asking for ready code.

I have read the following site http://www.instructables.com/id/Cheap-Arduino-Controlled-3-Axis-Pen-Plotter/
but I do not want the 3d printer to work by this way but using g-code.

Is it possible anyone to share his code ?
20  Using Arduino / Project Guidance / Re: Need Help with 3d printing code and arduino uno on: October 29, 2013, 10:26:37 am
However I think that with the way I was refered previously the problem with SPI was solved.
Do you think that it is wrong ?

I think that the main remainning issue now is about "digitalWrite(SS_PIN, LOW);"

What do you think ?
21  Using Arduino / Project Guidance / Re: Need Help with 3d printing code and arduino uno on: October 29, 2013, 10:03:11 am
Have you replaced WProgram.h: with Arduino.h  in the SPI library?

My SPI library was already updated with Arduino.h and I also rechecked it.
22  Using Arduino / Project Guidance / Re: Need Help with 3d printing code and arduino uno on: October 29, 2013, 09:45:27 am
I have now replaced all the WProgram.h: with Arduino.h and up loaded it to my site. So it should compile under IDE 1.0.5.
Don't forget to update the LCD library that is included as well. That needed a bit of a change as the write function it overwrites has changed to return a particularly useless value.

First of all thank you for your time. I added the lcd library as you said !

At the compiling process it showed problem at SPI SPI();
and it appeared the following message:

GCode_Interp328a:27: error: 'SPI' does not name a type
GCode_Interp328a.ino: In function 'byte expanderR(byte, byte)':
GCode_Interp328a:127: error: 'SS_PIN' was not declared in this scope
GCode_Interp328a:128: error: 'Spi' was not declared in this scope
GCode_Interp328a.ino: In function 'byte expanderW(byte, byte, byte)':
GCode_Interp328a:137: error: 'SS_PIN' was not declared in this scope
GCode_Interp328a:138: error: 'Spi' was not declared in this scope

So I deleted it and inside void setup() I added

SPI.begin();  // initilise SPI object

Also I changed Spi.transfer into SPI.transfer

I do not Know if it is right but I suppose that it is ok. What is your oninion ?

After this, another problem appeared at
digitalWrite(SS_PIN, LOW);

with the following message :

Mine_GCode_Interp328a.ino: In function 'byte expanderR(byte, byte)':
Mine_GCode_Interp328a:128: error: 'SS_PIN' was not declared in this scope
Mine_GCode_Interp328a.ino: In function 'byte expanderW(byte, byte, byte)':
Mine_GCode_Interp328a:138: error: 'SS_PIN' was not declared in this scope

what I have to do with the SS_PIN ?

may be needed inside pins.h something like

#define SS_PIN (byte) 10

Is it ok this pin and that code ?
23  Using Arduino / Project Guidance / Re: 3d printer using arduino uno on: October 29, 2013, 09:41:10 am
I have a reprap controlled by a Duemilanove. It is enough to control 3 axes, end stops, the extruder and hot end, heated bed and a fan, however I have now run out of pins so can't add anything else (LCD or 2nd extruder for example). 

There's easily enough memory, my firmware takes about 16k, the limitation is the number of pins. I'd recommend using a Mega and one of the more common electronic kits, as repraps can be very hard to set up and it's a lot easier to get help if your build is closer to the norm.

Hi Stimmer,
Can you upload the Code (sketch file) for Duemilanove ?
24  Using Arduino / Project Guidance / Re: Need Help with 3d printing code and arduino uno on: October 25, 2013, 09:11:58 am
any help ?
25  Using Arduino / Project Guidance / Re: Need Help with 3d printing code and arduino uno on: October 24, 2013, 04:17:07 am
You seem to be trying to compile code for the Processing language on an arduino!!!!

Take time to read what it says.

You were right .

I downloaded your Arduino_CNC code. I tried to compile it and it shows the following message.

GCode_Interp328a.pde:19:22: error: WProgram.h: No such file or directory
In file included from GCode_Interp328a.pde:22:
pins.h:21: error: 'byte' does not name a type
pins.h:47: error: 'byte' does not name a type
GCode_Interp328a:28: error: 'LiquidCrystalDircet' does not name a type
GCode_Interp328a:29: error: 'SPI' does not name a type
GCode_Interp328a.pde: In function 'void setup()':
GCode_Interp328a:76: error: 'lcd' was not declared in this scope
GCode_Interp328a.pde: In function 'byte expanderR(byte, byte)':
GCode_Interp328a:129: error: 'SS_PIN' was not declared in this scope
GCode_Interp328a:130: error: 'Spi' was not declared in this scope
GCode_Interp328a.pde: In function 'byte expanderW(byte, byte, byte)':
GCode_Interp328a:139: error: 'SS_PIN' was not declared in this scope
GCode_Interp328a:140: error: 'Spi' was not declared in this scope
process_string.pde: In function 'void process_string(char*, int)':
process_string:211: error: 'lcd' was not declared in this scope
stepper_control.pde: In function 'void init_steppers()':
stepper_control:26: error: 'stepperByte' was not declared in this scope
stepper_control.pde: In function 'void dda_checkStops()':
stepper_control:41: error: 'lcd' was not declared in this scope
stepper_control:45: error: 'lcd' was not declared in this scope
stepper_control:46: error: 'lcd' was not declared in this scope
stepper_control:47: error: 'lcd' was not declared in this scope
stepper_control:48: error: 'lcd' was not declared in this scope
stepper_control:49: error: 'lcd' was not declared in this scope
stepper_control:50: error: 'lcd' was not declared in this scope
stepper_control:51: error: 'lcd' was not declared in this scope
stepper_control.pde: In function 'void dda_move(long int)':
stepper_control:111: error: 'stepperByte' was not declared in this scope
stepper_control:126: error: 'stepperByte' was not declared in this scope
stepper_control:141: error: 'stepperByte' was not declared in this scope
stepper_control:151: error: 'stepperByte' was not declared in this scope
stepper_control.pde: In function 'void displaySteps()':
stepper_control:180: error: 'lcd' was not declared in this scope
stepper_control.pde: In function 'void lcdDisplayInt(long int)':
stepper_control:197: error: 'lcd' was not declared in this scope
stepper_control:201: error: 'lcd' was not declared in this scope
stepper_control.pde: In function 'void calculate_deltas()':
stepper_control:270: error: 'stepperByte' was not declared in this scope
stepper_control:270: error: 'stepperByte' was not declared in this scope
stepper_control:271: error: 'stepperByte' was not declared in this scope
stepper_control:271: error: 'stepperByte' was not declared in this scope
stepper_control:272: error: 'stepperByte' was not declared in this scope
stepper_control:272: error: 'stepperByte' was not declared in this scope
stepper_control:274: error: 'stepperByte' was not declared in this scope
stepper_control.pde: In function 'void enable_steppers()':
stepper_control:321: error: 'stepperByte' was not declared in this scope
stepper_control.pde: In function 'void disable_steppers()':
stepper_control:330: error: 'stepperByte' was not declared in this scope

For the message :   GCode_Interp328a.pde:18:22: error: WProgram.h: No such file or directory
I think that this is because in newer versions the WProgram.h was renamed into Arduino.h so
 I can just rename it (but if it is easy for you please send me the file in order to work perfect.)

The rest issues why do they appear ?
26  Using Arduino / Project Guidance / Re: Need Help with 3d printing code and arduino uno on: October 24, 2013, 03:49:12 am
Have you looked at the RepRap wiki and the RepRap forum. There are several variants of OpenSource 3D printer control software that works on Arduino hardware - for example Sprinter.

I am in the process of writing my own simplified software because I want it to control a small lathe as well as using the lathe mechanics as the base for a 3D printer. I am willing to share if you want to go that route but it is unlikely to be suitable for a complete novice. I am NOT prepared to put in the time to provide extensive support.

...R

I have looked at RepRap wiki but I did not find any sketch for arduino uno that can be compiled. All that I have tried show some errors. If you have on mind anything that works please send me the link.
Also I think that Sprinter is not compatible with arduino uno.

Of course and I would like to see your code ! Thank you !
27  Using Arduino / Project Guidance / Re: Need Help with 3d printing code and arduino uno on: October 23, 2013, 10:04:56 am

First of all thank you for your immediate response.

There you have done nice work,however I downloaded your code and when I try to compile then it shows that there as some problems.

CNC_Cotroller:12: error: variable or field 'serialEvent' declared void
CNC_Cotroller:12: error: expected `)' before 'cncPort'
CNC_Cotroller:16: error: variable or field 'controlEvent' declared void
CNC_Cotroller:16: error: 'ControlEvent' was not declared in this scope
CNC_Cotroller:8: error: 'import' does not name a type
CNC_Cotroller:9: error: 'import' does not name a type
CNC_Cotroller:11: error: 'Serial' does not name a type
CNC_Cotroller:15: error: 'ControlP5' does not name a type
CNC_Cotroller:16: error: 'Textlabel' does not name a type
CNC_Cotroller:17: error: 'Textlabel' does not name a type
CNC_Cotroller:31: error: expected constructor, destructor, or type conversion before 'int'
CNC_Cotroller.pde: In function 'void setup()':
CNC_Cotroller:34: error: 'size' was not declared in this scope
CNC_Cotroller.pde: In function 'void portConnect()':
CNC_Cotroller:49: error: expected unqualified-id before '[' token
CNC_Cotroller:51: error: 'ports' was not declared in this scope
CNC_Cotroller:51: error: 'class HardwareSerial' has no member named 'list'
CNC_Cotroller:53: error: 'class HardwareSerial' has no member named 'list'
CNC_Cotroller:56: error: 'class HardwareSerial' has no member named 'list'
CNC_Cotroller:57: error: 'println' was not declared in this scope
CNC_Cotroller:58: error: 'cnc' was not declared in this scope
CNC_Cotroller:58: error: expected type-specifier before 'Serial'
CNC_Cotroller:58: error: expected `;' before 'Serial'
CNC_Cotroller.pde: At global scope:
CNC_Cotroller:68: error: variable or field 'serialEvent' declared void
CNC_Cotroller:68: error: expected `)' before 'cncPort'
Controls:6: error: 'ControlP5' does not name a type
Controls.pde: In function 'void addControls()':
Controls:10: error: 'joyButton' was not declared in this scope
Controls:10: error: expected type-specifier before 'ControlP5'
Controls:10: error: expected `;' before 'ControlP5'
Controls:18: error: 'Radio' was not declared in this scope
Controls:18: error: expected `;' before 'r'
Controls:19: error: request for member 'setColorForeground' in 'r', which is of non-class type 'void ()()'
Controls:19: error: 'color' was not declared in this scope
Controls:20: error: request for member 'setColorActive' in 'r', which is of non-class type 'void ()()'
Controls:21: error: request for member 'setColorLabel' in 'r', which is of non-class type 'void ()()'
Controls:23: error: request for member 'add' in 'r', which is of non-class type 'void ()()'
Controls:24: error: request for member 'add' in 'r', which is of non-class type 'void ()()'
Controls:25: error: request for member 'add' in 'r', which is of non-class type 'void ()()'
Controls:26: error: request for member 'add' in 'r', which is of non-class type 'void ()()'
Controls:27: error: request for member 'add' in 'r', which is of non-class type 'void ()()'
Controls:28: error: request for member 'add' in 'r', which is of non-class type 'void ()()'
Controls:29: error: request for member 'deactivateAll' in 'r', which is of non-class type 'void ()()'
Controls:31: error: 'jogLabel' was not declared in this scope
Controls:33: error: 'XLabel' was not declared in this scope
Controls:35: error: 'YLabel' was not declared in this scope
Controls:37: error: 'ZLabel' was not declared in this scope
Controls:39: error: 'XmaxLabel' was not declared in this scope
Controls:41: error: 'XminLabel' was not declared in this scope
Controls:43: error: 'YmaxLabel' was not declared in this scope
Controls:45: error: 'YminLabel' was not declared in this scope
Controls:47: error: 'ZmaxLabel' was not declared in this scope
Controls:49: error: 'ZminLabel' was not declared in this scope
Controls:51: error: 'firstCommentLabel' was not declared in this scope
Controls:52: error: 'filePathNameLabel' was not declared in this scope
Controls:54: error: 'setButton' was not declared in this scope
Controls:54: error: expected type-specifier before 'ControlP5'
Controls:54: error: expected `;' before 'ControlP5'
Controls:71: error: 'controlButton' was not declared in this scope
Controls:71: error: expected type-specifier before 'ControlP5'
Controls:71: error: expected `;' before 'ControlP5'
Controls:78: error: 'stopButtton' was not declared in this scope
Controls:78: error: expected type-specifier before 'ControlP5'
Controls:78: error: expected `;' before 'ControlP5'
Controls.pde: In function 'void drawGraphics()':
Controls:91: error: 'background' was not declared in this scope
Controls:92: error: 'noFill' was not declared in this scope
Controls:93: error: 'stroke' was not declared in this scope
Controls:96: error: 'strokeWeight' was not declared in this scope
Controls:97: error: 'line' was not declared in this scope
Controls:108: error: 'fill' was not declared in this scope
Controls:111: error: 'quad' was not declared in this scope
Controls:112: error: 'quad' was not declared in this scope
Controls:113: error: 'quad' was not declared in this scope
Controls:114: error: 'quad' was not declared in this scope
Controls:117: error: 'quad' was not declared in this scope
Controls:118: error: 'quad' was not declared in this scope
Controls:119: error: 'quad' was not declared in this scope
Controls:120: error: 'quad' was not declared in this scope
Controls.pde: At global scope:
Controls:123: error: variable or field 'controlEvent' declared void
Controls:123: error: 'ControlEvent' was not declared in this scope
28  Using Arduino / Project Guidance / Re: Need Help with 3d printing code and arduino uno on: October 23, 2013, 09:39:59 am
Sorry my wrong. I did not finish what I wanted to say and the toipic created! Again Sorry.

What I would like is to built a 3d printer. I have read many articles about 3d printing.
I understood what is made on the above link but I want to make  an arduino uno 3d printer using the g-Code.
 My problem is that I can not found the whole code for arduino uno. I found make codes but not something complete or any ino file and some that I found had problems on compiling process.

For example I found a site that was intresting but I could not find the ino file.
http://dank.bengler.no/-/page/show/5471_gettinggrbl?ref=checkpoint

I need help.

Sorry for my bad English !
29  Using Arduino / Project Guidance / Need Help with 3d printing code and arduino uno on: October 23, 2013, 09:30:11 am
http://www.instructables.com/id/Cheap-Arduino-Controlled-3-Axis-Pen-Plotter/
30  Using Arduino / Programming Questions / Re: Arduino Uno + OBD2(ELM327) to read my car's performance ! on: January 09, 2013, 11:23:02 am
Thank you! I also find another site :

http://forums.justcommodores.com.au/electrical-wiring-questions/19665-diy-ecu-scantools-data-cables.html

At the end of the article it has a schematic with arduino.
As you understand more than I do , do you believe that this schematic works ?
Sorry for this question but I am really newbie and I understand little things about electronics!

http://forums.justcommodores.com.au/attachments/electrical-wiring-questions/23638d1153994657-diy-ecu-scantools-data-cables-obd.jpg
Pages: 1 [2] 3 4