loading
 
Roborealm with Sound Module (MCU)
ronn0011  [73 posts]
12 year
Hi, I am trying to program sound module with MCU communicator, with case as followed in arduino
case 100: // play "0000.ad4"
              sendCommand(0x0000); //delay(3000);
              break;
case 101 : // play "0001.ad4"
              sendCommand(0x0001);//delay(200);
              break;
case 102 : // play "0001.ad4"
              sendCommand(STOP);//delay(200);
              break;  
case 103 : // play "0001.ad4"
              sendCommand(PLAY_PAUSE);//delay(200);
              break;              
    default : break;

However the respond in the sound module is not as expected, when clicking s, by right rr corresponding send value 100, it does send by monitoring the " Watch variable" it does send value at my keyboard however upon realising it goes to 0, so i assumed the value has been sent to arduino trigger the sound 1 which is

case 100: // play "0000.ad4"
              sendCommand(0x0000);
              break;

however, my observation, i need to hold the 's' for 5 second in order the sound to be played, how do I improve on this so just by pressing 's' or other function key it will plays the sounds right away

http://youtu.be/fBq5Rl2olsw

http://youtu.be/iAVzeXl3KO8


I am also having issue on the roborealm freeze quite often so i can close it or do some adjustment I need to force closed with windows task manager

http://youtu.be/DW2CyXdYRMo

below is the robo files and arduino files

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index