- This topic has 1 reply, 2 voices, and was last updated 8 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › Arduino › Creation of sound profile based on speed of vehicle
Hii all,
Hii all,
Is it possible to create a sound profile based on speed of vehicle? This is a short snippet of the code. Is this the right method?
void loop() {
Serial.println("Enter the Speed");
while(Serial.available()==0){
}
float speed1=Serial.parseFloat();
Serial.println(speed1);
if (speed1>10)
{
if(x == 0){
sampler1.load("13.wav");
sampler1.splay(10);
}
}
if(speed1>20){
if(x==0){
sampler1.load("11.wav");
sampler1.splay(10);
}
}
thanks in advance……
I hope it is poissible and you can proceed with the same idealogy which you showed in the code.