This program is given as a sample exercise. It has all the functionality to be used on a BLE Nano device and to connect to SimpleChat application for Android/ iOS from RebBearLab. The aim of the exercise is to read a voltage and then to convert as good as possible the appropriate temperature in Celsius degrees. AI5 pin is considered for reading the voltage for the termistor. The ADC of AI5 is called every second. The function to be updated : update_measurements() from main.cpp file.
Dependencies: BLE_API mbed nRF51822
Fork of nRF51822_DataLogger_with_Chat by
Diff: read_me.md
- Revision:
- 12:7772974713ac
- Parent:
- 10:c7d53e4e0602
diff -r baafa4f7a15e -r 7772974713ac read_me.md --- a/read_me.md Fri May 06 18:14:18 2016 +0000 +++ b/read_me.md Sat Oct 08 10:30:15 2016 +0000 @@ -1,7 +1,7 @@ # nRF51822_SimpleChat Extended With Data Measurements & Logger This repo is derived from the initial SimpleChat Application and is build for BLE Nano Device, used in peripheral mode. This Application scan and measures some inputs and save them in flash with timestamp. A RTC has been implemented. -Using chat application (available for smart phones) some commands can be send to BLE Nano in order to perform some tasks. +Using chat application (available for smartphones) some commands can be send to BLE Nano in order to perform some tasks. Other types of commands can be send via serial interface from a PC, especially data extraction from flash. #Usage/Description: @@ -28,8 +28,7 @@ #Hardware Connections The BLE Nano Device is connected to some peripheral components as follows: * Light Sensor ( A3 input) -* Temperature Sensor (A4 input) -* Gnd Voltage (or anything else) (A5 input) +* Temperature Sensor (A5 input) * Buzzer (D6 output) * Push Button (D5 input) [*] Optional: MKUSB 20 Board (for Voltage Supply and for Serial Communication with a PC) @@ -38,10 +37,8 @@ From RedBear Chat Application following messages are valid: * Any message that not start with 'x' is echoed with 'R:' as prefix, and also is send via Serial Interface to PC * Any message that start with 'x' is interpreted as command: - * xi0 / xi* except {1,2,3,4} => prints the analog inputs and one digital input (the led status) as uint16 values - * xi1 /xi2 / xi3 / xi4 =>prints the uint16 value for light, temp, gndV, led status + * xr1 /xr2 / xR3 / xr4 =>prints tvarious inputs * xl => toggle led status - * xs[0-9][0-9] => buzzer; depending on digits, a digital pwm signal is send to buzzer; to deactivate: xs00 * xtg => returns the current time * xti[0-9]{6} => insert time - exp: xti181004 means: 18H10M and 4 seconds * xdg => returns the current date @@ -61,7 +58,7 @@ * xcs => Stop Radio Advertising (should be used when Advertising is active) Other Commands: - * button push => closes the connection/advertising and turn off the led. If push again reset the previous conditions; + # References The mbed BLE API is meant to be used in projects on developer.mbed.org. Please see examples and sample project files there.