Skip to content

Commit 71253b7

Browse files
committed
Changes to Emic2 examples
1 parent e3f10ff commit 71253b7

10 files changed

Lines changed: 4033 additions & 2 deletions

File tree

.DS_Store

0 Bytes
Binary file not shown.

Emic2/Emic2_Nano.fzz

44.7 KB
Binary file not shown.

Emic2/Emic2_Nano_bb.png

50.4 KB
Loading

Emic2/Emic2_Nano_bb.svg

Lines changed: 3594 additions & 0 deletions
Loading

Emic2/Emic2_Nano_schem.png

30.9 KB
Loading

Emic2/Emic2_Nano_schem.svg

Lines changed: 394 additions & 0 deletions
Loading

EmicAnalogReadSerial/EmicAnalogReadSerial.ino renamed to Emic2/EmicAnalogReadSerial/EmicAnalogReadSerial.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
(https://www.sparkfun.com/products/11711)
77
This is the minimal example for the Emic module.
88
9-
Note: Serial1 is only available on the MKR boards, the Leonardo, the
10-
Micro, and the Due. For Uno boards, use SoftwareSerial instead.
9+
Note: Serial1 is only available on board with two software serial ports, such as the SAMD boards (Nano 22 IoT, MKR), the 32U4 boards (Leonardo, Micro), the Due. For Uno boards, use SoftwareSerial instead.
1110
1211
Attach the center pin of a potentiometer to pin A0,
1312
and the outside pins to +5V and ground. Attach the SIN pin of the
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
EmicAnalogReadSerial
3+
4+
Reads serial in from the serial monitor and sents serial output
5+
from the Serial1 TX pin to an Emic2 Text-to-speech module.
6+
(https://www.sparkfun.com/products/11711)
7+
This is the minimal example for the Emic module.
8+
9+
Note: Serial1 is only available on board with two software serial ports, such as the SAMD boards (Nano 22 IoT, MKR), the 32U4 boards (Leonardo, Micro), the Due. For Uno boards, use SoftwareSerial instead.
10+
11+
Attach the SIN pin of the Emic2 to the TX pin of the Arduino and the SOUT to the RX pin of the Arduino.
12+
13+
*/
14+
// the setup routine runs once when you press reset:
15+
void setup() {
16+
// initialize serial communication at 9600 bits per second:
17+
Serial.begin(9600);
18+
Serial1.begin(9600);
19+
// set the word rate at 275 words per minute (can go 75 - 600 wpm):
20+
Serial1.println("W275");
21+
}
22+
23+
void loop() {
24+
// read serial from the Serial Monitor:
25+
if (Serial.available()) {
26+
String input = Serial.readStringUntil('\n');
27+
// print out the value you read to the Emic2:
28+
Serial.println("S" + input);
29+
Serial1.println("S" + input);
30+
}
31+
delay(500); // delay in between reads for voice legibility
32+
}
File renamed without changes.

Emic2/readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Emic2 Text-to-Speech Generator
2+
3+
The [Emic2](https://www.parallax.com/product/emic-2-text-to-speech-module/) is a text-to-speech generator with an asynchronous serial interface made by [Parallax](https://www.parallax.com/). Sadly, it seems to be mostly out of production now.
4+
5+
If you're working with an Arduino that has two hardware serial ports, such as any of the SAMD boards (MKR boards, Nano 33 IoT) or the 32U4 boards (Leonardo, Micro), then you can just attach the Emic2. If you're working with an Uno or another board with only one hardware serial port, you'll need the [SoftwareSerial](https://docs.arduino.cc/learn/built-in-libraries/software-serial) library. Paul Stoffregen maintains a [version of it](https://github.com/PaulStoffregen/SoftwareSerial).
6+
7+
To connect the Emic2 to any Arduino, the SOUT goes to the Arduino's RX and the SIN goes to the Arduino's TX. Although the Emic2 is rated to run at 5V, it runs fine on 3.3V as well. Figures 1 and 2 below show an Arduino Nano 33 IoT connected to an Emic2.
8+
9+
![](Emic2_Nano_schem.png)
10+
11+
![](Emic2_Nano_bb.png)
12+

0 commit comments

Comments
 (0)