You can see the available functions for FED3
here, instead of fed3.ConditionedStimulus(); you will want to use fed3.Tone (freq, duration) to play a tone of a specified
freq and duration, and then either follow this with fed3.Timeout (for no-pellet trials), or fed3.Feed() (for pellet trials). See attached code, void loop pasted here:
void loop() {
fed3.run(); //Call fed.run at least once per loop
//unrewarded tone
fed3.Tone(1000, 200); //1Khz tone
fed3.Timeout(Pellet_delay); //delay after tone
//rewarded tone
fed3.Tone(4000, 200); //4Khz tone
fed3.Timeout(Pellet_delay); //delay between tone and pellet
fed3.Feed(); //Drop pellet
while (digitalRead (PELLET_WELL) == LOW) { //Wait here while there's a pellet in the well
delay (10);
}
}
Let me know if this points you in the right direction! Best, -Lex