Example project for the Rioux Chem control box
Rioux Chem Control Box
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
Revision 1:d64ac853223c, committed 2015-08-06
- Comitter:
- emh203
- Date:
- Thu Aug 06 15:02:29 2015 +0000
- Parent:
- 0:7798270c1f52
- Child:
- 2:73a028278c5c
- Commit message:
- Updated the 4 to 20mA to use a sense resistor of 82 ohms
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 Sat Jan 25 19:10:17 2014 +0000
+++ b/DRIVERS/CHEM_BOX_COMMON.cpp Thu Aug 06 15:02:29 2015 +0000
@@ -358,7 +358,7 @@
if(Channel > 1)
Channel = 1;
- return (((float)(ReadRawADC(Channel + 7)) /4095.0) * 5.0) / 240;
+ return (((float)(ReadRawADC(Channel + 7)) /4095.0) * 5.0) / 82;
}
@@ -664,7 +664,7 @@
for(Channel = 0;Channel<=1;Channel++)
{
Data = Read4to20(Channel);
- PC.printf("4TO20:%d:%.3f\r\n",Channel,Data);
+ PC.printf("4TO20:%d:%.5f\r\n",Channel,Data);
}
}
Eli Hughes

