Sanguino and WaveShield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
anxion
 
Posts: 8
Joined: Fri Apr 09, 2010 5:33 am

Sanguino and WaveShield

Post by anxion »

Hello,
Did you know if the WaveShield is fully compatible with the Sanguino mapping ?
I need the Sanguino because my 328P haven't enough ram to launch my program and the WaveHC in the same time.
FreeRam test said -650 bytes :shock: ..

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Sanguino and WaveShield

Post by adafruit »

someone may have 'ported' it to the sanguino but otherwise, no we have not done it ourselves

User avatar
fat16lib
 
Posts: 595
Joined: Wed Dec 24, 2008 1:54 pm

Re: Sanguino and WaveShield

Post by fat16lib »

The pin mapping is not defined for the Sanguino in WaveHC.

ArduinoPins.h checks for a Sanguino but only generates an error since the pins are not defined.

You could define a pin map and try the Wave Shield on the Sanguino. The SPI pins for the Sanguino are :
# Digital 4 - SS (used for SPI)
# Digital 5 - MOSI (used for SPI)
# Digital 6 - MISO (used for SPI)
# DIgital 7 - SCK (used for SPI)
You need to define three or four pins for the DAC. You only need three if you ground LAT.
Last edited by fat16lib on Tue May 04, 2010 6:44 pm, edited 1 time in total.

anxion
 
Posts: 8
Joined: Fri Apr 09, 2010 5:33 am

Re: Sanguino and WaveShield

Post by anxion »

Ok thanks, I've received my Sanguino this morning, I'm gonna try this and give you a report.

http://www.atmel.com/dyn/resources/prod ... /8011S.pdf

The SPI pins aren't 4, 5, 6, 7 instead of 5 ,6, 7, 8 ?

User avatar
fat16lib
 
Posts: 595
Joined: Wed Dec 24, 2008 1:54 pm

Re: Sanguino and WaveShield

Post by fat16lib »

The Sanguino spi pins should be 4, 5, 6, 7. I corrected the above error.

anxion
 
Posts: 8
Joined: Fri Apr 09, 2010 5:33 am

Re: Sanguino and WaveShield

Post by anxion »

I've modified ArduinoPins.h and WavePinDefs.h
The WaveShield works great on both board :D
If we are running on ATmega128, 328, 1280 it use Arduino pins 2, 3, 4, 5 for DAC and if it's ATmega644P it use Sanguino pins 0, 1, 2, 3
Attachments
WavePinDefs.h
Sanguino support added
(3.17 KiB) Downloaded 276 times
ArduinoPins.h
Sanguino support added
(14.24 KiB) Downloaded 337 times

User avatar
fat16lib
 
Posts: 595
Joined: Wed Dec 24, 2008 1:54 pm

Re: Sanguino and WaveShield

Post by fat16lib »

Thank you. I will include your Sanguino mods in a future release of WaveHC.

User avatar
bratan
 
Posts: 49
Joined: Sun Mar 25, 2012 2:08 pm

Re: Sanguino and WaveShield

Post by bratan »

Wow, works like a charm! :) Thank you so much anxion!
fat15lib, Please include it the future library :)

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”