Go Down

Topic: Push To talk (PTT) with Arduino (Read 985 times) previous topic - next topic

ecoguy

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.

Hatss

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

Do
Code: [Select]
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: [Select]
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

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy