0.1.1 HX711_MP

This commit is contained in:
Rob Tillaart 2023-11-05 10:10:09 +01:00
parent 5b5716fa90
commit ed53c4ecd8
6 changed files with 46 additions and 14 deletions

View File

@ -5,11 +5,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.1.1] - 2023-11-04
- update readme.md
- minor edits
## [0.1.0] - 2023-03-10
- initial release
- first version derived from 0.3.5 https://github.com/RobTillaart/HX711
- minimized examples.
- interface is different from HX711 library as calibration is not a scale and offset anymore.
- interface is different from HX711 library as calibration is not a scale and offset any more.
- see discussion https://github.com/RobTillaart/HX711/issues/29
- see readme.md

View File

@ -1,7 +1,7 @@
//
// FILE: HX711_MP.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// VERSION: 0.1.1
// PURPOSE: Library for load cells for UNO
// URL: https://github.com/RobTillaart/HX711_MP
// URL: https://github.com/RobTillaart/HX711
@ -17,7 +17,7 @@ HX711_MP::HX711_MP(uint8_t size)
{
_size = HX711_MP_MAX_SIZE;
}
else if (_size < 2)
else if (_size < 2)
{
_size = 2; // hard coded minimum!!
}

View File

@ -2,7 +2,7 @@
//
// FILE: HX711_MP.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// VERSION: 0.1.1
// PURPOSE: Library for load cells for Arduino
// URL: https://github.com/RobTillaart/HX711_MP
// URL: https://github.com/RobTillaart/HX711
@ -14,7 +14,7 @@
#include "Arduino.h"
#define HX711_MP_LIB_VERSION (F("0.1.0"))
#define HX711_MP_LIB_VERSION (F("0.1.1"))
const uint8_t HX711_AVERAGE_MODE = 0x00;

View File

@ -1,8 +1,12 @@
[![Arduino CI](https://github.com/RobTillaart/HX711_MP/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
[![Arduino-lint](https://github.com/RobTillaart/HX711_MP/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/HX711_MP/actions/workflows/arduino-lint.yml)
[![JSON check](https://github.com/RobTillaart/HX711_MP/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/HX711_MP/actions/workflows/jsoncheck.yml)
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/HX711_MP.svg)](https://github.com/RobTillaart/HX711_MP/issues)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/HX711_MP/blob/master/LICENSE)
[![GitHub release](https://img.shields.io/github/release/RobTillaart/HX711_MP.svg?maxAge=3600)](https://github.com/RobTillaart/HX711_MP/releases)
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/HX711_MP.svg)](https://registry.platformio.org/libraries/robtillaart/HX711_MP)
# HX711_MP
@ -30,9 +34,25 @@ interpolate beyond the calibration data points.**
If problems occur or there are questions, please open an issue at GitHub.
#### Related
#### 10 or 80 SPS
The datasheet mentions that the HX711 can run at 80 samples per second SPS.
To select this mode connect the **RATE** pin(15) of the chip to Vcc (HIGH).
Connecting **RATE** to GND gives 10 SPS.
All breakout boards I tested have **RATE** connected to GND and offer no
pin to control this from the outside.
This library does not provide means to control the **RATE**.
#### Related
- https://github.com/bogde/HX711
- https://github.com/RobTillaart/weight (conversions kg <> stone etc.)
- https://github.com/RobTillaart/HX711
- https://github.com/RobTillaart/HX711_MP
#### Differences HX711
@ -241,13 +261,12 @@ Points from HX711 are not repeated here
- keep in sync with HX711 library where relevant.
- update documentation
- test a lot
- different load cells.
- investigate interpolation beyond calibration range.
#### Should
- test a lot
- different load cells.
- investigate interpolation beyond calibration range.
- add examples
- runtime changing of the mapping.
- investigate malloc/free for the mapping arrays
@ -255,7 +274,6 @@ Points from HX711 are not repeated here
- Calibration
- Returns 0 is index is out of range ==> NaN ?
#### Could
- add error handling?
@ -266,3 +284,12 @@ Points from HX711 are not repeated here
#### Wont
## Support
If you appreciate my libraries, you can support the development and maintenance.
Improve the quality of the libraries by providing issues and Pull Requests, or
donate through PayPal or GitHub sponsors.
Thank you,

View File

@ -15,9 +15,9 @@
"type": "git",
"url": "https://github.com/RobTillaart/HX711_MP"
},
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",
"frameworks": "arduino",
"frameworks": "*",
"platforms": "*",
"headers": "HX711_MP.h"
}

View File

@ -1,5 +1,5 @@
name=HX711_MP
version=0.1.0
version=0.1.1
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for HX711 load cell amplifier.