I basically want to connect a drum trigger to the Arduino
and when an input is given to it
have that communicate over serial to the mp3 trigger board to play a sample on the SD card.
#include <MP3Trigger.h>MP3Trigger trigger;int input = 0;int value = 0;void setup(){//start serial communication with the trigger (over Serial)trigger.setup();}void loop(){ value = analogRead(input); if (value >0 && value <340) { trigger.trigger(1); } else if (value > 340 && value <680) { trigger.trigger(2); } else { trigger.trigger(3); }}
value = analogRead(input); if (value >0 && value <340) { trigger.trigger(1); }
if (value > 340 && value <680)
the trigger is an analogue transducer and i have been trying to connect it to analogue input 1 on the arduinoi am currently reading nothing from the trigger.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
Thank you for subscribing!
Arduino
via Egeo 16
Torino, 10131
Italy