0.1.4 MAX31850

This commit is contained in:
Rob Tillaart 2024-01-05 09:52:07 +01:00
parent e9f94b4ac2
commit bb7fcdbe15
12 changed files with 121 additions and 14 deletions

View File

@ -6,10 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.1.4] - 2024-01-04
- Add URL to examples
- minor edits
## [0.1.3] - 2023-11-11
- update readme.md
## [0.1.2] - 2023-01-23
- update GitHub actions
- update license 2023

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2021-2023 Rob Tillaart
Copyright (c) 2021-2024 Rob Tillaart
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,9 +1,10 @@
//
// FILE: MAX31850.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.3
// VERSION: 0.1.4
// DATE: 2021-06-03
// PUPROSE: Arduino library for the MAX31850 thermocouple temperature sensor.
// PURPOSE: Arduino library for the MAX31850 thermocouple temperature sensor.
// URL: https://github.com/RobTillaart/MAX31850
#include "MAX31850.h"

View File

@ -2,12 +2,13 @@
//
// FILE: MAX31850.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.3
// VERSION: 0.1.4
// DATE: 2021-06-03
// PUPROSE: Arduino library for the MAX31850 thermocouple temperature sensor.
// PURPOSE: Arduino library for the MAX31850 thermocouple temperature sensor.
// URL: https://github.com/RobTillaart/MAX31850
#define MAX31850_LIB_VERSION (F("0.1.3"))
#define MAX31850_LIB_VERSION (F("0.1.4"))
#include "Arduino.h"
#include "OneWire.h"

View File

@ -161,7 +161,7 @@ The MAX31850 comes in MAX31850E.. MAX31850T types reflecting the version of TC t
- investigate different thermocouples
- test with different platforms
- has the 31851 special features to implement?
- has the MAX31851 special features to implement?
#### could

View File

@ -2,13 +2,14 @@
// FILE: MAX31850_getAddress.ino
// AUTHOR: Rob Tillaart
// PURPOSE: MAX31850 lib getAddress demo
// URL: https://github.com/RobTillaart/MAX31850
#include "OneWire.h"
#include "MAX31850.h"
#define ONE_WIRE_BUS 2
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);

View File

@ -2,13 +2,14 @@
// FILE: MAX31850_minimum.ino
// AUTHOR: Rob Tillaart
// PURPOSE: minimal sketch
// URL: https://github.com/RobTillaart/MAX31850
#include "OneWire.h"
#include "MAX31850.h"
#define ONE_WIRE_BUS 2
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);
@ -43,5 +44,5 @@ void loop(void)
}
// -- END OF FILE --
// -- END OF FILE --

View File

@ -2,6 +2,7 @@
// FILE: MAX31850_test_disconnect.ino
// AUTHOR: Rob Tillaart
// PURPOSE: Minimal MAX31850 lib with async support.
// URL: https://github.com/RobTillaart/MAX31850
#include "OneWire.h"

View File

@ -2,13 +2,14 @@
// FILE: MAX31850_two_sensors.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo with two sensors (on two pins)
// URL: https://github.com/RobTillaart/MAX31850
#include "OneWire.h"
#include "MAX31850.h"
#define ONE_WIRE_BUS 2
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);

View File

@ -0,0 +1,97 @@
//
// FILE: oneWireSearch.ino
// AUTHOR: Rob Tillaart
// VERSION: 0.1.5
// PURPOSE: scan for 1-Wire devices + code snippet generator
// DATE: 2015-june-30
// URL: https://github.com/RobTillaart/DS18B20_RT
// URL: https://github.com/RobTillaart/DS2401
// URL: http://forum.arduino.cc/index.php?topic=333923
//
// inspired by http://www.hacktronics.com/Tutorials/arduino-1-wire-address-finder.html
//
// HISTORY
// 0.1.00 initial version
// 0.1.01 first published version
// 0.1.02 small output changes
// 0.1.03 added more explicit range
// 0.1.04 added CRC check
// 0.1.5 fix do while loop (thanks pzygielo)
// UNO has pin 2..20
// MEGA and others have different range
const int startPin = 2;
const int endPin = 20;
#include "OneWire.h"
uint8_t findDevices(int pin)
{
OneWire ow(pin);
uint8_t address[8];
uint8_t count = 0;
if (ow.search(address))
{
Serial.print("\nuint8_t pin");
Serial.print(pin, DEC);
Serial.println("[][8] = {");
do
{
count++;
Serial.println(" {");
for (uint8_t i = 0; i < 8; i++)
{
Serial.print("0x");
if (address[i] < 0x10) Serial.print("0");
Serial.print(address[i], HEX);
if (i < 7) Serial.print(", ");
}
Serial.print(" },");
// CHECK CRC
if (ow.crc8(address, 7) == address[7])
{
Serial.println("\t\t// CRC OK");
}
else
{
Serial.println("\t\t// CRC FAILED");
}
} while (ow.search(address));
Serial.println("};");
Serial.print("// nr devices found: ");
Serial.println(count);
}
return count;
}
void setup()
{
Serial.begin(115200);
Serial.println("//\n// Start oneWireSearch.ino \n//");
for (uint8_t pin = startPin; pin < endPin; pin++)
{
findDevices(pin);
}
Serial.println("\n//\n// End oneWireSearch.ino \n//");
}
void loop()
{
}
// -- END OF FILE --

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/MAX31850.git"
},
"version": "0.1.3",
"version": "0.1.4",
"license": "MIT",
"frameworks": "*",
"platforms": "*",

View File

@ -1,5 +1,5 @@
name=MAX31850
version=0.1.3
version=0.1.4
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for the MAX31850 thermocouple temperature sensor.