Skip to content

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

Notifications You must be signed in to change notification settings

microchip-pic-avr-examples/attiny1627-force-sensitive-resistor-with-12-bit-adc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCHP

AN3408 - How to Use Force Sensitive Resistor with a 12-bit ADC

This application note describes how to use the Analog-to-digital converter (ADC) on the 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 of the force sensor on the Force Click board.

Related Documentation

Software Used

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

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 the Application Note

Conclusion

This example has shown how to measure a Force Sensitive Resistor using the ADC on a tinyAVR 2 Family microcontroller, and shows the results sent over both LEDs and Bluetooth.

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages