Ancak kodu çalıştıramadım ve bana Arduino şöyle bir cevap verdi
SerialScale:6: error: 'Hx711' does not name a type SerialScale.ino: In function 'void setup()': SerialScale:10: error: 'scale' was not declared in this scope SerialScale.ino: In function 'void loop()': SerialScale:15: error: 'scale' was not declared in this scope SerialScale:6: error: 'Hx711' does not name a type SerialScale.ino: In function 'void setup()': SerialScale:10: error: 'scale' was not declared in this scope SerialScale.ino: In function 'void loop()': SerialScale:15: error: 'scale' was not declared in this scope
HX711 kütüphanesini yükledim bu arada. Aradım ancak sorunuma bir cevap bulamadım. Bir bilen varsa aranızda yardımcı olursa çok sevinirim. Şimdiden çok teşekkür ederim.
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.
Ben bir ağırlık sensörü yapacağım ve HX711 kullanacağım. Arduino da denemek istedim devremi ve aşağıdaki kodu kullandım;
#include <Hx711.h>
Hx711 scale(A2, A3);
void setup() {
Serial.begin(9600);
scale.tare();
}
void loop() {
Serial.print(scale.getGram(), 1);
Serial.println(" g");
delay(200);
}
Ancak kodu çalıştıramadım ve bana Arduino şöyle bir cevap verdi
SerialScale:6: error: 'Hx711' does not name a type
SerialScale.ino: In function 'void setup()':
SerialScale:10: error: 'scale' was not declared in this scope
SerialScale.ino: In function 'void loop()':
SerialScale:15: error: 'scale' was not declared in this scope
SerialScale:6: error: 'Hx711' does not name a type
SerialScale.ino: In function 'void setup()':
SerialScale:10: error: 'scale' was not declared in this scope
SerialScale.ino: In function 'void loop()':
SerialScale:15: error: 'scale' was not declared in this scope
HX711 kütüphanesini yükledim bu arada. Aradım ancak sorunuma bir cevap bulamadım. Bir bilen varsa aranızda yardımcı olursa çok sevinirim.
Şimdiden çok teşekkür ederim.
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye Ol Şimdi DeğilÜye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.