Like every phone, the GSM module on your Arduino MKR GSM 1400 can recognize DTMF tones. These are the tones that you can hear whenever you press a key on your phone's keyboard during a call. This means that, using this feature, you can interact with your board over a phone call.
How It Works
The operating principle of this tutorial is very simple: every time a phone call is received, the boards answers the call and waits for a DTMF tone. Everytime the tone is pressed, the board parses it, prints it on the Serial Monitor and change the LEDs color according to the pressed button.
As you can see from the breadboard layout, a transistor is present between the Arduino board and the neo pixel input. This is placed since the MKR GSM 1400 operates at 3.3V while the neopixel works at 5V. The transistor is so used as a voltage translator. In the layout is also placed a single neo pixel instead of the ring just for sake of simplicity.
The setup to use this code is very simple. You just have to:
- plug the antenna into the board;
- plug a micro SIM card into your board;
- connect the LEDs as shown in the scheme;
- plug the battery into the board;
- plug the micro USB cable and connect it to your PC;
- load the code on the board using the Arduino Java or Web IDE;
- call the board and enjoy pressing buttons on your keyboard!
This example is based on the Arduino MKR GSM library.