Radio Signal Strength Indicator(RRSI) is widely used in robotics for localization to a docking hub or various other applications. When a device gets in range it tries pairing with it given AT commands and then transmits/recieves afterwards. In this project I do a rudimentary version of that where the bluetooth receiver gets data then checks if it's receiving. If it's not receiving then that means it's not near. Afterwards it uses EMI to determine the location.
-
Download code
Upload code to your 2 microcontrollers.
One microcontroller transmit code and the other reciever code. -
Wiring
Board TX ---> Bluetooth RX
Board RX ---> Bluetooth TX
Board 5v ---> Bluetooth VCC
Board GND ---> Bluetooth GND
Board A5 ---> Antenna
Board GND ---> Resistor ---> AntennaNote: different resistors will give you different readings.