i'm working on this project.......The aim is to estimate the distance of a smartphone from the embedded system using the different propagation velocity of acoustic and electromagnetic waves.
It is expected the use of Bluetooth for radio communication.
For acoustic communication: The embedded system transmits with a buzzer while the smartphone receives with his microphone.
Hardware to be used:
- system embedded: TI EXP-MSP430FR5739
- Smartphone Android
- BLUETOOTH module: RN42
- Ultrasonic transmitter: 5340-TX40
Any suggestions please? (expecially for the android code)
i'm trying to proceed in this way: 1)to send an electromagnetic signal(for example an ASCII character) from smartphone to msp430;
2)to start a timer;
3)msp430 receives the signal and send a ultrasonic signal;
4) smartphone receives the signal and stop the timer;
5)"flight"time (conversion in seconds) evaluation ;
6) distance evaluation ;
7)infinite loop
P.S. do u know how to use android code with Code Composer Studio and how can i receive the ultrasonic signal with the smartphone android microphone?