Example project for the Rioux Chem control box

Dependencies:   mbed MODSERIAL

Dependents:   screentest

Rioux Chem Control Box

/media/uploads/emh203/ccb.jpg

This is the example project for the Rioux Chem Control Box. I have posted some youtube videos to guide you through the hardware and software:

Rioux Chem Control Box - Hardware

http://www.youtube.com/watch?v=MoZ92GRYa4s

Rioux Chem Control Box - Software - Part I

http://www.youtube.com/watch?v=_MwaTLL4dyA==

Rioux Chem Control Box - Software - Part II

http://www.youtube.com/watch?v=j_P89izfgoQ

Files at this revision

API Documentation at this revision

Comitter:
wavenumber
Date:
Mon Nov 01 19:49:13 2021 +0000
Parent:
8:0cf1573051e8
Commit message:
Fixed Thermocouple sign extend error

Changed in this revision

DRIVERS/CHEM_BOX_COMMON.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/DRIVERS/CHEM_BOX_COMMON.cpp	Wed Oct 06 14:27:21 2021 +0000
+++ b/DRIVERS/CHEM_BOX_COMMON.cpp	Mon Nov 01 19:49:13 2021 +0000
@@ -319,7 +319,7 @@
         InternalTemp = (int16_t)( ( (ThermocoupleData>>4) & 0xFFF));
 
 
-     if(ThermocoupleData & (0x10000000))
+     if(ThermocoupleData & (0x80000000))
         ThermocoupleTemp = (int16_t)(((ThermocoupleData>>18) & 0x2FFF) | 0xC000);  //Sign extend in this case.... we need to map a 14 bit signed number to 16-bits
     else
         ThermocoupleTemp = (int16_t)(((ThermocoupleData>>18) & 0x2FFF));