Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
ianc
Newbie
Posts: 4
Permalink
Post Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
on: April 19, 2015, 22:10
Quote

Hi Sandy, everyone,

I've been using the Polargraph mega firmware with an Adafruit Motor shield 2 for a few months, mainly because it worked first time 🙂

I grabbed the latest version of the server_a1 yesterday and well... it doesn't work. I've set the relevant #defines, and get a clean compile etc., but neither the motors or the servo respond to commands from the controller anymore.

I can see some changes have been made in the past few days, so perhaps something broke accidentally somewhere. 🙂 I'm up for digging into the code and debugging it, but before I do that I'm just wondering if anyone else has this latest version working ok.

Thanks
Ian

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
on: April 19, 2015, 22:26
Quote

Ah ... I've been kind of relying on nobody ever really doing a pull from the repo. I've been doing some work recently on merging the MEGA branch into the A1 branch, and making the mega features available through a unified firmware. Well, that's the theory anyway, I guess you've seen the reality of that...

The two new features you've probably seen:
- Set the microcontroller type (https://github.com/euphy/polargraph_server_a1/blob/master/polargraph_server_a1.ino#L39-L45)
- Set the motor driver type (https://github.com/euphy/polargraph_server_a1/blob/master/polargraph_server_a1.ino#L60-L74)

Then tidy up imports to match the motor drivers in configuration.ino (I guess you've done this, or you wouldn't get a compile).

I know one person has tested this, but that person isn't me.

Are the commands being accepted, or is it the comms bit that's broken?

sn

ianc
Newbie
Posts: 4
Permalink
Post Re: Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
on: April 19, 2015, 23:05
Quote

Hi Sandy,

Comms appears to be working ok. I'll do some more digging later this week.

BTW I've also been playing with getting the Controller to run on a PI 2. After a bit of faffing with Java serial libs I've got it running ok through Processing.

Ian

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
on: April 19, 2015, 23:10
Quote

Good news on that front too, I've been wrangling with the controller to get it working in Processing 2 (now that I see Processing 3 on the horizon...). The way of doing separate applet windows has changed so there's a bit more work to do, but in principle I think it'll be easier to get support with a more modern version of Processing.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
on: April 19, 2015, 23:17
Quote

(Well, not really helpful to you now, but good news in theory, right.)

ianc
Newbie
Posts: 4
Permalink
Post Re: Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
on: April 19, 2015, 23:25
Quote

Ha! I had a quick look at changing the controller for Processing 2. And well... that's a fair amount of work for small but annoying tweaks. What where they thinking... ?!?!

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
on: April 19, 2015, 23:33
Quote

I was a bit surprised to see processing 2 ever get a "stable" release, it was in beta for years, and that was my official reason for not porting to it. Processing 3 has even more breaking changes, so I thought porting to 2 would let me get a little ahead of the game. Maybe in 2020.

sn

hashampers-
and
Beginner
Posts: 28
Permalink
Post Re: Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
on: April 21, 2015, 13:48
Quote

Quote from ianc on April 19, 2015, 23:05
Hi Sandy,

Comms appears to be working ok. I'll do some more digging later this week.

BTW I've also been playing with getting the Controller to run on a PI 2. After a bit of faffing with Java serial libs I've got it running ok through Processing.

Ian

Did you manage to get it working with a Raspberry Pi 2? Impressive stuff! Any help with instructions/compilation would be really helpful.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
on: April 21, 2015, 19:14
Quote

The trick with setting the frame rate low in the setup() of the the app might be a good way to constrain greedy graphics processes.

ianc
Newbie
Posts: 4
Permalink
Post Re: Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
on: April 21, 2015, 22:39
Quote

Ah! I didn't think of changing the frame rate. I'll try that once I've got the motor shield working again.

Did you manage to get it working with a Raspberry Pi 2? Impressive stuff! Any help with instructions/compilation would be really helpful.

To get it going on the PI2, I grabbed the Java 1.7 sdk, Processing 1.5, and then the Polargraph controller source files and Libs. You then have to delete the Java install that comes with Processing, and then point it to the Java1.7 install instead - with a symbolic link (ln -s).

The tricky part is the Java serial coms library, as it doesn't work with the ARM processor on the PI. I did some digging, and there are various suggestions around, including copying other libraries in. I couldn't get that to work, so I cross-compiled an OpenWRT version I've been using on another project (it's a very long story).

Serial coms works now, but it's a bit flakey, probably because it's not playing nice with Debian. Some more time spent with Google will most likely find a proper solution for the coms library.

Now in hindsight, life is too short to be messing around like that, but I refused to let the poxy PI beat me 🙂

alpal
Newbie
Posts: 19
Permalink
Post Re: Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
on: October 19, 2015, 21:02
Quote

Hi everyone,
i am a newbie so please be easy on me. Setup the Hardware and installed all the programs over the Weekend. I have a seeeduino v2.21 board with adafruit v2.3 shield. The programs compile in IDE and i am able to upload it. when I check the Serial Monitor it does not indicate ready every couple seconds. i have two nema 17 0.9deg stepper Motors attached. The Motors do not respond/appear to be working with any test programs i am running through IDE adruino. In polargraphcontroller it also does not recognize the device.
any thoughts where the Problem lies? thank you. really looking Forward to getting the machine up and drawing!

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Polargraph_server_a1 & Adafruit Motor Shield 2. Not working.
on: October 19, 2015, 21:13
Quote

Welcome! It'd be best if you started a new thread to discuss this!

sn

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