![](/media/cache/group/hepta-sat_training_black.png.50x50_q85.png)
for textbook v4.4
Dependencies: mbed
Sensor model number : TEMT6000
Sensor Specification
• Operating voltage: 5 ~ 6V
• Consumption current: 20mA]
• Operating temperature: -40 ~ 85 deg C
• Wavelengths: 390700nm
• Size 10x10mm
How to connection with HEPTA-Sat
Vcc → 5V (supply voltage)
GND → GND
SIG → p15 (mbed AnalogIn)
Revision 1:490f190a8023, committed 2019-11-06
- Comitter:
- HeptaSatTraining2019
- Date:
- Wed Nov 06 18:57:56 2019 +0000
- Parent:
- 0:69dfca36c935
- Commit message:
- ;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 69dfca36c935 -r 490f190a8023 main.cpp --- a/main.cpp Mon Mar 22 22:50:36 2010 +0000 +++ b/main.cpp Wed Nov 06 18:57:56 2019 +0000 @@ -3,8 +3,8 @@ Serial pc(USBTX, USBRX); DigitalOut led0(LED1), led25(LED2), led50(LED3), led75(LED4); -AnalogIn temt6000(p20); -// temt6000 breakout: VCC(to VOUT=3.3V), GND(to GND), SIG(to p20) +AnalogIn temt6000(p15); +// temt6000 breakout: VCC(to VOUT=3.3V), GND(to GND), SIG(to p15) int main() { @@ -20,6 +20,6 @@ if(x>0.75) led75 = 1; printf("%f\r\n", x); - wait(0.25); + wait(0.50); } }