This example shows how to use the GPIO ports in Estimote Location Beacon, to develop apps that wirelessly (over Bluetooth LE) interact with devices connected to beacons.
- Hardware prerequisites
- Software prerequisites
- Something doesn't work, what do I do?
- Additional resources
This project requires a few elements that you can easily find at your local hardware store:
- 2 Estimote Location Beacons (one for Input and one for Output)
- breadboard (to connect wires, button and resistor)
- LED (for visualizing the Output)
- push button (for Input)
Example Output setup
You need to remember that the longer leg ("+", "positive", "anode") of the LED goes to the port you've set to the 'Output' mode, and shorter one ("-", "negative", "cathode") to GND.
Example Input setup
In this case you connect one wire to GND and the other one to the port you've set to the 'Input' mode. You should also remember about adding a resistor in between the latter connection.
Before running the example app, configure the GPIO ports with the Estimote App:
Something doesn't work, what do I do?
Check if it works in the Estimote app:
- for Output, switching from low to high should light up the LED;
- for Input, pushing the button should change the input state.
If it doesn't, double-check your connections and the components you used. If it does, the problem is most likely in the app's code.