Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: 1 [2]
Author Topic: Busy message after initiating controller...
Larque
Newbie
Posts: 7
Permalink
Post Re: Busy message after initiating controller...
on: May 13, 2017, 18:55
Quote

Pffff, Kind of.
Uploaded the firmware, now the polargraphcontroller has the greens and uploads everything, but, nothing moves at all. Opened the Arduino to see the monitor, weird end lines after the READY_200 that goes long long long, look:

.....................⸮POLARGRAPH ON!
v1.4.2
Hardware: POLARSHIELD
Servo 9
Loaded machine width:1172
Loaded machine height:1400
Loaded mm per rev:95.00
Loaded motor steps per rev:200
Loaded motor step multiplier:8
Loaded machine name:PGXXABCD
Loaded down pos:90
Loaded up pos:180
Didn't load penWidth: 0.80
Recalc mmPerStep (0.06), stepsPerMM (16.84)
Recalc pageWidth in steps (19738)
Recalc pageHeight in steps (23578)
Card failed, or not present
Autostart file couldn't be opened: AUTORUN.TXT
Released motors
..................................................................................................................... 
READY_200
......................................................................................................................................................................................... [these dot lines go almost to the infinite]
READY_200

I uploaded the firmwware that you just mention. I did it twice; through the mac app you recommended and with Xloader too on Windows 8 running on VMware. The same result.

Any idea?

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Busy message after initiating controller...
on: May 13, 2017, 23:59
Quote

It might not seem like it, but that's progress - penwidth, stepsperrev and stepmultiplier have all been loaded properly.

The feature of this version is that comms debug is configurable at runtime, and is ON by default. So if you open the serial monitor, you'll see it furiously processing nothing (each dot represents each time it checks it's buffer). If you send a command like a "penwidth", I hope you'll see the command be buffered and received on character at a time, so you can confirm the command is even being received.

So in the serial monitor, type

C02,0.8,END
(make sure set line endings to new line)
and also a "set home"

C09,2000,2000,END

(The 2000s above are guesses to what you actual set home position will be)

Turn off auto scroll too, that drives me demented.

Larque
Newbie
Posts: 7
Permalink
Post Re: Busy message after initiating controller...
on: May 14, 2017, 09:12
Quote

Good morning. I know its an advance, so did the homework and these are the monitor results:

⸮........................................................................⸮POLARGRAPH ON!
v1.4.2
Hardware: POLARSHIELD
Servo 9
Loaded machine width:1172
Loaded machine height:1400
Loaded mm per rev:95.00
Loaded motor steps per rev:200
Loaded motor step multiplier:8
Loaded machine name:PGXXABCD
Loaded down pos:90
Loaded up pos:180
Didn't load penWidth: 0.80
Recalc mmPerStep (0.06), stepsPerMM (16.84)
Recalc pageWidth in steps (19738)
Recalc pageHeight in steps (23578)
Card failed, or not present
Autostart file couldn't be opened: AUTORUN.TXT
Released motors
...........................
READY_200
........ch: C
buf: C
Bufpos: 1
.ch: 0
buf: C0
Bufpos: 2
.ch: 2
buf: C02
Bufpos: 3
.ch: ,
buf: C02,
Bufpos: 4
.ch: 0
buf: C02,0
Bufpos: 5
.ch: .
buf: C02,0.
Bufpos: 6
.ch: 8
buf: C02,0.8
Bufpos: 7
.ch: ,
buf: C02,0.8,
Bufpos: 8
.ch: E
buf: C02,0.8,E
Bufpos: 9
.ch: N
buf: C02,0.8,EN
Bufpos: 10
.ch: D
buf: C02,0.8,END
Bufpos: 11
.ch: 

Term'd
buf: C02,0.8,END
Bufpos: 11
xbuf: C02,0.8,END
Last comm: C02,0.8,END...
3inS: C02,0.8,END
1inS: C02,0.8,END
2inS: C02,0.8,END
4inS: C02,0.8,END
2Sub: ,END
0
In: C02,0.8,END...
P: 0-0:C02
P: 1-1:0.8
P: 2-1:END
P: 3-1:
P: 4-1:
P: 5-1:
Command:C02, p1:0.8, p2:END, p3:, p4:
Params:1
MSG,I,Changed Pen width to 0.80mm
Min segment size for penSize 0.80: 13 steps.
MSG,I,Minimum grid size is 26 (3)
READY_200
................................................................................ch: C
buf: C
Bufpos: 1
.ch: 0
buf: C0
Bufpos: 2
.ch: 9
buf: C09
Bufpos: 3
.ch: ,
buf: C09,
Bufpos: 4
.ch: 2
buf: C09,2
Bufpos: 5
.ch: 0
buf: C09,20
Bufpos: 6
.ch: 0
buf: C09,200
Bufpos: 7
.ch: 0
buf: C09,2000
Bufpos: 8
.ch: ,
buf: C09,2000,
Bufpos: 9
.ch: 2
buf: C09,2000,2
Bufpos: 10
.ch: 0
buf: C09,2000,20
Bufpos: 11
.ch: 0
buf: C09,2000,200
Bufpos: 12
.ch: 0
buf: C09,2000,2000
Bufpos: 13
.ch: ,
buf: C09,2000,2000,
Bufpos: 14
.ch: E
buf: C09,2000,2000,E
Bufpos: 15
.ch: N
buf: C09,2000,2000,EN
Bufpos: 16
.ch: D
buf: C09,2000,2000,END
Bufpos: 17
.ch: 

Term'd
buf: C09,2000,2000,END
Bufpos: 17
xbuf: C09,2000,2000,END
Last comm: C09,2000,2000,END...
3inS: C09,2000,2000,END
1inS: C09,2000,2000,END
2inS: C09,2000,2000,END
4inS: C09,2000,2000,END
2Sub: ,END
0
In: C09,2000,2000,END...
P: 0-0:C09
P: 1-1:2000
P: 2-2:2000
P: 3-2:END
P: 4-2:
P: 5-2:
Command:C09, p1:2000, p2:2000, p3:END, p4:
Params:2
Engaged motors.
SYNC,2000,2000,END
READY_200
...........................................
READY_200

Opened polargraphcontroller and its the same. Uploads right, green letters on but nothing moves.

Yes, auto scroll is a nasty thing. Hate it too.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Busy message after initiating controller...
on: May 14, 2017, 22:19
Quote

Aha, that's good news, and progress. Commands are received via USB and even acted upon. Right, the problem is that a command like c09 should be locking the motors, and it isn't.

Stupid questions: The 9v power supply is plugged in?
The motors are connected?

Does the servo pen lift work? Either from the screen or via USB?

The servo works on the 5v supplied by usb if it's connected. If the 9v is connected, then it works off that, and the internal step down transformer.

I can't think of a plausible reason that the motor power wouldn't work, provided 9v is being supplied, and the motors are connected. It certainly worked physically before shipping - it's very possible some shoogling in-transit has done something. I'm away on holiday now, but I'll be back in the workshop at the end of the week, so if you're still having problems by then I'll ship a replacement unit and we'll try again!

Larque
Newbie
Posts: 7
Permalink
Post Re: Busy message after initiating controller...
on: May 15, 2017, 10:58
Quote

Its moving! Yeah! I did everything again. Re-uploaded, unplugged and plugged and all that and now its moving. I noticed that in the polargraphcontroller, the Pen lift pen Drop commands were working in inverse. The servo was working from the LCD without problems. the motors did not. But now everything is moving fine.
I will try to put my first drawings on the board tonight.

Thanks for the support. Have an excellent holiday!

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Busy message after initiating controller...
on: May 20, 2017, 20:30
Quote

The pen lift inversion isn't unusual, and it's easy to fix - On the setup tab, you can set the "up" position and the "down" position, and then "upload lift range" to save it into the machine's memory.

By default,
Pen up is 180
Pen down is 90

But I can't remember if the defaults are the right way around! It was wrong for a while - not sure if I fixed it.

You can also do "test lift range" to test it. You can also use the touchscreen to modify the positions, and it'll save it into EEPROM, but it won't update the settings in the controller.

sn

Larque
Newbie
Posts: 7
Permalink
Post Re: Busy message after initiating controller...
on: May 22, 2017, 10:58
Quote

First, thank you for the follow up. I did it, its working fine. But a second issue showed up.
I cannot use it without being connected to the computer. When I navigate to the file in the touch screen, in the screen of "Prev File / Next File" the "click" goes to the button in its left. Therefore I cant push the "Draw this file" because it triggers the "Next File" button. This happens in all the menus with the third column of buttons, the ones that are in the right, they trigger the buttons in the middle. I tried re-uploading the firmware but nothing happens. I am digging into the Arduino touchscreen file but do not know where to check the error. Any cue?

P.S. The function triggered from the other buttons work fine: Pen Up and Down, Motors On, Navigate, etc.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Busy message after initiating controller...
on: May 22, 2017, 22:11
Quote

Funnily (or not that funnily, depending on how much patience you have left), I noticed the exact same thing on Sunday, while doing some hacking on a PolargraphSD here. It had the same version of firmware on it. I _could_ get the correct button pressed eventually, but there was lots of tippy tapping (over at the right hand side of buttons) to get it done.

I'm going to double-check the calibration data, and build a new version of the firmware and I'll upload it tomorrow once I've had a chance to test it.

If you want to try it yourself, you can open the file UTouchCD.h that is in libraries/UTouch directory, make sure the lines

// for the 2.4in screen
#define CAL_X 0x03CBC0C4UL
#define CAL_Y 0x03D901BEUL
#define CAL_S 0x000EF13FUL

are in it, and all the other lines are gone, or commented out.

Give that a shot. OR! Try the old v1.4 firmware again (https://github.com/euphy/polargraph_server_polarshield/blob/v1.4/polargraph_server_polarshield.ino.hex).

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Busy message after initiating controller...
on: May 24, 2017, 22:05
Quote

I've just pushed a fixed hex file - you were right the calibration was off with the last one.

You can get the updated hex file from https://github.com/euphy/polargraph_server_polarshield, it isn't bundled yet. I also set the verbose comms to be off by default.

sn

Larque
Newbie
Posts: 7
Permalink
Post Re: Busy message after initiating controller...
on: June 17, 2017, 13:25
Quote

Back to the drawing board. Thank you! It works nice.

I had run some drawing proofs, and the BUSY problem started again, with some rare stuff around it.

1. I cannot run the files in the card if it is not connected with the USB. Beside the power plug. I just cant "click" on the screen. When it is connected (the USB), the "Draw this file" runs nice.

2. When connected to the USB, cant send anything directly. It get stuck on the yellow "BUSY" message. The TFT screen, shows the command it has supposedly been executed but that is not happening.

3. I don't know where to tinker with the steppers/motors I run to tests, but the lines looks like this: Image Image Image
Same goes with the "square" pixels
Image

I think is something in the settings I am missing. If you have some cue would be really nice to know it.

My stuff:
-OS Sierra 10.12.5
-Polarshield from this year

Pages: 1 [2]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.027 seconds.