So lately I received my Arduino Uno starter kit with many modules and sensors. It was my first time getting into electronics and microcontrollers (Not programming, though. Been familiar with that for a while). From all the modules, I really liked the infrared receiver and transmitter as I was fascinated by the abillity to send and receive information wirelessly.
After learning the basics of IR, decoding many remote codes (Of my A/C, TV) and trying to resend them, I tried to use the infrared of my Galaxy S4 (If anyone tried, you know it's a pain in the ass working with these reflected, undocumented methods...). After managing to send codes I captured with the Arduino, I thought it was the time to create my own "digital protocol" and try some complicated communication between the phone and the Arduino.
The protocol is failry simple:
5ms starting pulse, 0.5ms break,
1ms pulse for a '1', 0.5ms pulse for a '0', both followed by a 0.5ms break,
5ms ending pulse.
A simple app I created lets the user input some text, and transmits the text (The characters' ASCII values) when you tap a button. The Arduino reads the pulse, decodes it and recreates the string, then displays it on a LCD.
Uploaded with ImageShack.us
I know it's nowhere as complicated as other projects submitted here, but it's pretty cool to see it working fluently, and it's my first "big" project after all
If anyone has any suggestions for improvements or for other uses for this communication (Cool stuff to do with my phone and Arduino), I'd be happy to know.