Comments (14)
Hi ajn9494, this bug occurs when choose incorrect arduino port. At first, the arduino program must be closed before processing starts and microcontroller must be connected, otherwise processing unable to see arduino port. Pwdr GUI, shows that the COM1 available even if arduino disconnected and this bug occurs when you clicked it. But if arduino connected, GUI now shows that COM1 and COM4 (may differ in your system) available, so currently one of them is correct arduino port, it's COM1 for me.
P.S. the blinking of the L led may be changed in arduino firmware (pin 13) in this version it's blinking when arduino standby and lights permanently when printing.
from pwdr-model-0.1.
So you're saying that after I upload the firmware, I leave the USB connected, close Arduino program, and then open and run the Processing program? That's what I've been doing, but I'm still having trouble.
I better back up a minute too. The Arudino that is currently wired to the printer has been giving me an error code when uploading the firmware.
avrdude: stk500v2_ReceiveMessage(): timeout (//for about 5 or so lines)
avrdude: stk500v2_getsync(): timeout communicating with programmer.
I saw some forums about it saying something about reprogramming the 16u2 firmware with a DFU bootloader. Not sure about all that, but figured I'd mention.
Anyway, I had a second Arduino Mega and tried with that. Not wired in, just the USB. The firmware uploaded successfully. Also, the TX and RX lights were lit as I believe they were supposed to be. (The one currently wired in didn't even give me that). I tried to open the GUI again in Processing with the same steps I described above. It still wouldn't read the Arduino and would crash the program.
And just for the record, for the wired in Arduino, the GUI will display the port its connected to COM 3, but that will be the ONLY port shown. Even though is the correct port and NOT COM 1, it crashes. For the other Arduino, its COM 4 instead of COM 3. Figured I mention that too.
from pwdr-model-0.1.
Hm, I did not pay attention before, but now decided to check. Maybe my win7 buggy, the device manager shows that the arduino is connected to COM4 but the GUI sees it as connected to COM1
Anyway all works perfectly if I choose incorrect COM1, and crash when i choose correct COM4, maybe it specific only for my system.
And I do not understand, the RX and TX blinking when uploading firmware? Or lights when you trying to connect from GUI? On my arduino when it's standing by and GUI connected, only LEDs ON lights permanently and L blinking.
from pwdr-model-0.1.
@ajn9494 Try hardcoding your COM port in the Processing progam:
Serial.pde line 9: arduinoSerial = new Serial(this, Serial.list()[
selectPort], 9600);
Change selectPort with your COM port (e.g. COM3)
@micheal That's a weird bug, probably related to Windows.
On Tue, Jun 3, 2014 at 8:07 AM, Michael [email protected] wrote:
Hm, I did not pay attention before, but now decided to check. Maybe my
win7 buggy, the device manager shows that the arduino is connected to COM4
but the GUI sees it as connected to COM1
[image: device-manager]
https://cloud.githubusercontent.com/assets/3283492/3156442/21dfef34-eadd-11e3-99b1-0272db3e3c11.png
Anyway all works perfectly if I choose incorrect COM1, and crash when i
choose correct COM4, maybe it specific only for my system.And I do not understand, the RX and TX blinking when uploading firmware?
Or lights when you trying to connect from GUI? On my arduino when it's
standing by and GUI connected, only LEDs ON lights permanently and L
blinking.—
Reply to this email directly or view it on GitHub
#28 (comment).
from pwdr-model-0.1.
Is the AccepStepper library properly installed?
On Fri, May 30, 2014 at 11:46 PM, ajn9494 [email protected] wrote:
—
Reply to this email directly or view it on GitHub
#28 (comment).
from pwdr-model-0.1.
Hardcoding isn't working for either Arduino. It says "Cannot find anything named COM4" (COM3 for the wired in Arduino). As for the library, it should be alright. Is there a way to test if it was installed correctly?
from pwdr-model-0.1.
Have you tried hardcoding every COM port (just from 1 to 5 or so)?
When the program compiles correctly, the AccelStepper library is installed
correctly.
On Tue, Jun 3, 2014 at 6:12 PM, ajn9494 [email protected] wrote:
Hardcoding isn't working for either Arduino. It says "Cannot find anything
named COM4" (COM3 for the wired in Arduino). As for the library, it should
be alright. Is there a way to test if it was installed correctly?—
Reply to this email directly or view it on GitHub
#28 (comment).
from pwdr-model-0.1.
I think that's closer. But, what happens how is under the FloodFIll tab, at the very bottom, line 87, it highlights the closing curly brace and gives a new error.
syntax error, maybe a missing ] character
expecting RBRACK, found ','
processing.app.SketchException: Syntax error, maybe a missing ] character?
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:300)
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:197)
at processing.mode.java.JavaBuild.build(JavaBuild.java:156)
at processing.mode.java.JavaBuild.build(JavaBuild.java:135)
at processing.mode.java.JavaMode.handleRun(JavaMode.java:176)
at processing.mode.java.JavaEditor$20.run(JavaEditor.java:481)
at java.lang.Thread.run(Thread.java:662)
from pwdr-model-0.1.
At least it's not a missing ']'. Can you reproduce this error?
On Wed, Jun 4, 2014 at 3:19 PM, ajn9494 [email protected] wrote:
I think that's closer. But, what happens how is under the FloodFIll tab,
at the very bottom, line 87, it highlights the closing curly brace and
gives a new error.syntax error, maybe a missing ] character
expecting RBRACK, found ','
processing.app.SketchException: Syntax error, maybe a missing ] character?
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:300)
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:197)
at processing.mode.java.JavaBuild.build(JavaBuild.java:156)
at processing.mode.java.JavaBuild.build(JavaBuild.java:135)
at processing.mode.java.JavaMode.handleRun(JavaMode.java:176)
at processing.mode.java.JavaEditor$20.run(JavaEditor.java:481)
at java.lang.Thread.run(Thread.java:662)—
Reply to this email directly or view it on GitHub
#28 (comment).
from pwdr-model-0.1.
Yes, it happens repeatedly. I'll show you.
from pwdr-model-0.1.
@ajn9494 I think the best way to check that firmware was correctly uploaded is use serial monitor, just push tools>serial monitor in arduino program, if the arduino controller runs the program, you must see message like this, after few seconds
or SD initialization failed! if SD card not connected, and you may send commands to arduino like x, X, and see how coordinates will change.
If that not happens, then firmware uploaded not correctly, or serial port is busy, or the arduino is broken.
from pwdr-model-0.1.
You induced an bug by adding the pseudo array for the COM ports
Change the line:
arduinoSerial = new Serial(this, Serial.list()[COM1, COM2, COM3,
COM4, COM5], 9600);
With this:
arduinoSerial = new Serial(this, "COM1", 9600);
Or of course the COM port you need.
When connecting the GUI to the Arduino Mega doesn't work, use
Micheal's top tip of using the Arduino IDE's serial monitor.
On Thu, Jun 5, 2014 at 4:04 PM, Michael [email protected] wrote:
@ajn9494 https://github.com/ajn9494 I think the best way to check that
firmware was correctly uploaded is use serial monitor, just push
tools>serial monitor in arduino program, if the arduino controller runs the
program, you must see message like this, after few seconds
[image: serial_monitor]
https://cloud.githubusercontent.com/assets/3283492/3188215/a88a3846-ecb8-11e3-9b39-4da5bc910178.png
or SD initialization failed! if SD card not connected, and you may send
commands to arduino like x, X, and see how coordinates will change.
If that not happens, then firmware uploaded not correctly, or serial port
is busy, or the arduino is broken.—
Reply to this email directly or view it on GitHub
#28 (comment).
from pwdr-model-0.1.
Changing that line of code was successful! The GUI is now able to read both of my Arduinos. Thanks a million. :) :)
Now, I am still having trouble with the Arduino that is currently hooked up to the printer. I'm still getting timeout error; and when I use the serial monitor, nothing appears.
The error code is the same as what I had above in my second comment:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
I saw on some other computer forums something about "16u2" and reprogramming the Arduino
with "a DFU bootloader". Not sure what all that means, but figured I'd mention.
I'm not as concerned about this since I do have the other Arduino that IS
reading the firmware. But, I wouldn't mind learning why this one is having trouble.
from pwdr-model-0.1.
I'm not the Micheal you are looking for. I like Arduino, but that's not me. ;)
from pwdr-model-0.1.
Related Issues (20)
- Stepper Motors HOT 15
- Progress HOT 6
- Problems getting the software running HOT 13
- Unable to print voids HOT 2
- Head refilling :-) [edit: Pwdr_GUI_V0_3 on Windows 7] HOT 27
- size of clear plastic Plexiglas HOT 8
- Printer head location, ink dispersal HOT 26
- Pause the printing HOT 5
- Pause button code a glass half full/empty HOT 1
- Y axis distance HOT 2
- Printing materials/binders HOT 2
- Arduino Setup and Belts HOT 37
- Laser cut Acrylic HOT 2
- This Project ist a fake
- Usage of firmware, please help me out HOT 2
- USB instead of SD possible?
- Error when connecting to COM port
- Calibration issues HOT 6
- lawercut drawing files? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pwdr-model-0.1.