[Solved] Error: 'Hx711' does not name a type


i trying measure thrust forces using beam type sensor, hx711 module, , freaduino uno board.  it project here:  

http://www.dfrobot.com/wiki/index.php/weight_sensor_module_v1

i unable find particular weight sensor module , using one:  

http://www.nyplatform.com/index.php?route=product/product&path=114_143&product_id=746

i downloaded , installed library link there, installed in folder /libraries/hx711 contains files hx711.cpp, hx711.h, , samples folder folders named liquidcrystalscale , serial scale containing files liquidcrystalscale.ino , serialscale.ino files.  

i copied sample code page , pasted new sketch in ide.  when try upload sketch error 'hx711' not name type , statement "hx711 scale(a2, a3);" highlighted in yellow.  

can explain problem me?  

the code below.

jack

code: [select]
/*
* description:
* sample code digital weight scale of hx711. weight printed in serial.
* library host on https://github.com/aguegu/ardulibs/tree/3cdb78f3727d9682f7fd22156604fc1e4edd75d1/hx711
* connection:  
  hx711.dout - pin #a2
  hx711.sck  - pin #a3
*/

#include <hx711.h>
hx711 scale(a2, a3);

void setup() {
 serial.begin(9600);
}

void loop() {
 serial.print(scale.getgram(), 1);
 serial.println(" g");
 delay(200);
}


check name of class inside included file actually  hx711,   which class trying create instance of.   it might hx711  or something.  case matters.

otherwise,  not finding h file, reason.   check put in correct place.   check restarted arduino ide after put h file there.


Arduino Forum > Using Arduino > Programming Questions > [Solved] Error: 'Hx711' does not name a type


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support