โครงตราชั้งอะคริลิค ![]()
หยิบลงตะกร้า | โมดูล HX711 ![]()
หยิบลงตะกร้า | Load Cell 1Kg ![]()
หยิบลงตะกร้า | ||||||||||||||||||||||||||||||||||||
Load Cell 5Kg ![]()
หยิบลงตะกร้า | Load Cell 10Kg ![]()
หยิบลงตะกร้า | Load Cell 20Kg ![]()
หยิบลงตะกร้า |
Load Cell | HX711 | HX711 | Arduino |
Red (E+) | E+ | GND | GND |
Black (E-) | E- | DT | Pin 2 |
White (A-) | A- | SCK | Pin 3 |
Green (A+) | A+ | VCC | 5V |
/*
Rui Santos
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
*/
// Calibrating the load cell
#include "HX711.h"
// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 2;
const int LOADCELL_SCK_PIN = 3;
HX711 scale;
void setup() {
Serial.begin(57600);
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
}
void loop() {
if (scale.is_ready()) {
scale.set_scale();
Serial.println("Tare... remove any weights from the scale.");
delay(5000);
scale.tare();
Serial.println("Tare done...");
Serial.print("Place a known weight on the scale...");
delay(5000);
long reading = scale.get_units(10);
Serial.print("Result: ");
Serial.println(reading);
}
else {
Serial.println("HX711 not found.");
}
delay(1000);
}
//calibration factor will be the (reading)/(known weight)
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีด้านล่าง โดยลูกค้าสามารถโอนเงินหลังทำรายการสั่งซื้อได้ทันทีไม่ต้องรอยืนยัน
หลังจากโอนเงินแล้วสามารถแจ้งชำระเงินได้ที่ เมนูแจ้งชำระเงิน
หรือชำระเงินผ่าน PayPal โดยคลิกที่ ชำระเงินออนไลน์
หน้าที่เข้าชม | 1,830,165 ครั้ง |
ผู้ชมทั้งหมด | 799,165 ครั้ง |
เปิดร้าน | 12 ธ.ค. 2558 |
ร้านค้าอัพเดท | 8 ก.ย. 2568 |