Page 1 of 1

Incompatible with Leonardo (fixed)

PostPosted: Sun Oct 27, 2013 9:33 pm
by kb0g
I just learned the hard way that this shield is not compatible with the Arduino Leonardo. Not only are the digital pin definitions associated with the analog pins mapped differently, but the SPI port is only available on the ICSP header, not on digital pins 11, 12, and 13 as before.

It would certainly be possible to redesign this shield to be compatible with all Arduino variants by including a female 2x3 that mates with the ISCP header to pick up the SPI port there, and by conditionalizing the pin definitions for all digital uses of the "analog" shield header pins to handle the re-mapping... but in the short term, you might just want to boldly let folks know this shield won't work with a Leondardo.

I guess I get to go order another Arduino before I can play further :( .. at least they're cheap!

Re: Incompatible with Leonardo

PostPosted: Fri Nov 01, 2013 9:00 pm
by AE9RB
Thanks for the report. I ordered a Leonardo for testing. I'm not using the SPI hardware so whatever is wrong can probably be fixed in software.

Re: Incompatible with Leonardo

PostPosted: Fri Nov 01, 2013 10:21 pm
by kb0g
Oh! The schematic implied you were using SPI to talk to the DAC, but a quick look at dac.ino makes it appear you're actually big-banging it? Ok, then yes, I agree it's probably possible to fix this entirely in software.

Re: Incompatible with Leonardo

PostPosted: Sat Nov 09, 2013 10:51 am
by AE9RB
I fixed the Leonardo problem. It was a simple header file change for some pin location definitions.

Re: Incompatible with Leonardo (fixed)

PostPosted: Fri May 02, 2014 6:51 am
by w6sdm
I got the kit working great with my Uno. Today I tried my Leonardo and I get an error:

Binary sketch size: 17,662 bytes (of a 32,256 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00

Is there something I need to do in the code?

Steve
steve@w6sdm.net

Re: Incompatible with Leonardo (fixed)

PostPosted: Fri May 02, 2014 7:57 pm
by AE9RB
Nothing special. That error is something wrong with the Arduino tools or drivers...
https://www.google.com/search?q=leonard ... esp%3D0x00

Re: Incompatible with Leonardo (fixed)

PostPosted: Sat May 03, 2014 6:28 am
by w6sdm
You're right. In this case, it was a matter of identifying the controller as a Leonardo to the software. I had been using an Uno before.