Zarplotter 4-motor drawing machine
Home › Forum › Everything Else › Zarplotter 4-motor drawing machine
Tagged: zarplotter
- This topic has 114 replies, 14 voices, and was last updated 1 year, 9 months ago by
cpcoe.
-
AuthorPosts
-
2019-05-06 at 13:05 #23214
cpcoe
Participanthmm, I have searched all the files in the makelangelo-firmware folder and could not find a reference to printconfig(). any clues as to where I might look further?
2019-05-06 at 18:53 #23216cpcoe
Participantok, silly me, I found printConfig in the makelangelo-firmware file, but this file already has eeprom.h included, what gives? I also don’t see loadVersion() within the prinConfig() function, is that strange?
2019-05-06 at 20:26 #23217Dan
KeymasterI would check for a missing } somewhere above it in the code.
2019-05-07 at 07:39 #23220cpcoe
ParticipantDan, thanks for all the help here!
so far I’ve tackled a bunch of errors by correcting possible syntax issues, yet more keep popping up, hopefully I’m not just chasing my tail!
is it normal to have this many errors?
full circle and back again to printConfig. this is the one that stumps me currently:
Makelangelo-firmware:148:16: error: expected constructor, destructor, or type conversion before ‘;’ token
printConfig(); {
2019-05-07 at 07:52 #23222Dan
KeymasterIt isn’t. It all compiled ok the last time I used it. I’ll poke the code today and see if it’s something I did. Give me ~an hour.
2019-05-07 at 09:22 #23224Dan
KeymasterYeah, there’s definitely something sketchy with your copy. I have recompiled mine with BOARD_RAMPS and MACHINE_ZARPLOTTER to be sure it’s ok.
Grab the latest from github from the dev branch: https://github.com/MarginallyClever/Makelangelo-firmware/tree/dev2019-05-08 at 07:47 #23232cpcoe
Participantif this compiles nicely for you then it stands to reason I must be doing something wrong. this may happen in the beginning, I follow the steps in the README file but there are other steps I end up having to take that aren’t listed there, such as actively importing all the .h files in the sketch and having to download the U8glib.h file online in order to import it to the sketch. this is all stuff I’m assuming is normal but maybe its actually where the confusion begins? please advise
after starting over with the latest from GitHub and going through the extra steps above, I get stuck much earlier in the compiling than before:
In file included from C:\Users\casey\AppData\Local\Temp\arduino_build_949207\sketch\configure.h:208:0,
from C:\Users\casey\Downloads\Makelangelo-firmware-master\Makelangelo-firmware-master\Makelangelo-firmware\Makelangelo-firmware.ino:11:
motor.h:34:17: error: ‘NUM_MOTORS’ was not declared in this scope
SegmentAxis a[NUM_MOTORS+NUM_SERVOS];
in motor.h there is no include for robot_zarplotter.h, so I figure it needs this for reference to the #define NUM_MOTORS contained within. I’ve added this include several places in motor.h with no luck, thoughts?
2019-05-08 at 09:01 #23233Dan
KeymasterCheck that you have latest arduino.
All the files from the project should be in a folder named Makelangelo-firmware. That’s the cop and h and ino files.
Opening th ino file should create lots of tabs in the app.
Set the tools>Board type to mega 2560
In configure.h, set the board and the machine style.compile.
2019-05-08 at 17:25 #23239cpcoe
Participantok, that makes sense, but for me the INO file opens and there is only one tab.
this must be very tiring for you, I apologize 🙂
I believe I’m current with Arduino and the makelangelo versions, I’m very new to all of this so the answer is most likely a very simple step I’ve missed!
2019-05-08 at 19:38 #23240Dan
KeymasterIf the folder does not match the ino name then arduino MOVES THE FILE to a sub-folder with the correct name. This has caused me no end of grief.
2019-05-12 at 21:55 #23264cpcoe
Participantthx, that was dead on, I found the sub-folder and pulled the file back out. now when I open the INO file I get all the tabs:)
however, when I attempted to compile I still had to feed in external version of u8glib.h and clib/u8g.h.
compiling with these got me all the way to the “linking everything together stage but then I received:
C:\Users\casey\AppData\Local\Temp\cc7Id92B.ltrans1.ltrans.o: In function `main’:
<artificial>:(.text.startup+0x198): undefined reference to `u8g_Begin’
I don’t know what “function ‘main'” is but I tracked down u8g_Begin and did not see any obvious syntax issues,
I’m assuming (probably wrongly) that my problem is with these .h files and tied to the fact that I’m having to import them. where are they normally found?
2019-05-13 at 09:47 #23270Dan
Keymasterhttps://www.arduinolibraries.info/libraries/u8glib
should be install-able through the arduino libraries feature. search for u8g.
2019-05-13 at 19:14 #23278cpcoe
Participantwow, Dan, what a rollercoaster! but I am having fun 🙂
it seems that I had imported the u8glib files, without using the Arduino library manager, so they were tabs in the sketch. I’ve since deleted these and done as you said and now everything compiles nicely! However, at the very end it mentions that the memory is low… normal?
the next issue is the LCD screen is blank, I’ve double checked that configure.h identifies the correct LCD and tweaked the contrast pot any ideas?
2019-05-13 at 20:02 #23279Dan
Keymasterum… if you have a standard 4×20 lcd like we use then you shouldn’t need u8g. u8g is for the full graphics lcd. so probably switch which lcd is being used and it might work then. why didn’t i think of that earlier…
2019-05-13 at 20:51 #23281cpcoe
Participantoh, yes, the full graphics LCD is what I have, sorry I wasn’t clear! I believe I have uncommented the correct LCD in configure.h:
// only uncomment one of these options
#define LCD_IS_128X64 // reprapdiscount Full Graphic Smart LCD Controller
//#define LCD_IS_SMART // reprapdiscount Smart LCD Controller (including XXL model) -
AuthorPosts
- You must be logged in to reply to this topic.