FRA221_2015
/
10B_Project_strian_guage_final
โปรแกรมdetect น้ำหนักของแผ่น strain guage
Revision 3:6a6ac3ec9462, committed 2015-12-09
- Comitter:
- sixkes
- Date:
- Wed Dec 09 00:01:20 2015 +0000
- Parent:
- 2:b0a005b75d95
- Commit message:
- B10 strain guague project FRA221
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r b0a005b75d95 -r 6a6ac3ec9462 main.cpp --- a/main.cpp Tue Dec 08 21:15:03 2015 +0000 +++ b/main.cpp Wed Dec 09 00:01:20 2015 +0000 @@ -4,18 +4,20 @@ #define standard_poid (float)0.030 #define standard_kilo (float)0.2 Serial pc(USBTX,USBRX); +//Serial da(PA_11,PA_12); DigitalIn setzero_switch(D15); +//DigitalOut LED(D14); DigitalOut LED(D14); //Serial pc(D8,D2); -HX711 mudule2(A1, A0); -HX711 mudule4(A3, A2); -HX711 mudule3(A5, A4); -HX711 mudule1(D3, D4); -HX711 mudule5(D5, D6); -HX711 mudule6(D7, D9); -HX711 mudule7(D10, D11); -HX711 mudule8(D12, D13); +HX711 mudule5(A1, A0); +HX711 mudule6(A3, A2); +HX711 mudule7(A5, A4); +HX711 mudule8(D3, D4); +HX711 mudule1(D5, D6); +HX711 mudule2(D7, D9); +HX711 mudule3(D10, D11); +HX711 mudule4(D12, D13); /* HX711 mudule1(A1, A0); HX711 mudule2(A3, A2); @@ -123,6 +125,7 @@ module2=0; module3=0; module4=0; + //wait_ms(1000); wait_ms(1000); valeur1 = mudule1.getValue(); valeur2 = mudule2.getValue();