This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Acquisition information from external sensor

Hi all,

I have the nRF51822 chip and I want to acquire external sensor (i.e. pressure, temperature) and send the information via bluetooth.

I need to configure the I/O pin to acquire the information. Can you help me?

What is the basic code to configure I/O as analog input and to send the information via bluetooth?

Thanks a lot and best regards

Angelo

  • Hi,

    You need to provide much more information?

    • What sensor?
    • What serial interface are you going to use?
    • Which SDK are you using?

    We can't write the code for you but we can help you find a proper example that should be a good starting point for you project. For example, the ble app uart example is a good starting point for sending data over BLE.

    regards

    Jared

  • Hi Jared,

    regarding your question, the answer are the following:

    • What Sensor? Analog sensor (pressure, NTC, PTC, etc.)
    • What serial interface are you going to use? I think to use the UART interface
    • Which SDK are you using? I think to use the SnRF5 SDK 16. Is ok for my scope?

    Thanks a lot and best regards

    Angelo

  • Hi,

    The nRF51 is supported up onto SDK v12.3.0. Again, the ble app uart example would be a good starting point, I suggest that you start with that example. 

    regards

    Jared

  • Hi Jared,

    thanks a lot for the clarification. So I would use SDK v12.3.0.

    What kind of hardware do you suggest me to use to start with the application?

    Thanks and best regards

    Angelo

  • Hi

    Angelo Cotroneo said:
    What kind of hardware do you suggest me to use to start with the application?

     As in which sensors you could use for retrieving the temperature and pressure? Well, we use LPS22HB on our Thingy:52 which is our nRF52832 based prototype platform that has several sensors for measuring pressure, humidity, temperature, sound etc. You can read more about it here

    regards

    Jared

1 2