To build interface hardware , you need components listed below.
Assemble them according to interface layout.
Components list:
1- Op-Amp LM324 (1Piece)
2- Resistor 100kΩ ( 2 pieces)
3- Resistor 1kΩ ( 4 pieces)
4- Capacitor 104 (= 100nF) ( 1 piece)
5- 4-Pole male Audio Jack ( iPhone headset jack)
Interface layout
iPhone jack pinout:
Ardunio Mega connection:
Pin 5V : Vcc
pin GND : Ground
Pin 15 : RXD
Pin 16 : TXD