7/24/22, 10:40 AM
Copy the below code and paste to your Arduino IDE, and upload to
your Seeeduino V4. After upload the code to an Arduino, then open
the Serial monitor.
1
/* Grove - Recorder Test Code
2
+-------------------------------------------------------
3
|
4
|
5
|
6
|
7
+-------------------------------------------------------
8
9
const int
10
const int
11
12
void
13
{
14
15
16
17
18
19
20
21
22
}
23
24
void
25
{
26
27
28
29
30
31
32
33
34
35
https://wiki.seeedstudio.com/Grove-Recorder_v3.0/
Open Serial Monitor and input command to control the
r - start recording
s - stop recording
p - play
pinRec
= 3;
pinPlay = 2;
setup()
Serial.begin(115200);
Serial.println("Grove - Recorder V3.0 Test
Serial.println("cmd: \r\nr: record\r\ns: stop recordi
pinMode(pinRec, OUTPUT);
pinMode(pinPlay, OUTPUT);
digitalWrite(pinRec, HIGH);
digitalWrite(pinPlay, HIGH);
loop()
if(Serial.available())
{
char
c = Serial.read();
if(c == 'r')
{
digitalWrite(pinRec, LOW);
Serial.println("start
}
else
if(c == 's')
{
Grove - Recorder V3 - Seeed Wiki
// begin to record
recording...");
// stop recording
Code");
7/12
Need help?
Do you have a question about the Grove Recorder V3 and is the answer not in the manual?