Introduction: Mobile Intercom With A6 Module and Arduino
In this instructable I show you how I made a intercom using a GSM module.
If you press the big button, the programmed number is called. The call is ended after a programmed time, or by pressing the hangup button.
Components I used:
Button: https://www.aliexpress.com/item/A13-5PCS-LOT-Black...
Arduino pro mini: https://www.aliexpress.com/store/product/Pro-Mini-...
A6 module: https://www.aliexpress.com/item/mini-A6-GPRS-GSM-K...
Speaker: https://www.aliexpress.com/item/5PCS-Lot-New-8-ohm...
Microphone: https://www.aliexpress.com/item/High-Quality-1Pc-L...
Tactile switch, any, like: https://www.aliexpress.com/item/CNIM-Hot-100-Pcs-6...
Edit: see my other instructable for an improved version.
Step 1: Tweak the A6 Module
The get sound of the phone call, i needed to tweak the connections of the module on the PCB. On the PCB, the EAR_L and EAR_R are connected to the pins, but I needed the REC- and REC+ connections.
So, I cut the wiring on the PCB and made connections directly from the REC- and REC+ connectors of the module to the pins which previously had the EAR connections
Step 2: Program the Arduino Pro Mini
Attached is the program I used, my program was inspired by Saravanan AL:
Pin 6 and 7 are both pulled up to 5V.
If the button connected to pin 7 is pressed, the programmed number is called
If the button connected to pin 6 is pressed, the "ATH" command hangs up.
Edit: the SoftwareSerial is able to send at 115200, but not able to receive well at 115200 BAUD.
Attachments
Step 3: Connect All to a PCB
Connect all components to a standard PCB (30 x 70 mm).
The Arduino pro mini also gets a switch to the reset (RST, pulled up by 10k to VCC) pin, to reset the Arduino.
Step 4: Design and Print a Box
In 123D design a designed a box for the intercom. See attached STL files.
The files were printed on a Wanhao Duplicator i3 in Wanhao silver PLA. The box was printed with a 0.8 mm nozzle, the top with a 0.6 nozzle.
Step 5: Add All Together
Finally screw all together and glue in the tactile buttons. The speaker is glued to the top of the box.
Connect to a 5V phone charger as power supply and you are finished!
17 Comments
4 years ago
Hi! I very appreciate for your help with speaker on A6, I lost a day to understand it)) Almost everythere I find bugs in sketch, but you went further and found bug on pcb)
Reply 4 years ago
yes! it worked! I hear the own voice + mic.
the next phase is mp3-module speak in mic input after call answering.
Reply 4 years ago
Thanks for your comments. Great results. I am interested in your finding with speaking via a mp3 module.
4 years ago
I have a gsm module but unfortunately it doesnt have an output for mic and speakers. I need to integrate mic and speaker too. In my GSM module, but I dont know how to connect these to speakers and microphone. Does anyone have any idea about this? Please share.
Reply 4 years ago
Which GSM module doe you have?
Reply 4 years ago
Hello, A6 Mini thanks for your publication I already understood it, it is necessary to make the connection to rec +, rec-, and everything worked ok.
5 years ago
Very nice project of yours!
I'm facing a problem with my microphone.. I can't send any voice via A6 module to any other phone, only recieve sound. When I'm testing with AT+AUST commands the mic works but newer when answering a true call. Yes I know AT+SNFS commands to switch between headset and external rec/mic.
How do you enable your mic or is it not working as a true intercom? I think this is a softewareproblem, what firmare do you got?
Reply 5 years ago
Thanks.
I do not especially enable the microphone, I only send very simple commands to the A6 module via a serial connection (ATD "phone number" and ATH). I did encounter some problems in booting the A6 module properly, but then the whole communication between Arduino and A6 did not work.
I also had some problems with another electret microphone, but now, afterwards, I think that I exchanged the + and - of the microphone.
Reply 5 years ago
Thanks for your kind answer.
I have seen people connecting resistors, capacitators and inductors to the mic. I only have one electret microphone, but it works very fine when making the sound test by using AT+AUST=(0 or 1). Crisp and clear sound I got when testing, but when answering a call or calling with A6 module only its speaker works. I do not get this. It might be something wrong with microphone but why is it then working when making a6 own sound test.. what am I missing?
Did you succeed in having a fully functioning (bidirectional) call with your dad and mobile intercom?
You could switch on and off power supply to A6 module by using arduino instead.
I would use a resistor to protect A6 and PWR when booting when using 5V.
5 years ago
Hello, id like to ask do you have idea how to send Text message received by GSM module to database? Thanks.
Reply 5 years ago
I have no experiences with databases yet.
5 years ago
Nice tutorial. I have an issue with my A6 MODEM. It shows creg:3 when it boots, but i can not communicate with it. if i dial the line, it shows RING on the terminal, but when I send AT commands, there is no response. What could be the cause? please help, as it is for my final year project. Thanks.
Reply 5 years ago
Please check the A6 instructions in: http://wiki.ai-thinker.com/_media/gprs/docs/aithin...
It seems to me that Creg:3 means that registration to the network is denied.
How do you try to communicate? Via an arduino? Hardware or software serial?
5 years ago
what sim card use in a6 gsm
Reply 5 years ago
A mini SIM card
5 years ago
Cool intercom system. I wish that I had something like this set up for my workshop.
Reply 5 years ago
Thanks. I made this one for my brother to use with his fruit vending machine, for a customer who needs help or needs some change.