Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HEPTA_SENSOR HEPTA_SENSOR
Revision 4:845cda80eaf0, committed 2017-09-08
- Comitter:
- HEPTA
- Date:
- Fri Sep 08 07:23:27 2017 +0000
- Parent:
- 3:96c3dd85be15
- Commit message:
- Hepta Temperature(revision)
Changed in this revision
| HeptaTemp.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HeptaTemp.cpp Tue Sep 05 12:47:05 2017 +0000
+++ b/HeptaTemp.cpp Fri Sep 08 07:23:27 2017 +0000
@@ -9,20 +9,20 @@
void HeptaTemp::temp_sense(float* temp)
{
//resistance
- R1 = 2500;
- R2 = 2500;
- R3 = 110;
- R4 = 1000;
- R5 = 68000;
- Pt = 100;
- R_1 = 3;
- R_2 = 2;
+ R1 = 2500;//[Ω]
+ R2 = 2500;//[Ω]
+ R3 = 110;//[Ω]
+ R4 = 1000;//[Ω]
+ R5 = 68000;//[Ω]
+ Pt = 100;//[Ω]
+ R_1 = 3;//[kΩ]
+ R_2 = 2;//[kΩ]
//current
- I = 0.001;
+ I = 0.001;//[A]
//voltage
- Vref = 2.5;
+ Vref = 2.5;//[V]
//Gain&Offset
float gain = -R5*I/R4;