Coder Social home page Coder Social logo

polargraphcontroller's Introduction

polargraphcontroller

Polargraph controller Copyright Sandy Noble 2018.

This is a desktop application for controlling a polargraph machine, communicating using ASCII command language over a serial link.

The [latest releases bundle] (https://github.com/euphy/polargraphcontroller/releases/latest) contains copies of all the libraries that I use, as well as all the source, and compiled versions of the code where sensible.

How to run it from source.

[email protected] http://www.polargraph.co.uk/

polargraphcontroller's People

Contributors

euphy avatar jerabina avatar murkit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

polargraphcontroller's Issues

When window is scaled buttons are not usable

Ubuntu 14.04 32bit polargraphcontroller 2.4.0

I have downloaded compiled version and compiled one myself.
The result is the same. For some reason I have 31 ttyS* serial ports.
So program adds ttyUSB to the end of that list
...
Adding /dev/ttyS31
Adding /dev/ttyUSB0
In order to get my ttyUSB port, I have to resize the Serial Port window, but inside it only first ten buttons are clickable, so I cannot choose my port anyway.

Here is a screenshot http://pasteboard.co/56E11nDbK.png

And the main window behaves the same exact way. If resized of full screened, most of buttons become unusable.

Concurrentmodificationexception in debugging console after crash

After going to Generate Commands, the whole program becomes unresponsive. After the crash it highlights line 1624,

" if (forceRebuild || (commandQueue.hashCode() != lastCommandQueueHash)) "

As well as reading "Concurrentmodificationexception" in the console. I have downloaded the recommended Processing version as well as other software. If I'm not mistaken, this was a problem fixed earlier in line 2049?

" }
catch (ConcurrentModificationException cme)
{
// not doing anything with this exception - I don't mind if it's wrong on the screen for a second or two.
println("Caught the pesky ConcurrentModificationException: " + cme.getMessage());
} "

OSX: Polargraph "is damaged and can’t be opened. You should move it to the Trash."

This is for those who come after me: I got this error when trying to run the OSX binary from 2017-05-10-23-30 (https://github.com/euphy/polargraphcontroller/releases). I found the answer on how to fix it from this stack overflow post: https://apple.stackexchange.com/questions/262355/xxx-cant-be-opened-you-should-move-it-to-trash-for-flash-projector-applicat

sudo spctl --master-disable

I suspect its this Gatekeeper that is causing the other problems which prompted Sandy to remove the OSX binary from the release - not any real issue.

Sandy - it'd be nice if there were build instructions in the readme. I want to run the latest version but don't know how to build it, and I'm using Mac. For now I'm just running this older version.

This issue can be marked closed.

Ubuntu error on port

Running the .sh from https://github.com/euphy/polargraphcontroller/releases/tag/2016-03-29-10-23. When I change port settings to controller.machine.serialport=/dev/ttyUSB0 (it is correct and works when testing from arduino ide) in default.properties.txt i get the following error when starting the shellscript:

mskogly@stav4:~/Downloads/PG$ sudo ./polargraphcontroller
Running polargraph controller
Successfully loaded properties file /home/mskogly/Downloads/PG/default.properties.txt
machine size: 29059.0, 19926
windowHeight:362
Polygonizer: 0
PolygonizerLength: 0.0
Finished loading configuration from properties file.
ControlP5 2.2.5 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
Java HotSpot(TM) Server VM warning: You have loaded library /home/mskogly/Downloads/PG/lib/libjSSC-2.8.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
Serial ports available on your machine:
/dev/ttyS0 /dev/ttyS1 /dev/ttyS2 /dev/ttyS3 /dev/ttyS4 /dev/ttyS5 /dev/ttyS6 /dev/ttyS7 /dev/ttyS8 /dev/ttyS9 /dev/ttyS10 /dev/ttyS11 /dev/ttyS12 /dev/ttyS13 /dev/ttyS14 /dev/ttyS15 /dev/ttyS16 /dev/ttyS17 /dev/ttyS18 /dev/ttyS19 /dev/ttyS20 /dev/ttyS21 /dev/ttyS22 /dev/ttyS23 /dev/ttyS24 /dev/ttyS25 /dev/ttyS26 /dev/ttyS27 /dev/ttyS28 /dev/ttyS29 /dev/ttyS30 /dev/ttyS31 /dev/ttyUSB0
About to connect to serial port in slot 0
Get serial port no: 0
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: jssc.SerialNativeInterface.openPort(Ljava/lang/String;Z)J
at jssc.SerialNativeInterface.openPort(Native Method)
at jssc.SerialPort.openPort(SerialPort.java:158)
at processing.serial.Serial.(Unknown Source)
at processing.serial.Serial.(Unknown Source)
at polargraphcontroller.setup(polargraphcontroller.java:620)
at processing.core.PApplet.handleDraw(PApplet.java:2361)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:240)
at processing.core.PApplet.run(PApplet.java:2256)
at java.lang.Thread.run(Thread.java:745)

With Ramps Steppers Not Working !

Demo of Accelstepper libraries is working with multiple step motors.

ifndef MOTHERBOARD

//#define MOTHERBOARD POLARSHIELD

define MOTHERBOARD RAMPS14

//#define MOTHERBOARD TFTSHIELD

endif

//#define USE_LC

Check pins of motors with

define DEBUG

With this firmware motors just have a small buzzing.

Having issues with speed on homebrew machine.

i have played with this for 9 hours now and cant get the speed to increase. i can drop motor max speed, to about 200 and notice slight decrease from allready slow. i try 400, 800, 1000, 1200,1500,3000,50000,80000 and cant seam to affect speed. checked and changed stepping info, recompiled with different settings. it draws slow but will home fast...... any ideas?
seams to be waiting on BUSY: C17 ,###,###,#,END

it does about 1 line of code a seccond...

How to run the controller on Rpi?

I've been running the compiled version of the controller on my Linux Ubuntu machine but now i'd like to set it up on a Raspberry Pi. I don't see any compiled files, so I tried running it from the Processing source code. But Processing is only available in version 3 for the Rpi, and i see the controller is written for Processing 2.2.1
Any workaround?
Thanks

Window resizing on Mac OS 10.10

If the window is resized everything that moved into the area that revealed because of the resizing becomes inaccessible. only fix is to be to start with the desired window size.

  • Making the window smaller has no negative effects

Communication error ?

Hi ,
I just build simple polargraph based on your firmware for polarshield.
My HW is arduino mega with ramps1.4. Correctly edited source for ramps and compiled without problem.
Started PolargraphController set serial port and messages appears. seems to OK.

FW and Controller from 2016-03-29

`Successfully connected to port /dev/ttyACM0

incoming: ���POLARGRAPH ON!
incoming: v1.3.1
incoming: Hardware: RAMPS14
incoming: Servo 4
incoming: Loaded machine width:650
incoming: Loaded machine height:255
incoming: Loaded mm per rev:95.00
incoming: Loaded motor steps per rev:67
incoming: Loaded motor step multiplier:18432
incoming: Loaded machine name:PG01
incoming: Loaded down pos:90
incoming: Loaded up pos:180
incoming: penWidth: 0.00
incoming: Recalc mmPerStep (0.00), stepsPerMM (12999.41)
incoming: Recalc pageWidth in steps (8449617)
incoming: Recalc pageHeight in steps (3314849)
incoming: Card failed, or not present
incoming: Released motors
incoming: READY_200
incoming: READY_200
`

but if i click to queue this appears in console:
`queue clicked.

Dispatching command: C02,1.02,END
Last command:C02,1.02,END
incoming: MSG,E,_������������������������������������������������������������������������������������
/ etc, etc , lots of these chars.

ending with this

Bad format for hardware version - defaulting to ATMEGA328 (Uno)

and finaly after these strange chars
"not recognized"
`

Request for reversed order in serial dropdown

Could you make the order of ports in serial dropdown reversed?

Like that:
No serial conneciton
/dev/ttyUSB0
/dev/ttyS31
/dev/ttyS29
...

Just to be able not to scroll so much, USB would appear near the top.

I tried, but didn't manage to do it myself. As it is not possible to make size of dropdown bigger than 150, because lower items are not selectable then.

Repo and file confusion.

I am really confused by all the files that are essentially the same in the polarshield repo. Plus all the repos that have similar names but do not give enough info to differentiate them from each other. The entire reason to use Github and version control is so you do not have hundreds of files lying around. Instead you have the newest only and use the commit history to get to the old ones.

So I guess my question is which files and repository are the latest for Polargraph firmware, control software and the polarshield? Why are there so many different repos that based on the few readme's are the same program? Maybe?

Google code is even worse so please do not send me over there as it makes absolutely no sense to me as far as software version control and sharing is concerned.

Exported application doesn't run (Windows 10) / Load Vector doesn't work

Hello,

I am trying to use Polargraphcontroller but I have some issues.
My OS is windows 10 v19041.388
I installed the latest version of Java 8
I use Processing 2.2.1.

When I try to execute polargraphcontroller.exe , the file default.properties.txt is created but the application doesn't execute.
I tried the 32 bits and the 64 bits versions. I tried to execute it as an administrator.

If I open the project in Processing and execute it, it runs.
But when I click the button Load Vector I have a crash. I have the following message :
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.

Here is the log:
hs_err_pid1972.log

What is strange is that it reports a Windows 8 OS but I am running windows 10.
The crash is at this line: JFileChooser fc = new JFileChooser(); in the function void loadVectorWithFileChooser()

Thanks for your help

processing 3 updates / errors

any plans for processing 3 updates?

some errors im getting:

  • awt support has been removed in processing 3 so the addMouse stuff is broken.
  • The function "add()" expects parameters like: "add(Component)"

thats as far as i got but thought i would ask if updates planned.

thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.