Please be aware of all shipping deadlines before placing your order - we cannot guarantee orders will arrive before Christmas!

Sanguino and WaveShield
Moderators: adafruit_support_bill, adafruit

Sanguino and WaveShield

by anxion on Tue Apr 13, 2010 11:57 am

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: ..
anxion
 
Posts: 8
Joined: Fri Apr 09, 2010 5:33 am

Re: Sanguino and WaveShield

by adafruit on Tue Apr 13, 2010 1:14 pm

someone may have 'ported' it to the sanguino but otherwise, no we have not done it ourselves
User avatar
adafruit
 
Posts: 11779
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Sanguino and WaveShield

by fat16lib on Tue Apr 13, 2010 4:04 pm

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.
fat16lib
 
Posts: 593
Joined: Wed Dec 24, 2008 1:54 pm

Re: Sanguino and WaveShield

by anxion on Tue May 04, 2010 10:02 am

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 ?
anxion
 
Posts: 8
Joined: Fri Apr 09, 2010 5:33 am

Re: Sanguino and WaveShield

by fat16lib on Tue May 04, 2010 6:45 pm

The Sanguino spi pins should be 4, 5, 6, 7. I corrected the above error.
fat16lib
 
Posts: 593
Joined: Wed Dec 24, 2008 1:54 pm

Re: Sanguino and WaveShield

by anxion on Wed May 05, 2010 12:08 pm

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 130 times
ArduinoPins.h
Sanguino support added
(14.24 KiB) Downloaded 180 times
anxion
 
Posts: 8
Joined: Fri Apr 09, 2010 5:33 am

Re: Sanguino and WaveShield

by fat16lib on Thu May 06, 2010 11:02 am

Thank you. I will include your Sanguino mods in a future release of WaveHC.
fat16lib
 
Posts: 593
Joined: Wed Dec 24, 2008 1:54 pm

Re: Sanguino and WaveShield

by Bratan on Sat Dec 01, 2012 12:21 pm

Wow, works like a charm! :) Thank you so much anxion!
fat15lib, Please include it the future library :)
Bratan
 
Posts: 38
Joined: Sun Mar 25, 2012 2:08 pm