That is a known issue with the most recent IDE release. See the second question here:
https://github.com/arduino/Arduino/wiki ... -Questions
Waveshield and adavoice sketch help
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
- Markie31
- Posts: 58
- Joined: Thu Oct 08, 2015 2:36 am
Re: Waveshield and adavoice sketch help
Ok thanks I'll take a look in to that, doesn't look simple.adafruit_support_bill wrote:That is a known issue with the most recent IDE release. See the second question here:
https://github.com/arduino/Arduino/wiki ... -Questions
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: Waveshield and adavoice sketch help
Worst-case, you can just go back to a 1.5.x version of the IDE.
- Markie31
- Posts: 58
- Joined: Thu Oct 08, 2015 2:36 am
Re: Waveshield and adavoice sketch help
Thanks for that. I'm sure I will learn something from this but I'd assumed or hoped it would be as simple as putting 'const' where the errors are showing but it seems not.adafruit_support_bill wrote:Worst-case, you can just go back to a 1.5.x version of the IDE.
on the first line of errors for example line (45) *wavname[] = { wav0, wav1, wav2 }; I changed to const *wavname[] = { wav0, wav1, wav2 }; and then I get another message-
wavface:45: error: expected unqualified-id before 'const'
As I said before I'd never tried anything to do with Arduino until I decided to have a go with the waveshield and robo face etc. so my knowladge is fair to say basic.I know this ought to make me understand a little more about the structuring.
advice on this please.
kind regards
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: Waveshield and adavoice sketch help
Try updating you copy of the backpack library. It looks like the example code has already been fixed.
Code: Select all
// These WAV files should be in the root level of the SD card:
static const char PROGMEM
wav0[] = "beware_i.wav",
wav1[] = "ihunger.wav",
wav2[] = "run_cowd.wav",
*wavname[] = { wav0, wav1, wav2 };
- Markie31
- Posts: 58
- Joined: Thu Oct 08, 2015 2:36 am
Re: Waveshield and adavoice sketch help
Thought I'd got the updated version from the link you sent?-adafruit_support_bill wrote:Try updating you copy of the backpack library. It looks like the example code has already been fixed.
Code: Select all
// These WAV files should be in the root level of the SD card: static const char PROGMEM wav0[] = "beware_i.wav", wav1[] = "ihunger.wav", wav2[] = "run_cowd.wav", *wavname[] = { wav0, wav1, wav2 };
https://github.com/adafruit/Adafruit-LE ... ck-Library
the shot you shows is as I see and the file I downloaded.
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: Waveshield and adavoice sketch help
Are you sure you don't have multiple copies of the library? The error message you posted implies that wavename is not declared as a 'const.'
wavface.pde:45:12: error: variable 'wavname' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
- Markie31
- Posts: 58
- Joined: Thu Oct 08, 2015 2:36 am
Re: Waveshield and adavoice sketch help
Many thanks thus far.
I've deleted all folders to tidy up I gone through our conversation and made doubly (as far as I can) to make sure its as it should be.
Here's the Error in full when I try to verify 'waveface'
Arduino: 1.6.5 (Windows 8.1), Board: "Arduino/Genuino Uno"
Using library Wire in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire
Using library Adafruit LED Backpack Library in folder: C:\Users\Mark\Documents\Arduino\libraries\Adafruit_LEDBackpack
Using library Adafruit GFX Library in folder: C:\Users\Mark\Documents\Arduino\libraries\Adafruit_GFX
Using library WaveHC in folder: C:\Users\Mark\Documents\Arduino\libraries\WaveHC (legacy)
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Users\Mark\Documents\Arduino\libraries\Adafruit_LEDBackpack -IC:\Users\Mark\Documents\Arduino\libraries\Adafruit_GFX -IC:\Users\Mark\Documents\Arduino\libraries\WaveHC C:\Users\Mark\AppData\Local\Temp\build627692767094230004.tmp\wavface.cpp -o C:\Users\Mark\AppData\Local\Temp\build627692767094230004.tmp\wavface.cpp.o
wavface.pde:45:12: error: variable 'wavname' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
wavface.pde:187:9: error: variable 'anim' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from wavface.pde:33:
wavface.pde:190:16: error: variable 'blinkIndex' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
variable 'wavname' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
it gets deeper. I know theres a solution out there as many have used this
I've deleted all folders to tidy up I gone through our conversation and made doubly (as far as I can) to make sure its as it should be.
Here's the Error in full when I try to verify 'waveface'
Arduino: 1.6.5 (Windows 8.1), Board: "Arduino/Genuino Uno"
Using library Wire in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire
Using library Adafruit LED Backpack Library in folder: C:\Users\Mark\Documents\Arduino\libraries\Adafruit_LEDBackpack
Using library Adafruit GFX Library in folder: C:\Users\Mark\Documents\Arduino\libraries\Adafruit_GFX
Using library WaveHC in folder: C:\Users\Mark\Documents\Arduino\libraries\WaveHC (legacy)
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Users\Mark\Documents\Arduino\libraries\Adafruit_LEDBackpack -IC:\Users\Mark\Documents\Arduino\libraries\Adafruit_GFX -IC:\Users\Mark\Documents\Arduino\libraries\WaveHC C:\Users\Mark\AppData\Local\Temp\build627692767094230004.tmp\wavface.cpp -o C:\Users\Mark\AppData\Local\Temp\build627692767094230004.tmp\wavface.cpp.o
wavface.pde:45:12: error: variable 'wavname' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
wavface.pde:187:9: error: variable 'anim' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from wavface.pde:33:
wavface.pde:190:16: error: variable 'blinkIndex' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
variable 'wavname' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
it gets deeper. I know theres a solution out there as many have used this
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: Waveshield and adavoice sketch help
Many have used this with earlier versions of the Arduino IDE. We are still uncovering incompatibilities with the latest releases. You might try compiling it with one of the versions earlier than 1.6.x.I know theres a solution out there as many have used this
- Markie31
- Posts: 58
- Joined: Thu Oct 08, 2015 2:36 am
Re: Waveshield and adavoice sketch help
:) :) Wipeee one step closer my friend. Many thanks for the heads up on the ide. I randomly chose 1.0.6 but waveface verified right from the start, Ill possibly try others later.adafruit_support_bill wrote:Many have used this with earlier versions of the Arduino IDE. We are still uncovering incompatibilities with the latest releases. You might try compiling it with one of the versions earlier than 1.6.x.I know theres a solution out there as many have used this
I have the waveshield running wave face along with the 8x8 LED's for eyes and mouth and functioning with the wave files (run cowered) etc. specified in the tutorial. Now I've also got he mic set up as I did when I first started with the waveshield BUT it's not sounding or moving the mouth as I expected...is their another tutorial for that?
Once again many thanks. I'm only doing this for the Children at the school I work at, coming up to Halloween and being the caretaker I thought I'd have a bit of fun with them.
- Markie31
- Posts: 58
- Joined: Thu Oct 08, 2015 2:36 am
Re: Waveshield and adavoice sketch help
ultimately to get this-
https://www.youtube.com/watch?v=8HZFY4Xti7k
Ive done everything I can find but I don't get voice animation via the mic.
https://www.youtube.com/watch?v=8HZFY4Xti7k
Ive done everything I can find but I don't get voice animation via the mic.
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: Waveshield and adavoice sketch help
Have you tried the adavoice_face example?
https://learn.adafruit.com/electronic-d ... -tutorials
https://learn.adafruit.com/electronic-d ... -tutorials
Wave Shield Voice Changer (and the prerequisite Wave Shield guide). This shows how to combine the Wave Shield with a microphone to alter one’s voice. There are two example programs for this tutorial: “adavoice” is the voice changer alone, while “adavoice_face” also adds the LED backpack face animation…the latter code is what the demon is using.
- Markie31
- Posts: 58
- Joined: Thu Oct 08, 2015 2:36 am
Re: Waveshield and adavoice sketch help
Hi Bill that sorted it out mate thanks very much for that. It wasn't at fist obvious as the adavoice_face doesn't show up in the adavoice library. I copied he adavoice_face pde. from GitHub - https://github.com/adafruit/adavoice and pasted it in, anyway that worked a treat.adafruit_support_bill wrote:Have you tried the adavoice_face example?
https://learn.adafruit.com/electronic-d ... -tutorialsWave Shield Voice Changer (and the prerequisite Wave Shield guide). This shows how to combine the Wave Shield with a microphone to alter one’s voice. There are two example programs for this tutorial: “adavoice” is the voice changer alone, while “adavoice_face” also adds the LED backpack face animation…the latter code is what the demon is using.
Many thanks for now..now to be creative ;)
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: Waveshield and adavoice sketch help
Awesome! Be sure to post pics of the finished mask.
- Markie31
- Posts: 58
- Joined: Thu Oct 08, 2015 2:36 am
Re: Waveshield and adavoice sketch help
https://youtu.be/liWNvgAd_Oo
https://youtu.be/7sHLdQiafNM
https://youtu.be/qqGpVnpPxVs
Many thanks for the help. Its a little sketchy but for the first attempt I'm pleased.
https://youtu.be/7sHLdQiafNM
https://youtu.be/qqGpVnpPxVs
Many thanks for the help. Its a little sketchy but for the first attempt I'm pleased.
Please be positive and constructive with your questions and comments.