# attiny1627-force-sensitive-resistor-with-12-bit-adc **Repository Path**: microchip-pic-avr-examples/attiny1627-force-sensitive-resistor-with-12-bit-adc ## Basic Information - **Project Name**: attiny1627-force-sensitive-resistor-with-12-bit-adc - **Description**: In the example application, the ADC result will be sent to an android/iOS app over Bluetooth communication using the RN4870 Click board. The ADC result will also be sent to a serial terminal and a 4x4 RGB Click board is used to illuminate different LEDs corresponding to the applied force on the force sensor on the Force Click board - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README MCHP # AN3408 - How to use Force Sensitive Resistor with 12-bit ADC This application note describes how to use the ADC on tinyAVR® 2 Family microcontrollers to measure a Force Sensitive Resistor. The ADC supports sampling in bursts where a configurable number of conversion results are accumulated into a single ADC result (sample accumulation). This feature is used in the example application to accumulate 1024 samples and perform averaging. In the example application, the ADC result will be sent to an android/iOS app over Bluetooth communication using the RN4870 Click board. The ADC result will also be sent to a serial terminal and a 4x4 RGB Click board is used to illuminate different LEDs corresponding to the applied force on the force sensor on the Force Click board. ## Related Documentation - [AN3408 - How to use Force Sensitive Resistor with 12-bit ADC](https://microchip.com/DS00003408) - [ATtiny1627 device page](https://www.microchip.com/wwwproducts/en/ATTINY1627) ## Setup - Connect the ATtiny1627 Curiosity Nano on Curiosity Nano Adapter Board - Connect RN4870 Click on the Slot1 on Curiosity nano Adapter Board - Connect Force Click on the Slot2 on Curiosity nano Adapter Board - Connect 4x4 RGB Click on the Slot3 on Curiosity nano Adapter Board ![Connection Diagram](images/hw_setup.svg "Connection Diagram") # Operation - Connect the ATtiny1627 Curiosity Nano to a computer using a USB cable - Download the application and program it to the ATtiny1627 Curiosity Nano - Refer to topic 'Demo Operation' in Application Note ## Conclusion This example has shown how to measure a force sensitive resistor using the ADC on a tinyAVR 2 Family microcontroller, and show the result both using LEDs and sent over Bluetooth.