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 ..
Sanguino and WaveShield
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Sanguino and WaveShield
someone may have 'ported' it to the sanguino but otherwise, no we have not done it ourselves
- fat16lib
- Posts: 595
- Joined: Wed Dec 24, 2008 1:54 pm
Re: Sanguino and WaveShield
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 :
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 :
You need to define three or four pins for the DAC. You only need three if you ground LAT.# Digital 4 - SS (used for SPI)
# Digital 5 - MOSI (used for SPI)
# Digital 6 - MISO (used for SPI)
# DIgital 7 - SCK (used for SPI)
Last edited by fat16lib on Tue May 04, 2010 6:44 pm, edited 1 time in total.
-
- Posts: 8
- Joined: Fri Apr 09, 2010 5:33 am
Re: Sanguino and WaveShield
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 ?
http://www.atmel.com/dyn/resources/prod ... /8011S.pdf
The SPI pins aren't 4, 5, 6, 7 instead of 5 ,6, 7, 8 ?
- fat16lib
- Posts: 595
- Joined: Wed Dec 24, 2008 1:54 pm
Re: Sanguino and WaveShield
The Sanguino spi pins should be 4, 5, 6, 7. I corrected the above error.
-
- Posts: 8
- Joined: Fri Apr 09, 2010 5:33 am
Re: Sanguino and WaveShield
I've modified ArduinoPins.h and WavePinDefs.h
The WaveShield works great on both board
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
The WaveShield works great on both board
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
- fat16lib
- Posts: 595
- Joined: Wed Dec 24, 2008 1:54 pm
Re: Sanguino and WaveShield
Thank you. I will include your Sanguino mods in a future release of WaveHC.
- bratan
- Posts: 49
- Joined: Sun Mar 25, 2012 2:08 pm
Re: Sanguino and WaveShield
Wow, works like a charm! Thank you so much anxion!
fat15lib, Please include it the future library
fat15lib, Please include it the future library
Please be positive and constructive with your questions and comments.