I am not an electronics engineer, nor a programmer, so please be easy on me. My overall project is a B9 robot model build in which I would like to use multiple LED (SMD's and regular sized LEDs), a wave controller, speakers, a servo and possibly a stepper motor. Before anyone tells me to go out and purchase an existing unit, let me say that I tried and the sites didn't accept payment on two of them, one site stopped selling the lighting kit, and absolutely none of the sites responded to any email. Besides none of them go to the extent that I want to go to. So, here's where I am:
1. I purchased a mega2650 r3 elegoo ultimate starter kit and an Adafruit wave shield with the 3W output.
2. The wave shield does not appear to work. It make a "popping" sound when the power is first enabled but nothing more.
a. I saw the post here about some complicated method to get this to work and none of the accompanying images exist anymore. Also, I am uncomfortable with snipping
contacts, soldering jumpers bypassing areas or otherwise making what I deem to be drastic changes to a new board which may interfere with any of my other plans for this
project.
3. Once the wave shield gets resolved, I need to understand how to make an LED activate which speech files while having many other LEDs activate. (some randomly and some with certain specific patterns)
4. I'd like to use a remote to activate lights and sound as well as motor functions.
Yes, I'm sure this rather ambitious for my first project, but I like a challenge.
As an IT professional for over 25 years I have used a great many forums, some decent and some horrible. I am a little dismayed that there is no way to obtain support for your products other than through a forum. I need assistance and would appreciate anything you can do to assist. By the by, as I am neither an experienced electronics hobbyist nor a 'coder' any instruction provided will need to be as detailed as possible with examples and preferably with pictures.
Thank you in advance for your assistance.
Complete newbie - Robot model project
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88152
- Joined: Sat Feb 07, 2009 10:11 am
Re: Complete newbie - Robot model project
Please post photos showing your soldering and connections to the shield - as well as the code you are using to test it.The wave shield does not appear to work. It make a "popping" sound when the power is first enabled but nothing more.
We are an open source company, and our support is as 'open source' as our products. Conducting support via an open form is at least as effective as via email - and it allows others to benefit from the exchange.I am a little dismayed that there is no way to obtain support for your products other than through a forum.
- sample08
- Posts: 2
- Joined: Fri Nov 23, 2018 11:06 pm
Re: Complete newbie - Robot model project
Here's the code I used - with the update that was found on your website:
Code: Select all
/***************************************************
This is an example for the Adafruit VS1053 Codec Breakout
Designed specifically to work with the Adafruit VS1053 Codec Breakout
----> https://www.adafruit.com/products/1381
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution
****************************************************/
// include SPI, MP3 and SD libraries
#include <SPI.h>
#include <Adafruit_VS1053.h>
#include <SD.h>
// define the pins used
//#define CLK 13 // SPI Clock, shared with SD card
//#define MISO 12 // Input data, from VS1053/SD card
//#define MOSI 11 // Output data, to VS1053/SD card
// Connect CLK, MISO and MOSI to hardware SPI pins.
// See http://arduino.cc/en/Reference/SPI "Connections"
// These are the pins used for the breakout example
#define BREAKOUT_RESET 9 // VS1053 reset pin (output)
#define BREAKOUT_CS 10 // VS1053 chip select pin (output)
#define BREAKOUT_DCS 8 // VS1053 Data/command select pin (output)
// These are the pins used for the music maker shield
#define SHIELD_RESET -1 // VS1053 reset pin (unused!)
#define SHIELD_CS 7 // VS1053 chip select pin (output)
#define SHIELD_DCS 6 // VS1053 Data/command select pin (output)
// These are common pins between breakout and shield
#define CARDCS 4 // Card chip select pin
// DREQ should be an Int pin, see http://arduino.cc/en/Reference/attachInterrupt
#define DREQ 3 // VS1053 Data request, ideally an Interrupt pin
Adafruit_VS1053_FilePlayer musicPlayer =
// create breakout-example object!
//Adafruit_VS1053_FilePlayer(BREAKOUT_RESET, BREAKOUT_CS, BREAKOUT_DCS, DREQ, CARDCS);
// create shield-example object!
Adafruit_VS1053_FilePlayer(SHIELD_RESET, SHIELD_CS, SHIELD_DCS, DREQ, CARDCS);
void setup() {
Serial.begin(9600);
Serial.println("Adafruit VS1053 Simple Test");
if (! musicPlayer.begin()) { // initialise the music player
Serial.println(F("Couldn't find VS1053, do you have the right pins defined?"));
while (1);
}
Serial.println(F("VS1053 found"));
if (!SD.begin(CARDCS)) {
Serial.println(F("SD failed, or not present"));
while (1); // don't do anything more
}
// list files
printDirectory(SD.open("/"), 0);
// Set volume for left, right channels. lower numbers == louder volume!
musicPlayer.setVolume(20,20);
// Timer interrupts are not suggested, better to use DREQ interrupt!
//musicPlayer.useInterrupt(VS1053_FILEPLAYER_TIMER0_INT); // timer int
// If DREQ is on an interrupt pin (on uno, #2 or #3) we can do background
// audio playing
musicPlayer.useInterrupt(VS1053_FILEPLAYER_PIN_INT); // DREQ int
// Play one file, don't return until complete
Serial.println(F("Playing track 001"));
musicPlayer.playFullFile("/track001.mp3");
// Play another file in the background, REQUIRES interrupts!
Serial.println(F("Playing track 002"));
musicPlayer.startPlayingFile("/track002.mp3");
}
void loop() {
// File is playing in the background
if (musicPlayer.stopped()) {
Serial.println("Done playing music");
while (1) {
delay(10); // we're done! do nothing...
}
}
if (Serial.available()) {
char c = Serial.read();
// if we get an 's' on the serial console, stop!
if (c == 's') {
musicPlayer.stopPlaying();
}
// if we get an 'p' on the serial console, pause/unpause!
if (c == 'p') {
if (! musicPlayer.paused()) {
Serial.println("Paused");
musicPlayer.pausePlaying(true);
} else {
Serial.println("Resumed");
musicPlayer.pausePlaying(false);
}
}
}
delay(100);
}
/// File listing helper
void printDirectory(File dir, int numTabs) {
while(true) {
File entry = dir.openNextFile();
if (! entry) {
// no more files
//Serial.println("**nomorefiles**");
break;
}
for (uint8_t i=0; i<numTabs; i++) {
Serial.print('\t');
}
Serial.print(entry.name());
if (entry.isDirectory()) {
Serial.println("/");
printDirectory(entry, numTabs+1);
} else {
// files have sizes, directories do not
Serial.print("\t\t");
Serial.println(entry.size(), DEC);
}
entry.close();
}
}
- Attachments
-
- Here's the picture of my soldering. I also performed this as per the instructions on your site, not the forums.
- wave.jpg (266.31 KiB) Viewed 128 times
- adafruit_support_bill
- Posts: 88152
- Joined: Sat Feb 07, 2009 10:11 am
Re: Complete newbie - Robot model project
The solder on the MOSI jumper does not appear to bridge the gap between the two pads.
[quote]I purchased a mega2650 r3 elegoo[quote]
Does the elegoo board have a 6-pin ICSP header? Please post photos of the components you are using.
[quote]I purchased a mega2650 r3 elegoo[quote]
Does the elegoo board have a 6-pin ICSP header? Please post photos of the components you are using.
Please be positive and constructive with your questions and comments.