Arduino 5 Minute Tutorials: Lesson 8 - Wheatstone Shield & LCD

Posted on 17/09/2018 by scharette in Arduino 5 Minute Tutorials
Modified on: 24/03/2023
Steps completed / 6
Press to mark a step as
completed or click here to complete all

Welcome to RobotShop's 5 Minute Tutorials. This specific series focuses on getting started with Arduino and covers core concepts like basic code structure, interfacing with sensors, actuators, and more. Since the creation of the post Interfacing a load cell with an Arduino board, we received many requests from customers about displaying the data read from the load cell on an LCD screen. This tutorial will show you a simple method to achieve this goal quickly.

Since the creation of the post Interfacing a Load Cell With an Arduino Board, we received many requests from customers about displaying the data read from the load cell on an LCD screen. This tutorial will show you a simple method to achieve this goal quickly.

First, we recommend that you check the post mentioned above. It covers the basics of getting an Arduino, the Wheatstone bridge shield, and the load cell connected together and testing them to ensure they work. Please note our example uses A1 and the Strain 2 connection on the Wheatstone bridge shield and A5 for the buttons on the LCD/Button shield. Once you have the basic setup of the Wheatstone bridge shield and load cell completed and working, we can move to add the LCD screen shield. Place the stackable headers on top of the Wheatstone shield's female headers. Make sure to bend the stackable header's A0 pin towards the outside instead of straight into the female header of the Wheatstone shield (see the image below).

Stackable headers - A0 is bent towards the outside

Then, place the LCD shield on top of the stackable headers. Follow this by using a female/female 1-pin jumper cable and connecting the protruding pin from the stackable header to the A5 male pin on top of the LCD shield (see the image below).

LCD Shield A0 rewired to A5

Once all the parts are assembled, simply connect your Arduino by USB to your computer and start the Arduino IDE. If you do not have the Arduino already installed or have an older version, you can obtain the most recent version here (for Windows, OSX and Linux). Make sure to select the appropriate board type (processor if needed) and port.

The code for this blog post can be obtained on the RobotShop GitHub under the Wheatstone Bridge Amplifier Shield repository. The code is set as one of the examples and uses the Wheatstone Shield and LiquidCrystal libraries. You can obtain it with the Wheatstone shield library (zip file) or by itself here. Once you have installed the library (how to install a library), simply go through the following menus: File -> Examples -> Wheatstone Bridge Amplifier Shield -> Examples -> strain_gauge_shield_and_lcd_arduino_uno_code. Once the example is open, you can then program the Arduino sketch to your board using the Upload arrow, Arduino Upload Arrow.

 Title screen

As soon as the code is uploaded to the Arduino, the screen should start displaying text concerning the application. After a few screens, you will be asked to perform the linear calibration. First, you will have to enter the low point for force (defaults to 0). It can be changed using the left/right/up/down buttons. Once you press select, you will be asked to choose the raw ADC value that is equivalent to 0. Then, you will be asked for the high point of the force measurement. This is ideally the largest force you wish to measure but it can be any force that is higher than the low point. Add a weight/tension to your load cell equivalent to the force entered and press select. The screen will then show you the raw ADC value for the high point with the weight/tension. Press select to calibrate the system. You can now attach weights to/put to tension your load cell and get an estimate of the force produced based on your calibration. Have fun with this little project and don't be shy to comment about your attempts here, on Let's Make Robots (via a project page), or through GitHub, if you have code fixes, updates, ideas, or even new examples to offer!

Real-time measurements

If you followed this tutorial but are curious about the electrical inner workings of this project and its parts, such as the load cell and the Wheatstone bridge amplifier shield, you can obtain more information here:

LikedLike this to see more

Spread the word

Flag this post

Thanks for helping to keep our community civil!

Notify staff privately
It's Spam
This post is an advertisement, or vandalism. It is not useful or relevant to the current topic.

You flagged this as spam. Undo flag.Flag Post