Giter Site home page Giter Site logo

tmp117-arduino's Introduction

TMP117-Arduino

The TMP117 is a high-accuracy, low-power, digital temperature sensor. It can be used for devices that need to meet the NIST traceability like it is often used in medical devices. This library exposes it's functionality using the wire library for I2C communication. The library is written in C++ to support the Arduino plattform.

Features

  • Meet ASTM E1112 and ISO 80601 requirements
  • Serve as a single chip digital alternative to a Platinum RTD (Class AA RTD)
  • 100% tested on a production setup that is NIST traceable
  • ±0.1°C (Maximum) From –20°C to +50°C
  • ±0.15°C (Maximum) From –40°C to +70°C
  • ±0.2°C (Maximum) From –40°C to +100°C
  • ±0.25°C (Maximum) From –55°C to +125°C
  • ±0.3°C (Maximum) From –55°C to +150°C
  • Low Power Consumption 3.5-µA, 1-Hz Conversion Cycle
  • Programmable temperature alert limits

For more informations see the datasheet

Functionality

  • Read measured temperature
  • Read from internal EEPROM
  • Make configuration accessible
  • Implement allert function (HIGH/LOW temperature allerts)
  • Read/write from/to internal EEPROM
  • Implement temperature offset and calibration function
  • Implement software callbacks if new data/temperature is available

tmp117-arduino's People

Contributors

avi-singh12 avatar nilsminor avatar rico-quidel avatar tcirstea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tmp117-arduino's Issues

TMP117.cpp:290:1: error: control reaches end of non-void function [-Werror=return-type]

I installed the library with the library-manager
the opened the example-code and tried to compile for an ESP32-Board

it reports an error:
TMP117.cpp:290:1: error: control reaches end of non-void function [-Werror=return-type]

So something seems to be wrong with the source-code.
Did you let compile your example-codes with reporting ALL errors enabled?

My personal Opinion: If you make a library avilable through the library-manager you should do at least some quality-checking. Otherwise you should upload your library just as a personal repository
best regards Stefan

Issue with Arduino with SAMD21G18

Hello Nils
When i use the code on SAMD21G18 Arduino Board i have one bug when the upload is finish. The Bossa programmer freeze .
I have resolve this issue by moving the <Wire.begin()> call on the TMP117::TMP117 class to the TMP117::init .

Now it works on my both board AVR and SAMD21.

Thanks

Arduino Nano 33 IoT does a HCF when I run simple_test.ino from TMP117-Arduino library

Dear Nils Minor,

I have a simple issue with a Nano 33 IoT board. I hope you can help me.

I have my computer connected to the Nano 33 IoT board with a USB cable. There are no other connections to the Nano 33 IoT board.

When I load the simple_test.ino file from the TMP117-Arduino library, the board disconnects. The software loads and then does not communicate with the Arduino application.

I have attached a file with the Arduino outputs. Also I have cut and pasted the output below, in case the attachment does not work.

Thank you for your help.

Tony Ryan

Nano33IoT_TMP117_issue .txt

Sketch uses 21756 bytes (8%) of program storage space. Maximum is 262144 bytes.
Global variables use 4296 bytes (13%) of dynamic memory, leaving 28472 bytes for local variables. Maximum is 32768 bytes.
Forcing reset using 1200bps open/close on port COM7
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
PORTS {COM1, COM3, COM7, } / {COM1, COM3, COM7, } => {}
Uploading using selected port: COM7
C:\Users\tony\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe -i -d --port=COM7 -U true -i -e -w -v C:\Users\tony\AppData\Local\Temp\arduino_build_448593/simple_test.ino.bin -R
Set binary mode
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v2.0 [Arduino:XYZ] Apr 19 2019 14:38:48
chipId=0x10010005
Connected at 921600 baud
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Atmel SMART device 0x10010005 found
write(addr=0x20004000,size=0x34)
writeWord(addr=0x20004030,value=0x10)
writeWord(addr=0x20004020,value=0x20008000)
Device : ATSAMD21G18A
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Chip ID : 10010005
version()=v2.0 [Arduino:XYZ] Apr 19 2019 14:38:48
Version : v2.0 [Arduino:XYZ] Apr 19 2019 14:38:48
Address : 8192
Pages : 3968
Page Size : 64 bytes
Total Size : 248KB
Planes : 1
Lock Regions : 16
Locked : readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
none
readWord(addr=0x41004018)=0
Security : false
Boot Flash : true
readWord(addr=0x40000834)=0x7000a
BOD : true
readWord(addr=0x40000834)=0x7000a
BOR : true
Arduino : FAST_CHIP_ERASE
Arduino : FAST_MULTI_PAGE_WRITE
Arduino : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
chipErase(addr=0x2000)
done in 0.833 seconds

Write 21756 bytes to flash (340 pages)
write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000)
[===== ] 18% (64/340 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000)
[=========== ] 37% (128/340 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0x1000)
[================ ] 56% (192/340 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x5000, size=0x1000)
[====================== ] 75% (256/340 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x6000, size=0x1000)
[============================ ] 94% (320/340 pages)write(addr=0x20005000,size=0x500)
writeBuffer(scr_addr=0x20005000, dst_addr=0x7000, size=0x500)
[==============================] 100% (340/340 pages)
done in 0.175 seconds

Verify 21756 bytes of flash with checksum.
checksumBuffer(start_addr=0x2000, size=0x1000) = f0a8
checksumBuffer(start_addr=0x3000, size=0x1000) = 8a80
checksumBuffer(start_addr=0x4000, size=0x1000) = e518
checksumBuffer(start_addr=0x5000, size=0x1000) = 9a86
checksumBuffer(start_addr=0x6000, size=0x1000) = 88
checksumBuffer(start_addr=0x7000, size=0x4fc) = 42d0
Verify successful
done in 0.018 seconds
CPU reset.
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
writeWord(addr=0xe000ed0c,value=0x5fa0004)
processing.app.SerialException: Error opening serial port 'COM7'.
at processing.app.Serial.(Serial.java:152)
at processing.app.Serial.(Serial.java:82)
at processing.app.SerialPlotter$2.(SerialPlotter.java:479)
at processing.app.SerialPlotter.open(SerialPlotter.java:479)
at processing.app.AbstractMonitor.resume(AbstractMonitor.java:132)
at processing.app.Editor.resumeOrCloseSerialPlotter(Editor.java:2140)
at processing.app.Editor.access$1400(Editor.java:117)
at processing.app.Editor$UploadHandler.run(Editor.java:2090)
at java.lang.Thread.run(Thread.java:748)
Caused by: jssc.SerialPortException: Port name - COM7; Method name - openPort(); Exception type - Port not found.
at jssc.SerialPort.openPort(SerialPort.java:167)
at processing.app.Serial.(Serial.java:141)
... 8 more
Error opening serial port 'COM7'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.