在线观看www成人影院-在线观看www日本免费网站-在线观看www视频-在线观看操-欧美18在线-欧美1级

0
  • 聊天消息
  • 系統消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發帖/加入社區
會員中心
創作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示

如何制作張力秤

454398 ? 來源:網絡整理 ? 作者:佚名 ? 2019-11-09 09:57 ? 次閱讀

步驟1:安裝稱重傳感器

首先,我們要安裝稱重傳感器。您的坐騎將是唯一的,但是這里是您需要遵循的準則:

1。鋼制稱重傳感器是一塊板,中間裝有應變片。稱重傳感器通過感應稱重傳感器彎曲多少來測量力。

2。支架通過稱重傳感器梁兩端的孔連接。托架的形狀使拉力施加在測力傳感器梁的中心。由于其形狀和固定位置,拉動托架時稱重傳感器梁會彎曲。

3。將括號鉤到要測量的內容上。為此,最好使用可以自由移動的東西(例如鏈,鉤,結實的繩子或扎帶)。您希望稱重傳感器和托架組件能夠使其自身在稱重方向上居中,以便測量準確。

步驟2:為稱重傳感器和HX711接線

請參閱接線圖,以了解如何連接稱重傳感器,HX711和Arduino

在所示的行李箱式稱重傳感器上,有多個應變儀已經連接到惠斯通電橋。您所需要做的就是以正確的方向將導線連接到HX711板上。

步驟3:將HX711庫添加到Arduino IDE

HX711庫位于此處:https://github.com/bogde/HX711

有關如何將庫添加到Arduino IDE的說明,請參見Arduino網站上的此鏈接:https://www。 arduino.cc/zh-CN/Guide/Libraries

步驟4:校準并稱重!

Sparkfun有出色的Arduino程序可以運行規模。最新版本可以在GitHub上找到,并在下面轉載:https://github.com/sparkfun/HX711-Load-Cell-Amplifier

第一步是確定秤的校準因子。為此,請運行以下代碼

/*

Example using the SparkFun HX711 breakout board with a scale

By: Nathan Seidle

SparkFun Electronics

Date: November 19th, 2014

License: This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license)。

This is the calibration sketch. Use it to determine the calibration_factor that the main example uses. It also

outputs the zero_factor useful for projects that have a permanent mass on the scale in between power cycles.

Setup your scale and start the sketch WITHOUT a weight on the scale

Once readings are displayed place the weight on the scale

Press +/- or a/z to adjust the calibration_factor until the output readings match the known weight

Use this calibration_factor on the example sketch

This example assumes pounds (lbs)。 If you prefer kilograms, change the Serial.print(“ lbs”); line to kg. The

calibration factor will be significantly different but it will be linearly related to lbs (1 lbs = 0.453592 kg)。

Your calibration factor may be very positive or very negative. It all depends on the setup of your scale system

and the direction the sensors deflect from zero state

This example code uses bogde‘s excellent library:“https://github.com/bogde/HX711”

bogde’s library is released under a GNU GENERAL PUBLIC LICENSE

Arduino pin 2 -》 HX711 CLK

3 -》 DOUT

5V -》 VCC

GND -》 GND

Most any pin on the Arduino Uno will be compatible with DOUT/CLK.

The HX711 board can be powered from 2.7V to 5V so the Arduino 5V power should be fine.

*/

#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;

}

}

在校準秤后,您可以運行以下示例程序,然后將其用于自己的目的:

/*

Example using the SparkFun HX711 breakout board with a scale

By: Nathan Seidle

SparkFun Electronics

Date: November 19th, 2014

License: This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license)。

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 3

#define CLK 2

HX711 scale;

void setup() {

Serial.begin(9600);

Serial.println(“HX711 scale demo”);

scale.begin(DOUT, CLK);

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();

}

責任編輯:wv

聲明:本文內容及配圖由入駐作者撰寫或者入駐合作網站授權轉載。文章觀點僅代表作者本人,不代表電子發燒友網立場。文章及其配圖僅供工程師學習之用,如有內容侵權或者其他違規問題,請聯系本站處理。 舉報投訴
  • HX711
    +關注

    關注

    7

    文章

    66

    瀏覽量

    45399
  • Arduino
    +關注

    關注

    189

    文章

    6494

    瀏覽量

    190329
收藏 人收藏

    評論

    相關推薦
    熱點推薦

    皮帶PLC數據采集遠程監控系統方案

    一、系統概述 皮帶PLC數據采集遠程監控系統主要針對皮帶位置分散、計量監督管理難、稱重數據傳輸滯后、計量數據誤差大等問題,通過集成PLC數據采集、無線通信技術、云計算和大數據分析等技術,實現
    的頭像 發表于 03-14 14:02 ?302次閱讀
    皮帶<b class='flag-5'>秤</b>PLC數據采集遠程監控系統方案

    體脂語音芯片方案-WTV380芯片的應用節約BOM綜合成本

    隨著健康管理意識的提升,智能體脂逐漸成為家庭健康監測的重要工具。用戶不僅關注體重數據,還希望通過體脂獲取體脂率、肌肉量、基礎代謝率等多項健康指標。同時,智能體脂的交互體驗也成為產品競爭力
    的頭像 發表于 03-07 15:35 ?284次閱讀
    體脂<b class='flag-5'>秤</b>語音芯片方案-WTV380芯片的應用節約BOM綜合成本

    張力控制變頻收卷程序方案

    張力控制變頻收卷程序方案
    發表于 12-24 14:36 ?0次下載

    基于PLC的拉絲機張力控制系統研究

    拉絲機張力控制的關鍵計算公式
    發表于 12-24 14:35 ?2次下載

    咖啡電子PCBA方案設計

    在當今科技飛速發展的時代,電子在各個領域都發揮著重要作用。而在咖啡領域,一款精準可靠的電子更是不可或缺。今天我們就來聊聊咖啡電子方案的功能實現。 一、主要性能指標 開機方式: 按鍵開機、上電
    的頭像 發表于 12-11 17:04 ?409次閱讀

    鼎盛合——藍牙體脂方案設計

    在當今社會,人們對健康的關注度越來越高,對健康管理工具的需求也日益增長。藍牙體脂作為一種創新的健康管理設備,正逐漸成為人們日常生活中的必備品。今天我們就來聊聊藍牙體脂方案,從它的軟硬件方面剖析
    的頭像 發表于 12-10 16:04 ?572次閱讀

    鼎盛合:智能咖啡電子方案芯片DSH38P89

    在咖啡愛好者的世界里,每一杯咖啡都是一次獨特的體驗。而要制作出一杯完美的咖啡,精準的測量是至關重要的。咖啡電子作為咖啡制作過程中的重要工具,其性能的優劣直接影響著咖啡的品質。在眾多的 MCU 芯片
    的頭像 發表于 11-29 14:20 ?524次閱讀

    JFG-KT01張力傳感器數據表

    旁壓結構,安裝方便精度高,穩定性好用于鋼絲繩張力的監控及測量
    發表于 11-19 14:53 ?0次下載

    JFG-KT02張力傳感器數據表

    滑輪結構,安裝方便精度高,穩定性好用于鋼絲繩等張力的監控及測量
    發表于 11-19 14:52 ?0次下載

    手提吊鉤方案ADC芯片CS1237

    在當今的計量領域,手提吊鉤以其便攜性和高效性成為了眾多行業不可或缺的工具。而在手提吊鉤方案中,ADC 芯片 CS1237 發揮著至關重要的作用。它以其卓越的性能和精準的測量能力,為手提吊鉤
    的頭像 發表于 11-05 15:04 ?682次閱讀

    低功耗藍牙模塊在儀表上的創新應用方案

    在科技日新月異的今天,藍牙模組作為高效、穩定的無線通信技術,正逐步滲透到我們生活的方方面面,在電子領域,藍牙模組的引入更是開啟了電子智能化的新篇章。在電子與儀表中應用藍牙模組的方案主要用于實現
    的頭像 發表于 11-01 16:40 ?640次閱讀
    低功耗藍牙模塊在儀表<b class='flag-5'>秤</b>上的創新應用方案

    張力變頻器有哪些優點

    張力變頻器是一種能夠利用變頻技術調節電機轉速,從而精準控制張力大小的專用設備。它主要應用于需要精確控制張力以保持產品穩定性和質量的工業生產領域,如印刷、紡織、塑料加工、涂布、復合、切割等行業。通過
    的頭像 發表于 10-21 16:46 ?923次閱讀

    電子方案主控芯片DSH3487的技術特點

    在電子領域,主控芯片的性能直接決定了電子的精度、穩定性和功能多樣性。DSH3487 作為一款高性能的電子主控芯片,以其獨特的設計和強大的功能,在市場上脫穎而出。本文將深入探討 DSH3487
    的頭像 發表于 10-09 14:42 ?601次閱讀

    求CSU8RP1186一些關于電子開發例程,最好是C的,跪謝

    有無CSU8RP1186一些關于電子的參考資料及源碼,最好是C的,或者其他相近芯片的電子資料,幫忙發到郵箱871030114@qq.com,非常感謝!
    發表于 08-26 14:33

    什么是張力變頻器?張力變頻器的優點有哪些?

    張力變頻器(Tension Control Inverter)是一種用于張力控制的調節速度的設備。它通常與鋼鐵、電力、印刷、包裝、食品、紡織等行業的設備一起使用,可對張力進行實時調節和控制,從而
    的頭像 發表于 07-31 08:51 ?2591次閱讀
    主站蜘蛛池模板: fenfencao在线观看免费视频 | 亚洲你我色 | 亚洲精品中文字幕乱码三区一二 | 国产精品黄网站免费进入 | 日本一区二区视频在线观看 | 大色综合色综合资源站 | 日本亚洲一区二区 | 欧美18videosex性欧美1819 | 欧美无遮挡一区二区三区 | 朋友夫妇和交换性bd高清 | 亚洲第一黄色网 | 天堂bt资源www在线 | 日本大黄视频 | 拍拍拍成人免费高清视频 | 中文字幕777 | 四虎国产精品永久在线网址 | 一区二区免费在线观看 | 国产免费一区二区三区 | 久久婷婷午色综合夜啪 | 好吊色青青青国产在线观看 | 国产日本久久久久久久久婷婷 | 亚洲天堂视频在线观看免费 | 美女视频永久黄网站免费观看国产 | 国产女主播精品大秀系列在线 | 香蕉视频一级 | 日本黄色一级大片 | 国模小丫大尺度啪啪人体 | 国产精品天天看大片特色视频 | 婷婷 色天使 | 欧美一级视频高清片 | 亚州免费一级毛片 | 色综合视频在线 | 黄色3级 | 三级在线免费观看 | 久青草国产高清在线视频 | 午夜韩国理论片在线播放 | 国产精品爱啪在线线免费观看 | 老师我好爽再深一点好大 | 欧美成人免费午夜全 | 99久久99久久免费精品蜜桃 | 精品伊人久久大香线蕉网站 |