Pages: [1]   Go Down
Author Topic: Push To talk (PTT) with Arduino  (Read 674 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
There are a number of applications that allow for PTT communications on smartphones running on Android and Apple OS.
As a project, I would like to create a PTT application using an Arduino to control a GSM modem and a simple 1 or 2 line LCD.
The audio side of things (mic and speaker) could either be controlled by the Arduino or the GSM modem.
I was wondering if anyone on the forum can point me in the right direction. I have had a fair amount of success using the Arduino to control a GSM modem for telemetry, but have never ventured into the arena of audio or PTT.
Any assistance would be greatly appreciated.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Set up a button and use variables to turn the microphone on or off

Do
Code:
int buttonState = 0;
at the start, before void setup() {

then use the "if" and "else" variables to turn the speakers on when the button is pressed
(something like)
Code:
if {
(buttonState == HIGH);
(then turn the microphone on)
}
else {
(turn microphone off)

Would it be with digitalWrite (microphone = LOW); or something?

correct me if I'm wrong, hope this helped
Logged

Pages: [1]   Go Up
Jump to: