New version in Post #1 available for download.
WinGPIB_V3_143_full.zip - Fresh install.
WinGPIB_V3_143_updated_exe.zip - Updated exe to replace existing.WinGPIB_V3_144_full.zip - Fresh install.
WinGPIB_V3_144_updated_exe.zip - Updated exe to replace existing.
MCP2221DLL-M-dotNet4.zip - New DLL to add if you are just doing an update.
[Virus scanned using BitDefender AntiVirus]
I have added a new temperature/humidity sensor solution for WinGPIB.
Note that if you are doing an UPDATE rather than a FULL install then you'll need the .DLL in Post #1.
Adafruit MCP2221A/SHT40 USB-C which consists of:
Adafruit MCP2221A Breakout - General Purpose USB to GPIO ADC I2C - Stemma QT / Qwiic
http://adafru.it/4471Adafruit Sensirion SHT40 Temperature & Humidity Sensor - STEMMA QT / Qwiic
http://adafru.it/4885STEMMA QT / Qwiic JST SH 4-pin Cable - 100mm Long
http://adafru.it/4210INFO: This took 2 solid days to implement, the DLL supplied by Microchip for interfacing to the MCP2221A I found to be limited in terms of example code to glean from.......so had to work through it.
One issue I had was that I didn't realize/forgotten the I2C address of the device connected is 7-bit (8th bit is R/W) and so in Visual Studio &H44 didn't work for the address setting, I had to change to &H88 to compensate. I only realized after I hooked up my scope in I2C serial decode mode and saw 22h rather than 44h. A penny drop moment!
Also, in this first release the time taken for one temp/hum read is ~50mS, compare that to <10mS for the Dogratian sensors. I think this is down to the DLL unfortunately. Not sure what impact, if any, it will have with GPIB.
NOTE: I believe the SHT41 & SHT45 sensors are compatible, difference here:
SHT40 - ±1.8% typical relative humidity accuracy from 25 to 75% and ±0.2 °C typical accuracy from 0 to 75 °C. Max accuracy of ±6%.
SHT41 - ±1.8% typical relative humidity accuracy from 25 to 75% and ±0.2 °C typical accuracy from 0 to 75 °C. Typical accuracy of ±2% over the 0-100% RH.
SHT45 - ±1.0% typical relative humidity accuracy from 25 to 75% and ±0.1°C typical accuracy from 0 to 75 °C.
NOTE: The SHT40 is thermally decoupled from the MCP2221A Pcb. This helps with accuracy as it stops thermal conductivity between the two. I like it!
Ian.