Nothing shows in serial monitor (EDIT: Managed to solve it)

EDIT: Ok I was asked to provide the code and pictures of the wiring, so rewriting this whole thing, apologies for the previous version.
The hardware include:
arduino uno
4 Single Strain Gauge Load cells (arranged in a wheatstone bridge configuration)
Sparkfun HX711 load amplifier
SparkFun Load Sensor Combinator Board

#include "HX711.h"

#define DOUT 3
#define CLK 2

HX711 scale;

float calibration_factor = -7050;  //-7050 worked for my 440lb max scale setup

void setup() {
  Serial.begin(9600);
  Serial.println("HX711 calibration sketch");
  Serial.println("Remove all weight from scale");
  Serial.println("After readings begin, place known weight on scale");
  Serial.println("Press + or a to increase calibration factor");
  Serial.println("Press - or z to decrease calibration factor");

  scale.begin(DOUT, CLK);
  scale.set_scale();
  scale.tare();  //Reset the scale to 0

  long zero_factor = scale.read_average();  //Get a baseline reading
  Serial.print("Zero factor: ");            //This can be used to remove the need to tare the scale. Useful in permanent scale projects.
  Serial.println(zero_factor);
}

void loop() {

  scale.set_scale(calibration_factor);  //Adjust to this calibration factor

  Serial.print("Reading: ");
  Serial.print(scale.get_units(), 1);
  Serial.print(" lbs");  //Change this to kg and re-adjust the calibration factor if you follow SI units like a sane person
  Serial.print(" calibration_factor: ");
  Serial.print(calibration_factor);
  Serial.println();

  if (Serial.available()) {
    char temp = Serial.read();
    if (temp == '+' || temp == 'a')
      calibration_factor += 10;
    else if (temp == '-' || temp == 'z')
      calibration_factor -= 10;
  }
}

There is NO error message, the issue is that I have no information at all in the serial monitor, and cannot figure out how to open the output window either, I have very little experience with arduino, and have previously in this assignment primarily been working on Pure Data code (which will later be linked to the arduino code but that I already know how to do and have not done, this is just using code from sparkfun´s website to test if it works and to calibrate the scale, but has not been done yet because I need to calibrate the scale first.)

I appreciate any help possible.

Before asking questions read the forum guidelines.


Always show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.


In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch.

Use the </> icon from the ‘reply menu’ to attach the copied sketch.

The forum guidelines will help to explain what information that we need in order to help you.

Try one of the serial example sketches that ship with the IDE. They are known to work. Then you have some idea

  1. whether it is hardware or software problem
  2. if software, shows you the correct way

Being short of time gives no favours. Poor planning....

Does the upload even work?

Thank you for linking this, this was very helpful for formatting the query, I hope it is more readable now

I have done so now, I appreciate this information and apologies for having not read the posts on formatting.

Look in the lower right corner of the serial monitor, make sure the baud rate is set to 9600.

In setup(), put Serial.flush(); on a line before scale.begin(), that will insure that the previous serial text is printed before initialize the scale. That will at least let you know if the serial monitor is working correctly.

1 Like

Do you have the load cell amp wired correctly? The VCC & VDD connections to 5V and 3.3V looks odd for an UNO.

1 Like

it says on the guide that the VCC should go to 5V and the VDD to the 3.3V so it should be correct?

I tried that, as well as the other tip you gave, but it did not seem to do anything, the baud rate is set to 9600

check the doc

In many cases, you can just short VCC and VDD together. If your microcontroller uses 3.3V logic you do want to connect VCC to 5V and VDD to 3.3V.

here you have a 5V Arduino UNO, so both go to 5V

how did you connect those?


are they soldered as well or do you just have the pins inserted into the hole?

1 Like

I tried to solder them but they were too big so it did not really work, so they are currently just inserted until I can figure out a more secure way, also I am not sure how I am supposed to put them both into 5V when there is only one slot for 5V.....
But is it that only inserting them might be preventing it from working?
But I am still not sure why no text at all would show up in the serial monitor anyway?

that's definitely an issue. you need to solder those

bridge them together (solder across) and bring 5V to one of them.

Note that you have multiple 5V pins on your Arduino if you check the ICSP pins

you have 2xGND there too

1 Like

Thank you! I should be able to try soldering them togheter tomorrow, I wont know for sure if that worked or not until then of course but it is something that seems like it might work so I will give it a try

It did not work, but thank you, I realised I was doing a different rookie misstake so I will close this thread... I had a different problem though ill make a new one about
I had forgotten to compile it....

:wink: ... oh well

(you still a solid connection - soldering is best)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.