ardutronic
Published © CC BY-NC-SA

How to Make Calls With Arduino - CoolPhone 1/2

I decided to make my own phone that would only be used for making and receiving calls. I hope it will be as durable as the Nokia 3310.

BeginnerWork in progress2 hours9,157
How to Make Calls With Arduino - CoolPhone 1/2

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematic 1

Schematic 2

Code

Code for CoolPhone

Arduino
#include <SoftwareSerial.h>
char dane;
String Arsp, Grsp;
SoftwareSerial mySerial(10, 11); // RX, TX

int but1 = 3;
int but2 = 4;
int but3 = 5;
int onModulePin = 2;
int disc;
int call;
int number;
unsigned long nr;

const char phone_numberA[] = "WRITE YOUR NUMBER";

void setup() {
 
  Serial.begin(9600);
  mySerial.begin(4800);
   Serial.println("Starting...");

  pinMode(but1, INPUT);
  pinMode(but2, INPUT);
  pinMode(but3, INPUT);


  Serial.println("Press a button");

}

void loop() {
call = digitalRead(but1);
number = digitalRead(but2);
disc = digitalRead(but3);

if(call == HIGH)
{
 delay(200);
 Serial.println("making call");
 String cmd;
 cmd = "ATD";
 cmd += ("+48");
 cmd += nr;
 cmd += ";";
 mySerial.println(cmd); 
}

if(number == HIGH)
{
 delay(200);
 Serial.println("nr choosed");
 nr = WRITE YOUR NUMBER;  
}

if(disc == HIGH)
{
 delay(200);
 Serial.println("disconnected");
 mySerial.println("ATH");  
}
    
   if(mySerial.available())
  {
    Grsp = mySerial.readString();
    Serial.println(Grsp);
  }

  if(Serial.available())
  {
    Arsp = Serial.readString();
    mySerial.println(Arsp);
  }
  
  

}

Credits

ardutronic
39 projects • 41 followers
I'm 20 years old student of electronic technical college. I'm passionate about electronics as well as editing movies

Comments