Search the Community

Showing results for tags 'HX711'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

  • Community Calendar

Found 2 results

  1. Hi, I am evaluating the Sparkfun Load Cell Amplifier HX711 using the MSP430FR5969 Launchpad. I added HX711 library and modified the HX711.cpp and HX711.h according to this post below. https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide http://forum.43oh.com/topic/10172-hx711-library-for-use-in-energia/ I opened the SparkFun_HX711_Example.ino. After build, I get this error at HX711.h. error: ISO C++ forbids in-class initialization of non-const static member 'OFFSET' I comment out the initialization value of OFFSET and SCALE and it build without errors. I load the program to MSP430FR5969 LP and I get this output, "Reading: 0.0 lbs" HX711.h class HX711 { private: byte PD_SCK; // Power Down and Serial Clock Input Pin byte DOUT; // Serial Data Output Pin byte GAIN; // amplification factor long OFFSET; // = 0; used for tare weight float SCALE; // = 1; used to return weight in grams, kg, ounces, whatever SparkFun_HX711_Example.ino This example demonstrates basic scale output. See the calibration sketch to get the calibration_factor for your specific load cell setup. This example code uses bogde's excellent library: https://github.com/bogde/HX711 bogde's library is released under a GNU GENERAL PUBLIC LICENSE The HX711 does one thing well: read load cells. The breakout board is compatible with any wheat-stone bridge based load cell which should allow a user to measure everything from a few grams to tens of tons. Arduino pin 2 -> HX711 CLK 3 -> DAT 5V -> VCC GND -> GND The HX711 board can be powered from 2.7V to 5V so the Arduino 5V power should be fine. */ #include "HX711.h" #define calibration_factor -7050.0 //This value is obtained using the SparkFun_HX711_Calibration sketch #define DOUT 18//3 #define CLK 19//2 HX711 scale(DOUT, CLK); void setup() { Serial.begin(9600); Serial.println("HX711 scale demo"); scale.set_scale(calibration_factor); //This value is obtained by using the SparkFun_HX711_Calibration sketch scale.tare(); //Assuming there is no weight on the scale at start up, reset the scale to 0 Serial.println("Readings:"); } void loop() { Serial.print("Reading: "); Serial.print(scale.get_units(), 1); //scale.get_units() returns a float Serial.print(" lbs"); //You can change this to kg but you'll need to refactor the calibration_factor Serial.println(); } After that I connect the Sparkfun Load Cell Amplifier HX711 to MSP430FR5969 Launchpad. Here is the connections pin outs below MSP430FR5969 LP VCC 3.3 V <---------> VDD, VCC (shorted) Sparkfun Load Cell Amplifier HX711 MSP430FR5969 LP VCC GND <---------> GND Sparkfun Load Cell Amplifier HX711 MSP430FR5969 LP P1.2 Pin 19 <---------> CLK Sparkfun Load Cell Amplifier HX711 MSP430FR5969 LP P3.0 Pin 18 <---------> DAT Sparkfun Load Cell Amplifier HX711 MSP430FR5969 LP VCC 3.3 V <---------> VCC 3.3V Voltage Divider BRD MSP430FR5969 LP VCC GND <---------> GND 3.3V Voltage Divider BRD Voltage Divider BRD 15 mV -output <---------> WHT/A- Sparkfun Load Cell Amplifier HX711 Voltage Divider BRD 15 mV +output<---------> GRN/A+ Sparkfun Load Cell Amplifier HX711 Attached HX711.jpg is my setup. The problem is when I run the code I get output at Tera Term "Reading: 0.0 lbs". What could be causing this? I am suspecting the cause of this is my pin assignment 19 and 18 are wrong. But, I followed the pin out guide below. Also, maybe I should initialize OFFSET to 0 and SCALE to 1. http://energia.nu/pin-maps/guide_msp430fr5969launchpad/ Best Regards, Markel Robregado
  2. Has anyone been able to find a library or had any success in making their own library for the HX711 for use with Energia. I know there is a link on Github with the header and source files for Arduino but they do not work for me. The link I'm referring to is https://github.com/bogde/HX711 Thanks for any help!