Using the ADS1015 to read from a force sensitive resistor

I’m trying to use this ADC

https://www.sparkfun.com/products/15334

to read digital values from this force sensitive resistor

https://www.sparkfun.com/products/9375

What I’m finding is that it is very difficult to see anything between the lowest and highest numbers being read. I am using my finger to adjust pressure upon it on my desk. Here’s example output:

A1:313

A1:323

A1:296

A1:269

A1:281

A1:2047

A1:2047

A1:276

A1:288

A1:285

A1:299

A1:2047

A1:2047

A1:2047

A1:339

A1:335

The lowest values, without any pressure on the sensor, float around 300 and just about any pressure on it at all results in 2047.

This is using the ReadBasic example (but with the pin changed to A1, of course).

https://github.com/sparkfun/SparkFun_AD … dBasic.ino

I have one lead from my resistor attached to the Vcc terminal and the other to the A1 terminal.

Is there some library call I can make to have this return finer grained values or do I need to physically hook it up differently?

Thanks for any help.

You need to add a second resistor to form a voltage divider. See the hookup guide for details.

Oh, that’s much better! Thanks for the quick reply.

20:14:19.259 → Device found. I2C connections are good.

20:14:19.259 → A1:0

20:14:19.593 → A1:0

20:14:20.105 → A1:0

20:14:20.601 → A1:0

20:14:21.090 → A1:0

20:14:21.611 → A1:0

20:14:22.109 → A1:0

20:14:22.603 → A1:0

20:14:23.103 → A1:0

20:14:23.596 → A1:0

20:14:24.118 → A1:2

20:14:24.612 → A1:23

20:14:25.108 → A1:71

20:14:25.596 → A1:100

20:14:26.126 → A1:172

20:14:26.612 → A1:351

20:14:27.098 → A1:545

20:14:27.628 → A1:716

20:14:28.125 → A1:918

20:14:28.627 → A1:1058

20:14:29.119 → A1:1113

20:14:29.608 → A1:1166

20:14:30.113 → A1:1249

20:14:30.635 → A1:1306

20:14:31.125 → A1:1339

20:14:31.613 → A1:1348

20:14:32.112 → A1:1359

20:14:32.606 → A1:1353

20:14:33.130 → A1:1354

20:14:33.613 → A1:1351

20:14:34.133 → A1:1271

20:14:34.635 → A1:0

20:14:35.111 → A1:0

20:14:35.636 → A1:0

20:14:36.130 → A1:0

20:14:36.617 → A1:0

20:14:37.141 → A1:0

20:14:37.641 → A1:0

20:14:38.133 → A1:0

20:14:38.638 → A1:0

20:14:39.123 → A1:6

20:14:39.650 → A1:9

20:14:40.143 → A1:23

20:14:40.629 → A1:46

20:14:41.152 → A1:368

20:14:41.633 → A1:874

20:14:42.157 → A1:1064

20:14:42.655 → A1:1025

20:14:43.138 → A1:1098

20:14:43.642 → A1:1118

20:14:44.148 → A1:1104

20:14:44.645 → A1:1097

20:14:45.149 → A1:1078

20:14:45.654 → A1:1046

20:14:46.150 → A1:39

20:14:46.656 → A1:0

20:14:47.149 → A1:0

20:14:47.639 → A1:0

20:14:48.169 → A1:0

20:14:48.667 → A1:0

Glad I could help! :slight_smile: