Vernier Software and Technology
Vernier Software & Technology
Arduino and Vernier Sensors

Auto-ID for Analog (BTA) Sensors

The AnalogAutoID sketch automatically identifies any Vernier analog (BTA) sensor connected to the BTA 1 or BTA 2 connectors of the Vernier Arduino Interface Shield and displays its readings on the Serial Monitor.

Using the VernierAnalogSensor sketch, you had to modify the program to specify the slope and intercept for the particular sensor you are using. With this sketch, the sensor is automatically identified by the Arduino. There are two basic systems for AutoID used by Vernier. Most sensors have a memory chip in them and they communicate with the Arduino via I2C lines to identify themselves. A few analog sensors use a fixed resistor to identify themselves. This sketch supports both methods.

After the sensor is identified, the sketch displays the sensor name, sensor units, and then uses the proper slope and intercept to convert the raw voltage readings to sensor readings which are displayed. In the case of the sensors with memory chips, the slope and intercept are read from that chip. In the case of the resistor ID sensors, the slope and intercept values are built into the sketch.

This sketch works with the Vernier Arduino Interface Shield. To use this sketch with a system you wire yourself with one BTA adapter on a breadboard, you need to have all pins wired.



Vernier Engineering Contest

Vernier recognizes instructors for creative uses of Vernier sensors to introduce engineering concepts and/or practices. Vernier Engineering Award »

Go to top