Important Announcement
PubHTML5 Scheduled Server Maintenance on (GMT) Sunday, June 26th, 2:00 am - 8:00 am.
PubHTML5 site will be inoperative during the times indicated!

Home Explore DL-2020-04

DL-2020-04

Published by mirnauka61, 2023-06-07 02:11:17

Description: DL-2020-04

Search

Read the Text Version

["?????????? BSP. ?? ?????????: ????????? ??????? Build Debug Tools Plugins DoxyBlocks Settings Help X ^^^^^^^^^^^^^^^^^^^^^^^^^^^I^^^^^^^^^^^^^^^^^H 1 1 #include \\\"mx init hw.c\\\" 2 1^ 4 int main() Z 1^ 6 ?{ 7 bool bit - true; 8 9 Init HW<); 10 11 12 Z':-.^ :?::.!,;_:-. : r : irr^i-.i :-:??::: 13 14 while{ TRUE } 15 R { 16 if< button ) set bit ( pcl3, ;|1 ) else set _bit( pcl3, 0 ); 17 } 18 L} 1 -i q 20 ??????? ????? BSP (F8), ???????????, ????????? ? ???????????????. ???????? ?? ?????? \u2014 ????????? ??????????, ????????? \u2014 ??????. ?????? ?????????? ?? ?????? ???? ????? ?????????? ????, ????????: ? ????????? ????? ???? ???????? ?????????. ???????, ?????? ????? ????? ?? ???????. ????? ??????????, ??? ????? ?????- ???. ???????? ????????: \u2022 ??????? USB-UART \u2022 ??????????? ???-???? (?????? Micro-USB) ???? ? ???????????? ??????? ???????????? UART1 ? USB as Console, ??? ???? USB VCP ?? ??????, ?? ??????? ????? ????????? \u00ab? ??????\u00bb. ?? ???? ???????? ?? ??????? print_str (??? ?????? print ) ?? ?????, ?? ? ?????? ?? ????? ??????- ?? . ????? ?? ????????? ????? ???? ?? ??????? ?? ???? ?????????, ??? ??????? USB VCP ?? ?? ??????? ?? UART1 ?? USB as Console. ???????????? ???????:","*j* Module 10 Configurator File Tools ? ? LH IV MCU: STM32F103C8T6 Comment: Data Configuration Serial (UART; Virtual COM-port) RUART1 ? jf>BVCP^ ? USB as Console ????????? TettaTerm ? ???-????? (???????). ???? ???????? ???????? ???????- ??? ????? UART1, ?? ?? ???????? ?????????\/?????????? ???-????. ? TerraTerm \u00ab??????? ??????\u00bb Alt+I; Alt+N. ??? ???????? ???????? ????? ST-Link ????? ??- ???? ?? ?????????. ????????????? ?????????: 1 tinclude \\\"mx init hw.c\\\" A 2 3 int main() 4 5 B< 6 7 bool bit = true; 8 9 uint32 t dt, 10 11 Init HW(); 12 13 print( \\\"\\\\33[H3\\\\ 3[2J\\\" ); 2 , ; 2 - :?::- :-..r.-:::: x. : . :-. -?:: ? ::::.-:, 14 _ 15 dt - CntTime; _ 16 17 - 18 19 - -. _ ,_ .. ,.. ,. . ... 20 21 ... 22 23 while( TRUE ) 24 25 ?{ 26 27 if{ button ) 28 29 ?{ 30 31 set bit( pcl3, 1 ); 32 33 if{ { CntTime dt } > 2 0 ) 34 35 ?{ 36 37 print( \\\" led offr\\\\ n ); 38 39 dt - CntTime; } } else ?{ set_bit( ??13? 0 ); dt ) if{ { CntTime > :\u00bb ) ?{ print{ \\\" led on r\\\\ \\\" ); dt = CntTime; } } } L) 1< L V >","?????? ?? ??????? ????? ???????????? ????????? ??????: S ?0?1- ???? Term VT Window Help File Edit Setup Control ????????? ? \u00ab????????\u00bb ????????????? ?????? DS18B20 Vcc Ground DS18B20 Pinout \\\\ v 3:Vc ???????? ? ??????? ??????????: V X* Module I0 Configurator 1:GND File Tools ? ?X ? ^[fw ||[^| MCU: STM32F103C8T6 Comment: ? * Comment I Data Configuration I (Delete row) Name Type I Port I Q DS18B20 PBl 1 ds!8b20","??????? ????????? ?? ?????????: 1 linclude \\\"mx init hw.c\\\" 2 3 4 int. main{) 5 6 ?i 7 Init HW{}; 8 9 10 11 12 while < TRUE ) 13 e { 14 delayms{ 2 00 ); 15 16 print ( \\\"3\\\\ 3[H3\\\\ 3[2J\\\" ); c,: 17 ds!8b20 print( nt=%-.lf\\\\rn\\\\ \\\", ) 18 19 20 ??????? ????? ????????????, ???????????, ????????? ? ???????????????, ???????????, ?????????? ????????. ?? ??????? ????? ???????????? 5 ?0?1- ???? Term VT VVmdow Help File Edit Setup Control ? ???????? ??????? ?????? ? ??? ????? ???????????? ????????????:","??? ?????? ????????? ?????: ??????????? ?? ?????????. ????????????? ????: ?* Module 10 Configurator File Tools ? '? ^FW 1ftHI MCU: STM32F103C8T6 Comment: 1 Data Configuration 1 Name Type Port PBl 1 dsl8b20 DS18B20 ??? 1 ?- -\\\\ | |GPIO_Mode_AIN 1 2 :soil_sensor ??????????? ?????????: 1 #inciude \\\"mx init hw.c\\\" 2 3 4 int main{) 5 ------- - - - - - ~ - - - -------- - - ------- - - - - - - - : : ~: ^? ? ?? : = --: rr:r^:^rr: --.- 6 ?{ 7 uintl6 t min, max; 8 9 Init HW<) ; 10 11 min = soil sensor; 12 max = soil sensor; 13 14 15 ~r.^ ::ii:r. ;l : ;::a:: 1 : :;: 16 17 while( TRUE ) 18 ? P { 19 delay ms{ : 0 > ); print r,\\\\33[H\\\\33[2J\\\"{ ),20 ? = ; H - :\u2022:: v~ ::-.. ::,- : :: z: ;.:\u2022.:?.: z r ?. z~ ::: rr. 21 if( max < soil sensor ) max = soil sensor; 22 if ( min > soil sensor ) min = soil sensor; 23 [print { \\\"adc=%-5u min=%- -5u max- =%-5u\\\\r\\\", soil sensor, min, ??? ) ; 24 > 25 L } 26 27","???????????, ?????????. ? ??????? ?????????: \u00bb ???! -????TermVT Window Help File Edit Setup Control max=3441 gdc=3414 min=2047 adc \u2014 ??????? ????????? ???. max ? min \u2014 ??????????????? ??????????? ? ???- ????????? ????????? ???????, ?????? ????? (0%) ? ?????? ?????? (100%). (0%) - ?????? ?????? (100%) \u2014 ??????? ?????? ? ?????? ? ?????. ?????? ????? ?????- ????? ?? ???????? ???????. ?? ???? ?? ??????? ?????????? ??????? ????????? ????? ?? 0 ?? 100%. ? ????? ??????? ? ??????????? ???????? ???????? ?????????. Debug Tools Plugins DoxyBlocks Settings Help main.? #include X ^1 \\\"mx init hw.c\\\" ?~ int main() 2 3 ?? -~ - \\\" \\\" ~ ~ ~ - ~ - ~ \\\" ~ ~ ~ ~ - - ~ 4 5 : r: :- \\\": ::: : n :r: :z :~ rr :r ;- rz ::: ::: - \\\" - \\\" ~ - - ._ ._ _ _... \u201e\u201e _\u201e _... \u201e ... 6 7 r: ::: ?: ?- ?? ??: ::: :?: zz ::: :? rr rT r.... 8 9 double xl = > S1 r\\\\. 0; : r. s e ?. ? : r A1 1 10 double AAA 11 double x2 = 2 0 4 4.0; : ^:: ? e i.e : r 12 double 13 double yl = 0.0; : _: 14 15 y2 = 100.0; re- 16 k, b, soil 17 h; 18 19 Init_HW{); 20 21 k - < y2 - yl )\/ < x2 - xl ); 22 23 b = { { x2 * yl )- { xl A y2 ) ) \/ { x2 - xl ); 24 25 ------ .--.--..- -- .. . -. - .. ..... 26 27 ?:>? ?:\\\\.-; ~._r. ' \\\\ :??::: 28 29 : r :?:: ~r: 30 31 while( TRUE ) 32 33 ?( delay ms{ 200 ) ; soil h = k \\\"* soil sensor + b; print { \\\"3\\\\ 3[H\\\\33[2J\\\" ); A-: H ;:: - : ; : : r z : v..:-.>t;: \\\".?::: :o:r. print( nsoil h = %.lf %%r\\\\ n\\\\ \\\", soil_h ); print{ \\\" t = %.lfr\\\\ \\\\nn, dsl8b20 ); } L} ????????? ??????. ?????? ??????? ? ????? ?????????? ??????:","S C0M1- ???? Term VT File Edit Setup Control Window Help goil h = 55.0 % t = 22.6 ??? \u00ab??????? ????????\u00bb ??????????? ????????? ?????????? ???????? I ?: \u2022 LCD 1602 \u2022 SSD1306 ??????????? ????????? ????????? 12? ????????: \u2022 ??1750 \u2022 ???280 \u2014 ?????? ???????????? \u2022 CCS811 \u2014 ?????? ???????????, ????????, ????????? \u2014 ?????? ?02, ??? (??????? ???????????? ????????). ??1750 16-?????? ?????? ???????????? (????????) ? ??????????? 12?. ???????? ?? ??1750 ?????????? ????????????? ?????, ??????? ????????????? ? ???????? ?????????. ?????????? ? ??????? ????????????? ?????????? ??? ?????? 16-?????? ???????? ??????. ?????????? ?????? ??1750 ????????? ?? ????????????? ?????- ???? ??????? ??????????, ????????? ?? ???????? ??????? ???????? ???????? ???- ??? ? ?????? (??). ???????? ????????????, ?????? ??1750 ???????????? ? ???????? ????? ? ????- ??????? ?? ????????? ??????? ????????????? ?????????, ?.?. ????????? ???????? ???????????? ?? ??? ?? ???????????? ????????, ??? ? ????. \u00abConfiguration\u00bb ??? ?????? ? ???? ???????? ?? ???????? ??????? ??1750. ? ?????????? ?????????? ????????? ????? ?????????? ??????????: uint32_t BH_L; ??????????? ??????? ? ???? 12?2: GND GND VCC 5V SDA ??? SCL ??10","?????? ???280 ???????? ????????? ?????????? ?????: ???????????, ????????- ??? ????????, ? ????? ????????? ???????. ?????? ????, ??? ?????? ???????? ??? ????????????????? ?????????, ?? ????? ??? ?? ? ????- ????? ??????????? ????, ? ???? ???????? ?????????? ?????????. ????????? ?? ?????? ??? ?? ?????? ????????, ?????? ?????? ??????????? ??? ??? ??????? ?? ????? ??????, ?? ? ? ????? ??????? ??????????. ????????, ?????? ???????? ????????? ??????? ????? 20 ?????????. ?????????? ?????????????? ? ??????? ?????????: ???????? ????????? ???????? \u00b13 %RH ( ? ????????? 20.. .80 %RH ) ) ???????? ????????? ???????? \u00b11.0 hPa( ? ????????? ???????? ????????? \u00b10.5 \u00b0? ( ? ????????? 300 .. . ?????? ??????????? ?????????? ??????? 3.3V. -40.. .+85 \u00b0? ) ?????? ???????????? ? ???? 12?2 ????????? ???????: GND GND VCC 3.3V SDA ??? SCL ??10 ?????????? ????????? ????? ?????????? ? ?????????? ??????????: int32_t BMET ??????????? * 10 int32_t ??? ? ???????? * 100 int32_t BMEH ????????? * 10 ?????? ?????????, ?????????? ? ????????? ??1750, ???280, ? ??????? 1602: #include \\\"mx_init_hw.?\\\" int main () { ???? ??? ???????? ?????? \u2014 ???280, ? ??????? ??????????? ??????????? ???????? ?????????. ?? ???? ????? ?? ??????? ???????.","char s [64] ; float t=0, p=0, h=0; Init_HW() ; \/\/ \/\/ The main program loop ); \/\/ ) while( TRUE 300 { delay_ms( t = BME_T \/ 10.0; p = BME_P \/ 100.0; h = BME_H \/ 10.0; sprintf( s, \\\"t=%-7.1fC\\\", t ); 1, s ); SSD1306_write_string( sprintf( s, np=%-7.1fPaff, p ); 2r s ); SSD1306_write_string( sprintf( s, \\\"h=%-7.1f%% ?? h ); 3, s ) ; SSD1306_write_string( sprintf( s, \\\"T=%-7.1fH=%.lf\\\"f t, h ); LCD_write_string( 1, s ); sprintf( s, \\\"P=%-7.1fL=%u\\\", p, BH_L ); LCD write string( 2, s ); ????????? ?????? ?????????:","??? ?? ????????? ????? ?????????? ???????????, ????????, ????????? ?? ???- ???? SSD1306 (?????????? ?????? ???????, ? ??????? ??? ? ????????????): ? ?????? ???280 ????? ???????? ??????????? ? ??????? ?????????. ??? ????? ??? ????? ?????????????. ? ????? main\/bme280.h ??? ????? ???? ????????????????: #define DT 3520 ?????? CCS811 ???????? ??????? ???????????? ???????? (???). ?????????? ??? ?????? ???????????? ????? ????? ????? ? ??????? ? ???????? ?? ????? (????? 78%) ? ????????? (????? 21%) . ?????????? ??????? ?????????? ?? ???? ????????? ???????? (???????? ????, ?????????? ???, ??????? ???, ????- ???????? ??????? ???????? ? ?. ?). ???????? ?? ??, ??? ? ?????????? ????????- ??? ?????????? ???????? ????, ????????? ?? ???????????? ????? ????????? ????? ?????????? ? ???? ??????? ??? ????????. ???????? ??????? ? ??????? ? ??????? ?????????? ???? ????? ????????? ? ??????????? ?02 ? ???. ? ???????????? ??????? ????????? ????????? ????? 5000 ??????????. ????????- ??? ??????? ????? ?? ??? ??? ??? ????? ??????? ? ?????????? ????????????????? ????????. ????? ???????, ???? ??????? ??????????? ???????? ? ????????? ????????? ???- ????? ??????? ?????? ? \u00ab???????????\u00bb ? ????????????? ?????????????. ?????? ??????- ??????? ??? ? ??????? ??????????. ?????? ??? ?????? ???????????? ??? ????????? ?????????? ??2. ??? ???? ??? ????, ??? ? ?????????? ???????? ??????-","?????? ??? ? ?02 ??????????? ??????????. ???? ?????????? ?????????? ?02, ???- ?? ???????? ?????????? ???????????? ???. ???? ?????????? ??????????? ???? ? ??????? ???????? ?????????? ??????? \u2014 ?????????? ???????? ??????????. ?? ???????? ??????????? ????? ??? ? ?02 ?? ?????? ??????????. ????????, ??- ????? ? ????????? ???????? ?????? ?????? ?????????? ???, ??????? ??????? ?02 ?? ?????????, ??? ???????????? ??????????? ???? ??? ???? ?????? ?? ????????. ??????? ??????????? ???? ????? ????? ?????????, ???? ? ????????? ???????????? ??????? ?????, ???????? ????????, ????????????? ????????? ??? ??????? ?????- ?????. ???????? AMS ?????????? ???? ??????? ???????? ????????? ???????????? ??? \u2014 ??????? CCS811. ?????????????? ???????? ???????? ??????? CCS811B: ???????? ?????????? ???????????? ?02 400...8192ppm I ???????? ?...?87??? ?????????? ??????? TVOC 400 ??? I2C ???????????????? ????????? 0?25 \/ 1 \/ 10 \/ 60 ? ?????? ?????? 0.034 ??? (Mode 0) ???????????? ???????? 46 ??? (Mode 1 ? 4) 7 ??? (Mode 2) ?????????? ??????? 1.2 ??? (Mode 3) ???????? ??????? ?????????? 1,8...3,3 ? -40...+85\u00b0? ?????? ????? ???????? ?????????????? ??????????. ?????????? ???????? ????- ????????? ??????????????? ? ??????? ?????????? ????. ?? ???? ??????? ????? ?????? ????? ?????????? ????????? ??????????? ? ?????? ?????????? ??? ??????? ????-??????? ????? ?? ????????? ?????-????? ??????????? ???????????: 900,000 ? 800,000 4* 700,000 600,000 4V 500,000 I\\\\ 400,000 300,000 4 ^>^ 200,000 I I I 100,000 I ?4 1 ? ? 1> 0 2 4 6 8 10 ??? ???????????? ????? ?????????? ???????, ??? ?????? ??? ????? ????????? ???- 30 ??? CCS811 ?????? \u00ab????????????\u00bb. ????? ?????? \u00ab????????\u00bb ?????????? ????? ?????, ? ??????? ??????? ??????????? ??????????? ??????????? ???????:","400,000 (2) Ii3> (4) ! 350,000 ^' 300,000 -^\\\"^^? 250,000 \u00ab???\\\"??\u00ab\u2022 j ? ?????? ? ?????? s 1 ? 200,000 i i ?? Ciapr 150,000 100,000 \/ (1) (1) _ \u00ab_ _\u00bb ??????? ????? 50,000 ^^^^^^^^^~ ????? ? ???????????? ??????? 0 30 45 60 75 15 ?????, ?????? ??? ??????????? CCS811 ?????? ????? ?????????. ?????????? ????????? ??????? ????????? ? ?????????? ??????????: uint32_t CCS_C02; ? ???? 12?2: uint32_t CCS_TVOC; ??????????? ??????? ????????? ???????, ???????? ??????? ???????? HC-SR501 ?? ??????? ????????? ?????????????? ????? ???? ????????? (?????? ?????? arduino). Output IGND, + Power","??? ??????? ??????? \u2014 ???????? ??????????, ??????? ????, ??????? Type=GPIO_Mode_IN_FLOATING ???????????? BSP, ?????????????, ????????? ? ??. ????? ???????? ? ???? ???- ????? ??? ??, ??? ? ??????? (?? ????????? ??????). ??????????? ??????? HC-SR501: GND GND Variable Name> VCC 5V Out <Port ?????? ???????????\/????????? DHT22: DHT22 pins 1 VCC 2 DATA 3 NC 4 GND '?v.- ??????????? ???????: 1 VDD ??????? 5V 2 SDA 3 NC ?????? single wire 4 GND He ????????? GND ?????? ? ???? ???????? ????? ??? ?????? ????????????????? ???????? (?????- ???? ??? ? ????? main): h The result is recorded in a variables: DHT_h - humidity DHT t - temperature Increment timer frequency ( CntTime ) = 10 mS *\/ #define PORT GPIOA #define #define PIN GPIO_Pin_5 PIN) SENSOR PIN (PORT,","void dht_init( void ) { GPIO_InitTypeDef GPIO_InitStructure; GPIO_StructInit( &GPIO_InitStructure ); GPIO_InitStructure.GPIO_Pin = PIN; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_OD; = GPIO_Speed_10MHz GPIO_InitStructure.GPIO_Speed ; ); GPIO_Init( PORT, &GPIO_InitStructure GPIO_SetBits SENSOR_PIN; } \/\/ ======================================================= int8_t get_dht_data( intl6_t *DHT_t, intl6_t *DHT_h ) \/\/ ======================================================= { uint8_t ui16_t, *ui8 ; start_time; uintl6_t uint32_t i, n, ui16_h; uint64_t results- nO, nl, result =0 =0 *DHT_h =0 *DHT_t \/\/ Request for get data GPIO_SetBits SENSOR_PIN; delay_ms( GPIO_ResetBits 500 ); delay_ms( GPIO_SetBits SENSOR_PIN; start_time 20 ); SENSOR_PIN; = CntTime; while( GPIO_ReadInputDataBit SENSOR_PIN ) { ( 20-40 \/\/ Skip sensor response \\\"1\\\" uS ) } while( if( abs( CntTime - start_time ) > 20 ) the sensor does not send data { \/\/ Waiting does not send data for more than 200 mS - does not send data } while( { { return 1; } } !GPIO_ReadInputDataBit SENSOR_PIN ) ( 80 uS ) \/\/ Skip sensor response \\\"0\\\" if( abs( CntTime - start_time ) > 20 ) the sensor \/\/ Waiting for more than 200 mS - { return 1; } GPIO_ReadInputDataBit SENSOR_PIN ) ( 80 uS ) \/\/ Skip sensor response \\\"1\\\" if( abs( CntTime - start_time ) > 20 ) the sensor \/\/ Waiting for more than 200 mS - { return 1; }","\/\/ Read data for( i = 0; i < 40; i++ ) { nO = 0; \/\/ Duration \\\"0\\\" while( !GPIO_ReadInputDataBit SENSOR_PIN ) \/\/ Skip sensor response \\\"0\\\" { n0++; if( abs( CntTime - start_time ) > 20 ) \/\/ Waiting for more than 200 mS - the sensor does not send data { does not send data return 1; \\\"1\\\", this reading } } nl = 0; \/\/ Duration \\\"1\\\" while( GPIO_ReadInputDataBit SENSOR_PIN ) { \/\/ Skip sensor response \\\"1\\\" } nl++; if( abs( CntTime - start_time ) > 20 ) \/\/ Waiting for more than 200 mS - the sensor { return 1; } if( nO < nl ) of \\\"0\\\" is less than the duration \\\"1\\\" \/\/ If the duration { \/\/ Otherwise reading \\\"0\\\" n = 1; } else { n = 0; } result = result \u00ab 1; if ( n ) { result |= n; } } \/\/ calculate CS n = 0; ui8 = ( uint8_t* ) &result; 5; i++ ) for( i = 1; i < { n += ui8[i]; } n = n & OxFF; if ( n != ui8[0] ) \/\/ CS not equal - error 2 { equal return 2; } \/\/ CS is else {","uil6_t = ui8[2]; uil6_t = uil6_t \u00ab 8; uil6_t |= ui8[l]; if( uil6_t & 0x8000 ) & 0x7FFF; { uil6_t = uil6_t *DHT_t = -uil6_t; } else { *DHT_t = uil6_t; } uil6_h = ui8[4]; uil6_h = uil6_h \u00ab 8; uil6_h |= ui8[3]; *DHT_h = uil6_h; } return 0; } \/\/ ? ?????? ????? ??????????????? ??????: #define PORT GPIOA #define PIN GPIO_Pin_5 ?? ???????????? ??????????? ???????. ????? ????????? ??? ?????? ? ?????? ?????????: #include \\\"mx_init_hw.?\\\" #include \\\"dht_22.c\\\" int main () dht_t, dht_h; { intl6_t Init_HW() ; dht_init() ; \/\/ \/\/ The main program loop \/\/ ); while( TRUE ) 22 { delay_ms( 5000 if( !get_dht_data( &dht_t, &dht_h )) h=%.lf\\\\rn\\\\ \\\", print( \\\"t=%.lf (float)dht_t \/ 10.0, (float)dht_h \/ 10.0 ) - ERRr\\\\ n\\\\ \\\" else print( \\\"DHT ); } ????????? ??????:","S COM4 - ???? Term... \u2014 File Edit Setup Control Window Help t=24.9 h=24.4 t=24.9 h=24.6 t=24.9 h=24.6 ????, ??? ??? ? 4-5 ?????? ?????? ?????????? ??? ??????. ???????: ???????- 800-900 ??? ??????????? ?????????? ? ??????? mS, ??????: ???? ?????????? ??- ??, ?? ???? ???????????? ???????. CLI ???????? ???????? ????????? ????????? ?????????????, ?????????? ? ????????. ?????????? ????? ??????? ???? ????? ? ????? main\/mx_cli.? ????? ??? ??????? ????? ???????? ???? ???? ???????. CLI ???????? ???????? ? ?????? No Echo, ?. ?. ???????? ??????? ?? ????????- ???????? ???? . ??? ??????????? ???????? ?????????? ??????????: echo on. ???????? ??????? \u00absh on\u00bb ????? ??? ???? ? ??????? ???????? ??????????, ???- ???????? ? ????????????? ? ?????????? ????????? ? ?????????. ????? ? ?????? ??????? ????????????? ?????? ?????? ? ??????? ?????????????. ?????? ??????? ??????? ??? ???????? ?????? ? ??????? ???????????? ? ???????. ??????? ?????? ? ?????????, ????????????? ????????? ??????? \u2014 ???. ??????? ????? ??? ?????????? ????????????? ????????? \u00abprint\u00bb ? \u00abecho on\u00bb ????????? ????????? ?????? ????????????? ????????? ??????????. ?? ??????? ??? ???????- ????? . ??? ??????? ?????? ???????? ????? ???????????? ??? ?????? ??????. ??- UART1, ?? ?????? ??????? ?? ? ????? ???????????????? ?????????? VCP. ??? ??- ?????? . ???????????? ???????: send_uartl( char *data, int len ) send_usb( char *data, int len ) ??? ?????????? ????????????? ???? ??????? ????? ? ????? gbl.h ???????? ???- ????????????? ?? printf. ????????, ?????????: #define printf(fmt,argv...){char [128];sprintf(s,fmt,##argv);send_usb(s,strlen(s));} \/\/ ????? ?? VCP ?????? ?????? ?? ??????? (echo on): f l C0M6- ???? Term VT File Edit Setup Control Window Help","???????????? ???? 12?? ??? ???????????? ???? I2Ci ??? 12?? ???? ??????? \u00ab????????\u00bb *.hex1:L. ????? ?????????? ?? UART1, ???????? \u2014 115200,8,N,1 ????? ???????? ??????? ?????? ?????? \u00abReset\u00bb. ???????? ?????????? ?????? ????????? ????????? ?? ???? (??? ??? ?????????- ??? ???????, ????????? ????): ? ?0?1-???? Term VT File Edit Setup Control Window Help firmwares-master.zip ? ??????.","??????????? ???????????????? CANNY1 ???????? ???????? ???????????????? ?????????? ?? ???? CAN, ??????? ?????? ????????- ???? ?? ?????????? ?, ? ?????????, ?? ???? ??????????? ??????????? ? ???????? ???????? ????. ??????? ??????, ???? CAN ??? ??????? ??????? ?????? ????????- ??. ?? ??? ?????????? ??? ?????????? ? ????????? ?????? ? ??????, ? ????? ??????????? ???????, ??????? ?? ?????? ?????????? ????????? ??????????. ????- ????? ???, ?????????? ? ?????????? ??????, ?????????? ????????????? ?????? ? ?????? ??????, ???????????? ???????????? ? ?. ?. \u2014 ??? ??? ???????? ? ?????- ?????? ?? ???? ????. ?????????, ???? CAN ???????????? ????? ??? ????????? ??????? ? ????? ?????? ????????, ? ??????? ? ???????????. ???????? ?? ???? ???, ????????? ????? ???- ????????????? ???????, ?????? ???????? ?? ????????? ??????? ? ?????. ??????? ? ??????? ?????????? ????? ??????, ??????? CAN ??- ?????????? ????, ?? 1000 ??????? ??????? ???????????? ? ?????????????? ??????????, ?? ?????? ??????- ???????? ????????????. ??????????? CANNY - ??? ????? ????????? ?????????????????? ????????????, ??????? ?????????? \u00ab??????\u00bb ????????? ?????? ? ????? CAN. ??? ???????? ??? \u00ab????????\u00bb ?????, ??? ? ????????? ?? ?????? \u00ab?????\u00bb. ????????? ??????? ???????? ?????????? CANNY 72, ???????? ?????? ? ??????? ???????? ????????????. ??????? ?????????? ??????, ?????? ??????, ??????????? ???????? ????????? ???? ??????????, ???????????????? ??????? ?????? ?? ?????- ?????? ?? ??????? ?????????? ??? ?????????, ???? ? ?????????? ? ???????? ???? ???? ?????????? \u2014 ??? ??? ?????? ???????? ???????? ??? ?????????? ????? ????? ???? ? ????????. 1 https:\/\/canny.ru\/products\/ 2 https:\/\/wiki.canny.ru\/index.php?title=CANNY_7","CAN-L ????? 7 ?????? ?????-??????: \u2022 11 ????????????? ??????? ?????-??????, ??????? ????? ???????? ? ??????? ?????- ??????? ? ??????, ??? ???? ??? ????????????? ??? ? ????????????? ????? \u2022 ???????????? ??? ?? ?????? ?? ??????? ?????-?????? ?????????? ????, ???????????? ????? ??? ???????? ?? ????? \u2022 ??????????? ?????????? ?????????? ?? ??????? ??????????? ?? ?????? ???- ?????? 18? \u2022 ?????????? ??????? ???????????????? ??????? ??????? ?????-?????? ?? ??- ???????? ???????? ???????????????? ??????????: \u2022 1 ????????? CAN 2.??\/? \u2022 2 ?????????? UART \u2022 2 ?????????? LIN 1.3\/2.0 \u2022 ?? 5 ??????????? 12? \u2022 ?????? ?? 11 ??????? ??????????? ????? ?????????????? ??? ?????? ? 1-Wire Dallas \u2022 ?????? ?? 11 ??????? ??????????? ????? ???????? ? ?????? ?????????, ???? ??????????? ???????? ?? ??????? ?? ?????????? NEC, Samsung, Sony ???????-?????????? ?????????\/????????: \u2022 ?????? ?? 11 ??????? ??????????? ????? ???????? ? ?????? ??? ? ???????- ???????????? ?????? ???? 1??, 2 ?? ??? ??????????? ?????? ? ?? ??? ? ??????????? 1??? \u2022 ?????? ?? 11 ??????? ??????????? ????? ???????? ? ?????? ????????????? ?????-???????? ????? CANNY 7 ? ??????? ???????????? ???????????? ??? ????????? ???????. ????????, ????? XI ??????? ?????? CANNY 5.3 pico3 : LED 1: CAN-L 3: ????? 9: ?????: +niiTaHiiR.'GND (?? ????). ????. TX1\/RX1 -^, 5: ????? 10: ?????: -????????\/GND (?? ????). ????. 7:CAN-H TX2\/RX2^m5 ?' 8: ??????? ??????????? (GND) 6: ???? ADC (0...5B) 4: ????? 8: ?????: ^???????\/GND (?? ????). ???? 2: ??????? ??????????? (+7?...+16?) https:\/\/wiki.canny.ru\/index.php?title=CANNY 5.2","8 76 5 1 CAN-L; 213 4 2 ??????? ??????????? (+7?...+16?); 3 ????? 9: ?????: +niiTaHiiR<'GND (?? ????). ????. TX1\/RX1; (?? ????). ????: TX2\/RX2: 4 ????? 8: ?????: +miTaHiiR\/GND (?? ????). ????. 5 ????? 10: ?????: +miTaHiifl\/GND 121110 6 ???? ADC (0...5B); 7 CAN-H: 8 ??????? ??????????? (GND): 9 ????? ??????? (+5?); 10 -USBD-; 11 -USB+5B; 12 - USB D+. ?????? ?????-??????: \u2022 3 ????????????? ?????? ?????-??????, ??????? ????? ???????? ? ??????? ??? ????????????? ??????? ? ??????, ??? ? ????????????? ?????????? \u2022 ???????????? ??? ?? ?????? ?? ??????? ?????-?????? ?????????? ???? (??- ?????????, ??????????? ??? ????????? ????????), ???????????? ????? ??? ???????? ?? ????? \u2022 ???????????? ?????????? ?????????? ?????????? ?? ??????? ??????????? ?? ?????? ????????? 16? \u2022 ?????????? ??????? ???????????????? ??????? ??????? ?????-?????? ?? ??- ???????? ? ??????? ?????????? ???????? ???????????????? ??????????: \u2022 1 ????????? CAN 2.??\/? \u2022 2 ?????????? UART \u2022 2 ?????????? LIN 1.3\/2.0 ???????-?????????? ?????????\/????????: \u2022 ?????? ?? 3 ??????? ??????????? ????? ???????? ? ?????? ??? ? ?????????- ?? 1??, ??? ???? ???????? ???????????? ??? ?????? ????????????, ? ????- ??????????? ??????????? ??????? ? ?????????? \u2022 ?????? ?? 3 ??????? ??????????? ????? ???????? ? ?????? ?? ??? ? ?????- ?????? 1???, ??? ???? ? ?????? ????????? ?????? ??????? ? ???????? ????- ?? ?? ??? ????? ???????? ?? ???? ???????, ? ??????????????? ??????????? ??????? ? ?????????? \u2022 ?????? ?? 3 ??????? ??????????? ????? ???????? ? ?????? ????????????? ?????-????????, ? ??????????????? ??????????? ???????? ?????????: ????- ??? ???????? ???????, ??????? ?????? ???????, ??????? ???????? ? ?????? ???????, ??????????? ?????? ??????? ????????? ? ?????????? 1 ??? ???????-???????? ???????????????: \u2022 ???? ????????? ????? ??????????? ???????? ? ?????? ???????????? ??? ? 12 ??? ? ???????????? ??? ????????? ????????? ?? 0 ?? 5? ? ??????????? ?????????? ??????? ?? ??????????????. ?? ? ????? ??????? ?????? - CANNY 3 tiny . ????? ??? ? ?????? ????????????? ??????????? CANNY, CANNY 3 tiny ????? ???? ??????? ? ?????? \\\"???????????????? ????\\\" ??? NanoPLC. ?????????? CANNY 3 tiny ???????????? ??? ????????????? ????????????? ? ???????? ????? ????????????? ?? ????????? ?????????????? ? CAN ? ????????? ????????? CannyLab ??? ??????? ?????, ? ??????? ??????????? ???????????? ????? ??????? ???????? ??????????? ???? ???????????. 4 : \/\/wiki . canny. ru\/index.php?title=CANNY_3_tiny https","????? 1: ?????: +nmaHMfl\/GND (?? ????); ????; UARTRX ????? 2: ?????: ????????\/GND (?? ????); ????; UARTTX ????? 3: ?????: -????????\/GND (?? ????); ???; ???? ????? 4: ?????: -????????\/GND (?? ????); ???; ???? USB ????? 5: ?????: ^???????\/GND (?? ????); ????; ADC* 0...5 ????? 6: ?????: -????????\/GND (?? ????); ????; ADC* 0...5 ???? A DC: ???? ADC: ?6 (0...5?) ?5(0...5?) ?????? ?????-??????: \u2022 6 ????????????? ??????? ?????-?????? \u2022 ???????????? ???????? ??? ??????? ?????? +\/-100?? (???????????, ????- ????? ??????? ??? ????????? ????????), ???????????? ??? ???????? ?? ???- ??? ????????? 600mA \u2022 ??????????? ?????????? ?????????? ?? ??????? ??????????? ?? ?????? ???- ?????? 16? ???????? ???????????????? ??????????: \u2022 1 ????????? UART\/RS-232 ? ?????????? ????????? ModbusRTU \u2022 ?????? ?? 6 ??????? ??????????? ????? ?????????????? ??? ?????? ? Dallas 1-Wire \u2022 ????????? USB Virtual COM-port, ????????????? ??? ?????? ??????? ? ????- ???? ???????????? ????? USB-????????? ??????????? ???\/????? ???????-?????????? ?????????\/????????: \u2022 ??? ?????? ??????????? ????? ???????? ? ?????? ? ??????????? 100???\/1,????? \u2022 6 ??????? ??????????? ????? ???????? ? ?????? ??????????? ??????- ????????? ???????-???????? ???????????????: \u2022 2 ?????? ??? ? ??????????? 10-??? ??????????????? ??? ????????? ???????- ?????????? ??? ?? 0 ?? 5?, ?? ?????????? ??????? ?? ??????????? ???????? ???????? ????????? ???? CAN ??? ?? ???????????? ??????????? ???? ?????????- ???, ????? ????? CANNY ????? ???? ??????????? ????? ????????????????, CannyLab, ?? ?? \u00ab???????\u00bb, ? ??????????, ??? ???? ??????? ????????? ???????? ???????? ? ??????????????? ???????? ???????????? ???????, ??????? ?? ???????- ??? ? ?????????? ?????? ? ??????? ???? ?????? ? ???????????? ???????????????- ???, ? ???????????? ? ?????????? ???????? ??????. ?????? ??? ??? ?????? ?? ??? ??????, ??? ???? ????????. ???, ??? ???????? ?????????? ? \u00ab?????????????\u00bb ????????????????, ???? ?????????? ?????????????? ???????, ?????? ????????? ????? ????. ? ?????? ???????, ?????????? ????????? ???????????? ?????? ?????? ??????? ? ??????????? ?????????? ? ?????????, ??? ??? ????????? ? \u00ab?? ?????????????\u00bb ??? ???????? ??????? ? ????????? ????? ???????????????? ???????, ?????????????????. ?????????? ????????? ????? ??????? ? ??- ???? \u00ab?????????\u00bb ???, ??? ????????, ??????- ??? ????????? ????? ??? ??? ????? ???? ?????????. ??? ???? ???? ???? ??????????, ?? ????? ????????? ????? ??? ????????? ???? ?????????","?????????. CannyLab ???????? ?????????? ?????? ?????????? ? ?? ?????? ???????? ??????? ??? ?? ? ????? ????????????? (??. ?????? ??????)5, ????? ?? ??????? ????????- ?????????? ??? ????????? ??????????? \u2014 ??????????? ???? ? ??????? \u2014 ? ?? ??- ???? ???????? ??????. SP C:\/blink.cfd - CannyLab 1.22 ? ?) ???? ?????? ??? ?????????? ????????? ?????? ??????? ] ^J ^ ? ?^ JJ ^f |J> 1?? t Q) (\u00ab0 ^ ^00:00:00.000 ^? \u00a3> {J) A JJJJ ??????? 100% [t] ?????? ????????? ? ???????? & ?????????? ???????? ?????????? ????????????? ????? ???? ^ ????????? ?????????? ???????? S\\\" ?-Q\\\"-0- ???????? ????????? ? ??????, ?? ?? ^ ??????????, ? ????? ?????????????? ???????? JX+YJ JX-YJ JX*YJ JxTyT L CANNY5Nano ??????????: ?? ?????. ????????? ??: ?????????? ?????????: ?????????? ROM: 0% RAM: 0% ??????????? CANNY ? ?????????? ???? ??? ?????????? ?? ??????????? ???????- ????? Arduino. ??? ??????? ? ??????? ???????? Silicon Labs CP210x, ???? ????? ??? ????????? ?? ?????????? ???????????? CannyLab, Windows ??????? ????????- ??? ??? ???? ? CANNY ????? ? ??????. ? ???? ?????? ???????????? ??? ??????- ??????? ?????????, ?? ???????? ??? ??????????? ???? ???????. ???????????????? ??????? ?? ??????? ???????? ????????, ??? ? CannyLab ????????? ????????, ????????? ??? ? Arduino IDE. ? ???????? ??????? ?????????????? CANNY 5 Nano. ?????? ? ????????????? ??????? ???????????. ? ??????????? CANNY 5 ?? ?????? ?4 (Channel 4) ???????????? ???????? ?????- ???? (?????? ??????????, ???????????? ?? 13 ?????? ? Arduino) . ? ??? ???? ????? ???????????? ??? ????????? ? ?????????????, ??? ?? ? ?????????????. ??? ?? ?????, ????? ???????? ??????????? ? ??????????? CANNY? ????? ??????? ????? ??? ???? \u2014 ???????????????? ??? ?????????? ?????? ??? ????? ? ?????? ?? ???? ????? ?????? ? ??? ??????????. ??? ??? ???????? ?? ??? ?? ??? ?????????- ?? ? Arduino IDE, ????????? ??? ??? ???????? ? CannyLab. ????, ????????????? ??? ?????????? ?????? ??? ?????: 5 ????? ftp:\/\/homelab.homelinuxserver.org\/pub\/arhiv\/2020-04-a2.zip ? ?????","?????????? ????????????? ????? ??????????? ????????? ???. ?????? ?????? 500 ???????????, ?????????? \u2014 250 ???! ??????????? (?? ???? 50 %) ? 1 (true) ?? ????? ?????????? \u00ab?????\u00bb ?... ?? ? ?????? ?????? ?????? ?? ????? \u2014 ????????? ??????, ???????? ?????? ?????? ??????????. ? ^ ??????, ?? ????? ? ? ^ ??????????, ?? 1 ? ????? ^^^^^^^^^^^ ????? ??????? ???? ???? ? ???????? ????????? ?? ?????????? ?????? ???????- ???? ? ??????? ????????????? ????????? ? ?????? \u00ab?????????\u00bb ???????????. ????? ?????????? CannyLab ????????? ????????? ? ?????????? ?????????, ?? ????????? ?? ? ?????? ???????????. ? ?????? ????????? ?? ?????? ?????? ??- ??????? ?????? ????????? ????? ? ???????? ??????? ? ???? ??????????? ? ?? ??- ????. gP C:\/blink.cfd* - CannyLab 1.22 ???? ?????? ??? ?????????? ????????? ?????? ??????? ~??(?)?*\u00a9\\\"\u00ab * ? ? ? (?]00:00:00.?0 <?<?? ??? ?????? ???????????? CANNY, ????? ???????? ????????? (? ???????????? ????????????? \u00ab?????????\u00bb) ????? ??????? ?????? ???????????? ??????? \u00ab??????- ????\/????????? ??\/????????\u00bb. ??? ????? ??????? ?????? ???? ???, ??? ????? ????? ??????? ??????????????? ?????? ??????????? ???? ? ??????????? .???. ????? ????, ??? ????????? ???????? ? ????????, ?? ????? ????????? ? ??? ??????????. ??? ???????? ?????? \u2014 ? ???? ????????? ????? \u00ab????????- ??\/?????????\/????????\u00bb ? ????? ????????? ?????? ????????? ??????????? ????- ?????? ? ??????????. ????? ????? ????????? ?????????? ?? USB ????? ??????????, ????? ????????? ?? ????? ? ????? ???????? ??????????????????? ??????????, ??????? ????? ????- ????? ????? ???????? ?? ????? ?????????. ??? ????, ????? ????? ?????? ??????? ???????????????? ???????????? CANNY ? ????? ?????????? CannyLab, ??????? ??? ???????? ?????? ?????? ? ?????????? ?????? ? ???? ???????.","?? ????? ??????????? ??????? ?????????? ?? 10 ???? ??????????? ? ???? ?? ???????? ????????? ? ????????? 2,5 ? \u00b1 20%? ????? ?????????? ? ????? ???????- ??. ? ? ?????????? ???????, ????????????? 4-? ??? ??? ????? ??? ????, ????? ??? ????????? ??????????? ??????? ??????????. ????? ?????????? ????????????? ????? ???????? ??? ?? 10-? ??????. ????? ?????????? ????? ??????????? ???????, ??????? ?????? 1 ?? ?????, ???? ?????????? ????????? ?? 0 ?? 4095. ? ???????? ?????????. ?????? ???????? ???? \u00ab?????????? ?\u00bb ????????? ?????? ? ?? ?????? ?????? ????????? ??????? ?????????? ?? ?????. ??? ? ???. ??, ??? ?? ???????? ?????? ?? Arduino, ?? ????? ??????? ? CannyLab. ???????? ?????? ????????? ? ???? ????? ???????????????? ? ?? ?????- ?? ????? ? ????????????? ????????? ???? ??????? ?? ???? ?????????. ??? ??????? ??????? ??????????? ???????? ???? ??? ????, ????? ?? ????? ??- ???? ??????? ??????????? ???????????????? ????????????????? CANNY. ? ???????- ??? ?????? ??? ??????? ???????? ?????????? ???????????? ? ????????? ????????- ????? ?? ????? ? ??????6 ???????. ???????? ? ???????? ??????? ?????????????? CANNY 3 tiny. ?? ????????? ? ??????????? ?????? ? ??????? ????????? \u00ab???????\u00bb, ????? ???? ??????????????? ?? ???, ???- ?? ????????? ????????? ? ?????????? ?? ??????? ?? ??????. ???????? ?????? ??- ??? : ???? ??? ????? ?? ?????? ? ????????? - ?????, ??? ??? ????? - ?? ?????. 6 https:\/\/forum.canny.ru\/viewforum.php?id=12","??????? ?????? ?????? ??????????? ??????????? ?????? ??? ?????? ??????: ?????? ?????????? ????? ?? microUSB ????????? (? ???? ?????? 5?, 1 ?); ? ??????????? ???? 6 ??????????????? ???????, ? ????? ?????? \u00ab+\u00bb ? \u00ab-\u00bb; ??????????????? ?????? ????? ???? ????????? ??? ? ???????? \u00ab?????\u00bb, ??? ? ? ???????? ??????; ???????????? ??? ?? ?????? ??????????? ??????? - 100 ??; ? ??????? ???? ?????? ??????, ??????? ???, ?? ?? ??????? ??? ??????? ???- ?????? ?? ?????. canny_3_tfny ?+ KLS7- -T55601-5.0-180 BL- ?FL760D UEC button LED controller _6_ _5_ \\\\\\\\ \u00b131 f -z5! ?_ 2 R ?^ 1 1 \\\\ 4H + \\\\- GND CANNY 3 Tiny","??? ?? ??????? ?????? ?? ????, ? ????? ??????? ?? ????? ????????????: ??? ??- ??????????, ???????? ?????, ?????????????????? ???????? ?? 80 ??, ?????? ????? KLS7-TS6601-5.0-180 ????? ?? ? ????????? ??????? ?? BL-FL7600UEC, ?? ?? ???? ?? ?????? ?? ???????? ?? ??, ??? ????? ? ??? ??? ?????. ?????? ??????????? ?????: \u2022 ????? \u00ab-\u00bb ??????????? ????????? ? ????? ?????; \u2022 ????? \u00ab2\u00bb ????? ??????? ??? \u00ab??????\u00bb, ????????? ??? ? ??????????????? ???? ?? ???????? ?????; \u2022 ????? \u00ab1\u00bb ????? ???????? ?? ???? ? ???????? ?????? ? ??????, ???? ?????? ??????? ???? (??? ???????); \u2022 ????? \u00ab4\u00bb ????? ?????? ??? ?????????, ??? ???????? ? ??? ????????? ? ???- ??? ???? \u00ab+\u00bb ?? ???????? ?????, ?? ??? ?????? ?? ???????????. ?????? ?????? ???? ??? ?????. ?????? ??? ?????? ??? ??? ????? ?????, ??????? ????????, ??? ? ??? ??? ??- ?????? . ? ???? ?????? ?????-??????? ???? ???? ???????? ????????? ?? ? ??????????. ?????????? ?????????? ????? microUSB ?????? ? ??????????. ? ???? ?????? ?? Windows 10 ??????? ????????? ????? ???????? ??????? ?? ????????. ??????????, ??? ?????????? ?????????, ???? ??? - ???? ?? ?????? \u00ab??????- ????\u00bb (???????? ??? ??? ????? ???????) ????? ???? ??????? ?????? ?? ?????? \u00ab?????????? -> ????????? ?? -> ????- ????\u00bb ? ??????? ?????????? ???? (? ???? ?????? \u00abc3tinyv00108.???\u00bb). ?? ?????? ?????? ???? ??????? ????????. N ^ Cj ? ($\u00a3} ??????! al|l^%11%% ?| Mi ? ^ ? 11 ?? t {\u00a3) (*? {^ ?-? 00:00:00.000 ^L JTj?? S) A ?? ??????) 846 ;] ?????? 178? ????????? ? ??????? ????????? ?? - > ???????? ? 0- ?- ?????????? ???????? ?- f&T jTT ?\\\" 9 ????? ?????????? ?? X I4 \u00ab cannylab^v1j41 > cannylab_v1_41 > ??? > canny3tiny v (_) ??\/?<: canny3tny P ??1 \\\" ????????? ??...??? ???????? ?? ??? ~? ??????????? - ????? ????? ???? '???\\\" ?????? WOOD'S- Trash-1000 ' ????\/???????? datasets A Downloads ??? TorNanoCAD 0-Q\u00a9\u00a9 J c3tinyv00108.ee* 23.12.2319 20:28 ???????? ????????? Base les Microsoft ? Lea ?????????????? msdownld tm ???????? music ObjectARX 2C ???????? prog arduino fsRj j\\\"JTRST JTDJ i TT asm hNNYJImy ??????????: ????? ??? ?????: ??????? ??????? ?????? ?????? ????? ??????????? ?????????. ????????? ??????????? ????? ?????????????? ????????? ????? ?? ????? ???? ???????? ???????????? ? ???????????? ?????????? ????????? ????? ?????. ??? ????, ????? ????????? ?????????? ??????????? ? ?????? ??? ??? ??????- ????? 3 ?????????, ???? ????????? ??????? ??? ? ??????? ??????. ????????? ??? ??? ?? ???????? ????. ???????? ?????????? ? ????????? ????? ??????, ???? ??????? ?? ??? ??????? ???? ???: \u2022 \u00ab3000\u00bb - ?????? ? 3 ???????; \u2022 \u00ab1500\u00bb - ??????? ??? ??? ??? ????????? ?? ???? ?????? ????? ????????? ????","???????; \u2022 \u00ab1\u00bb - ?????? ????????? ?????????. ????? ????? ?? ?????? ?????? ???????? ???????? ??????? ? ?????? \u00ab??????\u00bb, ?????? \u00ab?????????\u00bb 9 D:\/prog\/canny\/cannylab_v1_41\/scripts\/noMoprau ?????? cfd* CannyLab 1.41 ???? ?????? ??? ?????????? ????????? ?????? ??????? {j) 11 ?? Q) (*) ? Ut 00:00:00.000 (? (? (fi A mi Yj\\\\ [?????? 846 ;| ?????? [282 %\\\\ . | ^J ? ? (?^ ??????? 1140% 't\\\\ ^ ^? ^ ????????? ? ???????? ? &^ v?????????? ???????? v ????????? ??...??? ???????? v ???????? ????????? tl l ltl P ??????, ?? ????? ? ^ ??????????, ?? ? fr ????? v ?????????????? ???????? JX^yT JxJyt Jx^yt JX\/yt v ???????? JTP[-JTSRT JTRST jJTTf~ CANNY 3 Tiny ??????????: ?? ?????. ????????? ??: ?????????? ?????????: ?????????? ROM: 0% RAM: 0% ??????? ????????? ? ?????? ???????????. ^JB94 ??????? 140% ? ? ? * ??^? ?0? ? 00:00:00.000 ??(? <? ? & 25 ?????? 846 ^ ?????? 282 v ???????? ? ???????? Jk ? 3- ?- v ?????????? ???????? v ????????? ??...??? ???????? v ???????? ????????? ^ ??????????, ?? ^ ????? S |v' ?????????????? ???????? |?*?|~ ix-yh jx\u00abyT jxTyl ^ J\\\"JTSRT JTRST J_TDJ TT ????? ?????????? ?????????? ?? ?????????? ? ?????????? ?????? ? USB ?????- ??. ?????? ??????? ? ???????? ? ??? ???????, ?????? ??? ???????? ??? ?? ??????? ? ??????. ??? ???? ???? ??? ????? ??????????, ??-?????? ??? ???????? ???????? ?????? ? ????????? ? ?????? ????????? \u00ab?????? ????? ?? ???????? ? ??????????, ???? ?? ??????\u00bb. ??-?????? ???? ?????? ?? ?????? ? ???? \u00ab????\u00bb, ?? ????????? ???- ????? ?????? ?????????.","???????? ? ????????? ??? ?????. ???????? ????????? ??? ?? ????????. ????\/???????? ? ?????? ???? \/ ???????? ? ?????? ????? ?? ?????? ????? ???????? ????????? ? ???????? ??????????? ???????? ?? ???????? ?? ??????????. ? ? ?? \/ ???????? ? ???^? SP ????? ???????? ? ?????? | fcj ???????? ????? v ??????? _J ??????? ???????????? ???????? ??????????? ?????? ?2 1028 v ??????? ??????? ?????-?????? v ????? 1 ????? v ????? 2 1 ????? v ????? 3 ????? v ????? 4 ????? ^ ????? 5 ????? v ????? 6 ????? <> ??","?????? ??????? ?????. \u00ab???? \/ ???????? ? ??????\u00bb - Per ??????. ???. ??????????? ????? 2\u00bb ??????????? ??? ????? 2 ?? ?????? +5?, ?????????? ? ??? ?????????? ?????? ????????? ????? \u00ab+ 5 ?\u00bb ??????? 2 ?????????? ???????????? ??? ?? ?????? ? \u00ab1\u00bb ????). ???? ????????? (????? ????? ????? ????? ?????? ??????????: ?????????? ?? ??????? ??????????? ??????? ?? ????????? ???????- ? ??????????? ?? ????, ?????????. ??? ? ????? ?????????? ??? ?? ??? ? ??? ????? 4 ? ??? ?? ???? +5?, ?? ?? ????, ? ??????????? ?? ??????? ?? ??????. 1 ?? ????????? ???????? ?? ???? ? ?????? ?? ???? ??????????? ??????- ????? ??????? ? ??????? ???????? ?????: ??, ????? ??? \u00abPer ??. ????. ????? 1\u00bb ? ???????? ?? ???? ??????????? ????????? (\u00ab??\u00bb). ???? \u00ab??\u00bb ????? ??? ????, ????? ?? ????????? ??? ????????? ????? ??? ?????- ??- ???? ????? ????????. ???? ???? ???? ?????? ? ????????? ??????? 1 ?????? ?????- ?????? ? ?????????? ????????? ??????, ?? ????????? ?? ????????? ????? ???. ???????? ????????? ?????? ???????????, ????? ?? ???????? ?????? ? ?? ????? ???????? ?????? ???????? ?? ??? ???, ???? ?? ????? ?? ????? ?? ??? ??????. ??? ?????????? ???????? ????????? ???????????? \u00ab?\u00bb ???????. ???? ??? ?? ???? \u00ab?\u00bb ?????? ???????, ? ?? ???? \u00ab?\u00bb ???????? ????????? ??????? ? ?????? ?????????, ?? ??? ??????? ????? ?? ?????? ?????????? ????????? \u00ab?\u00bb ? ??????- ??? \u00ab1\u00bb. ??? ??? ?????? ??, ??? ??? ?????. ????? ?????? ? ?????? ???????? ???? ?? ??????? ?????? ?????? 4, ??????? ? ???? ??????? ?????? ?????????.","?????????? ?? ARDUINO Dr. Bob Davidov ?????????? ??????????????? Arduino UNO, ??????? ?????????? ???- ??????? ?????-??????, ???????-???????? ??????????????? ? ?????? ???????????????? ???????? ??????, ????? ???????????? ? ???????? ?????????? ?????????? ??? ??????????? ??????? ?????????. ???- ?????? ??????? ????? ?????? ??????????????? ????????? ????????, ?????????? ?????? ? ?????????? ?????????? ??? ?????????, ??? ? ????????? ? ???????????. ????????????? ????????? ? ????????????? ??????? ??????????? ?????? ? ?????????? ??????? ???????? ??????- ?? ????? ??????. ? ???? ?????? ????????? ???????, ????????? ? ? ??????? ???????????? ????????????, ?????????? ? ?????????? ???????? ???????????? ?????????? ??????? ? ????? SD ???????????? ??? Arduino UNO R3. ????? ????????? ???????????? ?? ????? ???????? ??? ?????????? Arduino UNO ?????? 137 ? ???????? ??????? ? ?????????? ???? ? ???????? - 2.4? TFT LCD Shield Touch Panel Module TF Reader Micro SD For Arduino UNO R3 - ??????? ??????????? ????????? ??????? ? ????? ???? ????????????. ????? ???????? ??? ?????????? - ?????? ????. ??????? ????? ????????? ??????????????. \u2022 ????????? LCD TFT ??????? 2.4\\\" \u2022 ?????????? 240x320 ?????","?????????? ?????? (18-???): 262 000 ?????????? ??????? SPFD5408 ?? ?????????? ????? RAM ??????? ??????? Sitronix ST7783 262? Color Single-Chip TFT Controller\/Driver ???????? ?????????: 8 ??? ?????? ? 4 ???? ?????????? ????? Arduino ??????? ????????: DIO 2...9, AI 0...3* ????????? ????? Arduino: DIO 0, DIO 1, AI 4*, AI 5 ? DIO 12 (???? ?? ??- ?????????? ??????????? ????? SD ?????) ?????????? 5?, ???????? ? ??????? 3. ?? ??? 5? ???????????: ?.??\/?????, LDO ????????? ??????? ?????????: 4 ????? ?????????? (LED), ??????? ????? ?????????? ??? ?????????? ????? ?????????? ?????????? ????????? ????? 4-????????? ???????????. ??????????? ????? SD (????????? ?????? ? 8 ?? ??????). ??????? ??????????? ????????? ??????? ?137 (??? ? ???? ??????) ? (????????? ?? ?????) ????? SD ???????????? 8 ??? ??????????? ? ??????????? Arduino UNO. \\\"?????? ? ??????\\\" Arduino ??????? ???? ???- ???? ?137 ? ??????????? UNO ?????????. ???????? ???????????? ??? ??????????? TFT LCD A137 ? Arduino UNO: ??????? Arduino LCD CS (Chip Select) A3 (Analog 3) A2 (Analog 2) LCD CD (Command\/Data) AI (Analog 1) ?? (Analog 0) LCD WR (Write) A4* (Analog 4)1 LCD RD (Read) DIO 8 LCD RESET DIO 9 DIO 2 LCD DO DIO 3 LCD Dl DIO 4 DIO 5 LCD D2 DIO 6 LCD D3 LCD D4 LCD D5 LCD D6 1 ????????????? LCD_RESET ? ????? RESET Arduino UNO ??? ??????? ????. ?????","LCD D7 DIO 7 SD SS DIO 10 SD DI DIO 11 SD DO DIO 12 SD SCLK DIO 13 ????? ???????????? ??????? ? ??????????? ??? ?????????? ?????? ???? ????- ??????? ?? ??????????. ??? ?? ? ?? Windows ??? ????? ??????? ????????? ????- ???. 1. ????????? (????????, ? http:\/\/arduino.cc\/en\/main\/software) ?? ????????? ? ?? Windows ????? ???????? Arduino ?? ??????, 1.0.6 ??????. ?????????? ??- ??? ???????? ? ????????? ??? ? ???????, ????????, ?:a\\\\ rduino-l.?.6\\\\ 2. ???????????? ? ?????? ????????????? Arduino ?????????? ????? ????????? ????????? ?? ?????? ??????????? ?????. 3. ?????????? Arduino ? USB ????? ??????????. ????? ???????????? ????? ?????- ??? ?????????????? ???????? ??????? ????? ?:\\\\arduino-l.?.6\\\\drivers\\\\ 4. ????? ????????? ????????, ????? ??? ????? ?????????? ????? ??????????? ??? Arduino ????? ????? ? ?????? ????????? ????????? (Driver Manager). -5s Device Manager MB File Action View Help ?? m & ? ? ? Monitors ? Network adapters V Ports (COM & LPT) ??--'. Al.!?;::.._-: hv- -m :.-;. n: 1 IYA ?i (j\/ Arduino UNO R3 (CQM5) ) ;.-,:-i -1.* -:.-\u2022 .-.: i [.F.:> ir ?- .::i- - \u2022 .-:\\\\ .- : ?- _? Communications Port (C0M1) thi- \u2022-:\u2022 :-:^-r.*:iZiin it http: \/V arduino. ?? -? Communications Port (COM2) 401 Processors <?> SCSI and RAID controllers ioiiri;! . I'.iV -'-'l-'i by :\/. ' f F t : ;-: .?? vi\u00a3 Smart card readers ? Sound, video and game controllers 4 System devices ' ?\u201e : r i; f l\\\\ c\\\\ : i. Universal Serial < v . *::j' :\u2022 - li.ji Bus controllers \u2022 ?..id setupO ?11???1??1 > \u2022P .\u2022- (11 5. ????????? ????????? Arduino ?:\\\\arduino-l.?.6a\\\\ rduino.exe 6. ????????? ????????? ?????????? ???????? ?????????? ????? Arduino: ???? > File > Examples > 01.Basics> Blink (???. ???? ?????) 7. ????? ?? ?????? ???? LiJ ????????? ????????? Blink. ???? ?? ????????? ??- ??????? ?? ??????, ?????????, ??? ???????? ????????? ?????? ??????? ? ???- ??????? ????????? ????????? ?? ???????????? ?????????? ????? Arduino ???- ?????????? ? ????? DI0 13. 8. ?????????? ?????????? ??? ?????? ? ???????????? ??????? ????? ?137. ?????- ???? ???????????????? TFT SHIELD ??????????2 TFT-Shield-Example-Code- master.zip. ?????????? zip ? ????????? ??? ?????????? ? ?????? c:\\\\arduino- 1.0.6l\\\\ ibraries.\\\\ ?????????, ??? ???????? ????????????? ????? ? ????? SWTFT.??? ? SWTFT.h ?????? ?????????. ??? ?????????????, ????????? ??? 2 ftp:\/\/homelab.homelinuxserver.org\/pub\/arhiv\/2020-04-a2.???","?????. 9. ????????? ?????????? ???????3 Adafruit-GFX-Library-master.zip. ?? ???????? Arduino ? ?????????? ???????, ????????? ????? ? ?????? ????????? ? ???- ?????? ??? ?????, ????????? ??? ? Adafruit_GFX.??? ? Adafruit_GFX.h ?????- ??. 10.??????????? ???????, ?????????? ?????????? ?????????? ??????? Adafruit_TouchScreen-master.zip. Touchscreen - ??? ??? ? h ?????. 11 .?????????? ??? ??? ?????: Adafruit_GFX, SWTFT ? Touchscreen ?? ?:\\\\arduino_l.0.6\\\\libraries\\\\ ? ?:\\\\ProgramFilesA\\\\ rduinoL\\\\ ibraries. 12.????????? ?????? ???????????????? ???????? ???????????? ???????. ??? ????? ????????? Arduino ????????? ???? ?? ???????????????? pde ??????: ???? > File > Open > ?:\\\\arduino-l.0.6l\\\\ ibrariesS\\\\ WTFTe\\\\ xamples.\\\\ ?????? ????????? ?????? ??????? ????? ???????????? ? ???? ??? ?????????? ? ??????????? ??- ????? ??????????? ??????? ???? ????????? Arduino: ????? ??? ???? ????? ????????? ?????????? ?????? ??????? ????????? ?? ?? ??? ????? Arduino. ??????????: \u2022 graphicstest.pde - ???????????? ??????? ??????? ? ??????? ??????? ?????????? ??????? ? ???? ??? ??????????. \u2022 rotationtest.pde - ???????????? ??????? ??????? ?? ??????? ???? ?????? (???????????? ? Enter) ?? ?????????? ??????????. \u2022 tftbmp.pde - ?????????? ?? ??????? bmp ??????????? ? ????????? ???????? ????-????? (miniwoof.bmp). ?? ?????? ?????? 24-bit bmp ????? ????????? 260 ??. \u2022 tftpaint.ino - ????????? ???????? ??????? ????? (??????? ?? 6 ??????) ?? ????? ?????????? ??????? ????. 1. ????????? ?????????? Adafruit GFX tft ??????? (SWIFT tft;). char ?, ??????? ?????????? ????????? ?????????? ????? tft.drawChar(intl6 t ?, intl6 t y, unsigned ????????? ??????? ?????? uint8 t size) uintl6 t color, uintl6 t bg, ????????? ??????? ? ???? 240 ? 320 ????? tft.void setCursor(uintl6 t xO, uintl6 t yO); ????????? tft.void setTextColor(uintl6 t color); ????? ?????? tft.void setTextColor(uintl6 t color, uintl6 t backgroundcolor); ????????? ????? ?????? ? ???? tft.void setTextSize(uint8 t size); ????????? ??????? ?????? tft.void setTextWrap(boolean w); ????????? ?????? ?????- ???????? ??? ?? ??????? ?????? ?? ????? ?????? ?? ?????? ??????? tft.print(12.345); tft.print(\\\"Hello\\\"); ????? ????? ? ????? ?? ??????? tft.printin(\\\"World\\\"); tft.print(0xF8lF, HEX). ????? (??????) y, tft.drawPixel(uintl6 t x, uintl6 t ????? ????? (???????) uintl6 t color); tft.drawLine(uintl6 t xO, uintl6 t ????? t xl, ?????????? ????? ????? ??????? (?0,?0) ????? yO, uintl6 ?????????? ????? ?????? uintl6 t yl, uintl6 t color); ? (xl,yl) ?????????? tft.void drawFastVLine(uintl6 t xO, uintl6 t yO, ?????? ???????????? uintl6 t length, uintl6 t color) length tft.void drawFastHLine(uin86 t xO, uin86 t yO, ?????????????? uint8 t length, uintl6 t color); length 3 ??? ? ??? ????????? ?????????? ???? ? ??? ?? ??????.","???? tft.drawCircle(uintl6 t xO, uintl6 t yO, ????????? ????? ???????? ?? color); yO, uintl6 t r, uintl6 t uintl6_t ??????? ? ??,?? ? ? ???- xO, ??????????? ??????? tft.fillCircle (uintl6_t color) ????? ???????? uintl6 t r, uintl6 t ???? ? ??,?? tft.drawTriangle(uintl6 t xO, uintl6 t yO, ????????? ???????????? ? ?????- uintl6 t xl, uintl6 t yl, uintl6 t x2, ? (?2,?2) uintl6 t y2, color); ???? (??,??), (xl,yl) tft.fillTriangle(uintl6_t xO, uintl6_t yO, ??????? ???????????? ? ????????? uintl6 t xl, uintl6 t yl, uintl6 t x2, (??,??), (xl,yl) ? (?2,?2) uintl6 t y2, color); ????????????? tft.drawRect(drawRect(uintl6 t xO , uintl6 t yO , ????????? ?????????????? ??????? ; w ? ??????? h ??????? uintl6 t w, uintl6 t h, uintl6 t color) uintl6 t t yO , tft.fillRect (uintl6 t xO, uintl6 w, ??????? ?????????????? w h uintl6 t h, uintl6 t color) ; ? ??????? ????????????? CO ???????????? ?????? tft.drawRoundRect(uintl6 t xO, uintl6 t yO, ????????? ?? ???????????? uintl6 t w, uintl6 t h, uintl6 t radius, ?????????????? ?????? uintl6 color); tft.fillRoundRect(uintl6_t xO, uintl6_t yO, uintl6 t w, uintl6 t h, uintl6 t radius, ??????? ?????????????? uintl6 color); ??????????? ????????? ??????????? ????????? ????????? ???????????? drawBitmap(intl6 t x, intl6 t y, uint8 t *bitmap, (????????????) ???????????. uintl6 intl6 t w, intl6 t h, t color); Bitmap ????????????? ? ?????? ????????. ??? ???? ??????? tft.fillScreen(uintl6 t color); ??????? ??????? tft.fillScreen(BLACK); ????? (???????) ??????? ??? ?????? ????????? ?? ??????? ???????????? ????????? ???????. \/\/ ??????????? ????????? #include <Adafruit_GFX.h> \/\/ ???? ??????????? ?????????? #include \\\"SWTPT.h\\\" \/\/ ?????????? ?????????? ??????? SWTFT tft; \/\/ ?????????? TFT ???????? tft.reset(); \/\/ ????? ??????? uintl6_t identifier = tft.readID(); tft.begin(identifier); \/\/ ????????? ??????? \/\/ ???????? ??????????? ?????? ??????? ????????? tft.setRotation(rotation); \/\/ rotation ???? ????????? ????????? ???????, \/\/ ?? 90 ???????? =0 .. 3 tft.setRotation(tft.getRotation()+1); \/\/ ???????? ?????? ??????????: ??????? ??????????? ??????? ?137 ????? ????????? ?????: chip: 7783 LCD driver ????? ?????????????? ???? ????? ??? ?????? ? ????????? ?????? ????????? ???????. ???????? ??????? ????????? ?? ????? ???????? ????????? ? glcdfont.? ?????? ????????? ??????????? Arduino. ? ????? ?????? ???????, ??? ??????? ???????,","?????????? ???????? ? ?????????? ??????? ???????. ??????? ??????? ????????????? ??????, ????????, ???????? 5x7 ???????? ? 0x20 (32) no ??????? ??????? N 0x7F (127) ?????? ???????? ????????? ???????: static const unsigned char font[] PROGMEM ={ 0x00, 0x00, 0x00, 0x00, 0x5F, 0x00, 0x00,\/\/ (space) 0x00,\/\/ 0x00 , 0x00, ! ???? , 0x4A, 0x49, 0x49, 0x30,\/\/ 6 0x01 , 0x71, 0x09, 0x05, 0x03,\/\/ 7 0x36 , 0x49, 0x49, 0x49, 0x36,\/\/ 8 0x7E , 0x11, 0x11, 0x11, 0x7E,\/\/ A 0x7F , 0x49, 0x49, 0x49, 0x36,\/\/ ? ???? , 0x41, 0x41, 0x41, 0x22,\/\/ ? 0x08 , 0x08, 0x2A, OxlC, 0x08,\/\/ -> 0x08 , OxlC, 0x2A, 0x08, 0x08 \/\/ <- }; ??? ? ?????? ?????? ????????? ??????? ????? ???????, ????????: X 01 ?\\\\ ? \/ 7? 11 X 71 XX 11 11 X\/ X \\\\\/ \\\\? 7? ?\\\\ '\\\"' 09 X XX ?\/ 05 03 ??????? ????? ???????? 7 ? ?. ? ???? ????????? ????????????? ??- ?????? ??????????? ?????????????. ????? ?????? ??????? ??????? ????? ???????? ??????? ??? ?????? ???? ??????- ?????? ???????? (??. ????). ??? ????? ??????? ??? ?????? ?????????? ????????? ????????, ??? ??????????? ????????, GLCDFontCreator.???. ????????? ? ????????????? ?????? ??????? ??????? ???? ?????? ???????????? ?137 ???????? ????. #define BLACK 0x0000 #define BLUE OxOOlF #define RED 0xF800 #define GREEN 0x07E0 #define CYAN 0x07FF #define MAGENTA 0xF81F #define YELLOW OxFFEO #define WHITE OxFFFF ?????, ??? ????? ???? ???????????? ????? ??????? ? ????????? ???? ?????? ? ????????? 0x0000 ????? ?? OxFFFF, ??? ???, ???????? ????? ???????? 5 ??? 32 ???????? ?? 0 (????? ?? 31) , ???????? - 6 ??? (64 ????????) ? ?????? 5- ??????????? ???. ????????, ????????? ?????????????? ?????? ????? ???????????? ???? ??? ? ??????? ??????? Microsoft Office ? ??????? ???????? ??????? 24-??? ??????, SWIFT ??????? ?137. Microsoft 16-??? ?????????????? ???????????","?? | Standard ^Custom 1 OK | ? Automatic Colors: Cancel ? ?[.?? ?.1 ? . J? (MoceCcfcxs. . - ^ J Z^ Color model: RGB v; Red: 232 ? ! New Green: 125 0 Current Blue: 82 0| ?????????? RGB ??????? 24 ??? Windows, ? ??????? ?????? ???? ??- ?? 0 ?? ?????? ?????? (8 ???) 255. ?????????????? ???? ??????? 24 ??? ? ??? ??????? 16 ??? ????? ????????? ?? ???????: ???= floor(32*Red\/256)*64*32 + floor(64*Green\/256)*32 + floor(32*Blue\/256) r Red (???????), Green (???????) ? Blue (???????) ????? ???????? ?? ??? ????? ??????? ??????????? ???? ? ????????????????? ??? ???????? ? ?????? ? ?? 255. ????????? dec2hex ? dec2bin ??????????????. ??????????? ??? ??????????? ??????? ?????????? ????? ????????????? ????? ???????? ????- ???????? ?? X. ????????????? ????? ???????? ? ??????? ?????? ???????????. ??- ?????? ?????????????, ????????, 300 ?? ? ??????? ????????? ???? ???????????- ???? ?????????? #define YP Al \/\/ must be an analog pin #def ine ?? ?2 pin #define YM 7 \/\/ must be an analog pin #define XP 6 pin \/\/ can be a digital XM, YM, Touchscreen ts \/\/ can be a digital Touchscreen(XP, YP, 300); ??? ?????? ? ????????? ??????? ?????????? ?????????? ?????????? #include <TouchScreen.h> \/\/ ?????????? ?????????? ?????? ?????? ?????????? ?????????? ????????? ???? ??????? ?????????????? ? ????- ??????? ???? ???????????. ?? ???. ???? ??????? ????????? ???????? ????????? ??????? ?? ????????????- ??? ????????? ???? 1024 ? 1024 ???????? ?","#define TS_MINX 150 #define TS_MINY 120 #define TS_MAXX 920 #define TS_MAXY 940 ? ?????????? ???? ??????????? 240x320 ????? ? ?????????????? ????????? ??- ????: \/\/ ?????????? ?????????????? 52, ORANGE); tft.fillRect(165, 160, 130, \/\/ ?????????? ????????? ??????? ? ???? 1024x1024 TSPoint p = ts.getPoint(); \/\/ ?????????????? -(map(p.x, TS_MINX, TS_MAXX, tft.width(), 0) ) ; ?.? = tft.width() TS_MINY, TS_MAXY, tft .height () , 0) ) ; p.y = tft.height()-(map(p.y, \/\/ ??????? ? ???? ?????????????? ? if ((?.? > 15) and (?.? < 90) and (p.y > 120) and (p.y < 215) ){...} P-Xa p.x\/p.y ?-? 371\/836 15 ' 372\/843 366\/532 ON map ?6 0 367\/524 200\/850 map 200\/848 } ^90 ,,52 V->'^ ? ??\/??? 215 202\/531 ' ~) ( ; ;T 120 ?-'?-'\u2022 ????????? ?????????? ?????????? ????????? ????? ?????????????? (???- ?? , ???????????? ??????? ??????) ? ?????????????? ????????? [?.?, ?.?] = ts.getPoint() ????? ??????? ?? ??????? ?????. ????????????? ? ???? 240x320 ????? ???????? ? ?????????????? ???????????? ??????? tft.fillRect(165, 160 , 130 , 52 , ORANGE) . ?????? ????? - ??????????? ????????? ???????? ????????? ??????? ?? ???? ? ???? 1024x1024 ?????- ??? ? ?????????? ???? ??????????? 240x320 ????? ?????????? ? ??????- ???????? ??????? ???. ????? ??????????? ?????? ????? ???????? tft.setRotation(l). ???????????? ??????????????? ????????? ??????? ?? ???? ?????????????? ?? ??? X ? ???????????? ?????????? ??????????? ?????????????? ?????????? ??? 15 ? 160 ? 90 ? 212. ???????????? ????? ????????? ??????? ?????????? ??????????? ??????? ?????????? ??????. ?????? ??????? ????????????? ???????? ??????? ????????? ??? ??????????? - ????????? ?? ??????? ? ????????????? ????, ????????? ?????????? ?? ??????? ???????? (???????????????):","\/\/ ?????????? ????????? ??????? ? ???? 1024x1024 TSPoint p = ts.getPoint(); \/\/ ??????? ? ???? ?????????????? ? if ((p.x > 200) and (p.x < 365) and (p.? > 525) and (p.? < 840) ){...} ??? ????????????? ?????????? ??????? ??? ????? ??????? ???????????? ??????- ???? ?? ?????? ???????? ???? ????? (????????? ???????). ?? ???????? ???????- ??? ?????? ? ???????? ????????? ??????? ?? ????? ??????? ?????????? ???????- ????? ?????. ?????????? ??? ???????? ??????????? ????? ????? ??????? ?137. ??? 1. ???? ??????? ???????????? ????? ???? ?????????, ????????, ???.\/????. (ON\/OFF) 2 . ???????????? ??? ???????: ???? ??? ON, ? ?????? ??? OFF. ? ?????? ???????? ?? ????? ??????? ??????????? ???????????? ???????????? ??????? ? ON ?? OFF ? ???????, ??? ?????????? ????????? ????????? ????????? ???????. ??? ???????? 100 ?? ???????? ????? ?????????????? ????????????? ???- ???????? ????????? ???? ??????? ?, ????????, ??????????? ???????????? ??????? ??? ????????? ????????? ???????. ON\/OFF ????????????? ???? ?????? ????????? ???? ?????? ??????? ??????, ??????, ? ????????? ???? ???????? ?? ???????? ?? ???????? ??????????? ???????????? ???? ??????????? ??? ???? ???????. ON OFF ????? SD ?????? ????? ?????????????? ??? ??????????? ??????? ?????- ????????? ??????????? ??????????? ? ???????? ???????????? ??????. ????. 2. ??????? ????????????? bmp ?????? ??? ??????? TFT LCD A137. Width, dpi Vertical Bit Bmp pixels Height, Horizontal dpi Size, resolution, depth file 240 pixels resolution, kB 71 24 230.5 woof* 320 71 71 24 57.7 71 24 230.5 miniwoof 120 160 71 test 240 240 71 * ????????? ?????????????? ??????????? ??????????????? 24-bit bitmaps ? 16-bit ?????? (5 ??? ???????, 6 ??? ????- ???, 5 ??? ??? ???????????, ???????) ????????? ???????????? ?????? ???????? ? LCD ??????????- ? ????????? ??? ??????????? ??????????? ???????? ????????. ?????? ? ????? SD ?????? ?????????? ?????????? ??????????. #include <SD.h> \/\/ ?????????? SD ????? SD ?????????? ?????? arduino-1.0.6 ???????? ??????? ?????? ? SD ?????? (??. ???????? ????. 3). ??? ?????? ? SD ?????? ??????? ?137 ?????????? ????????? ????????! 4 ?????????? ????? ????? ?? ?????? ??? https:\/\/misc.ws\/2013\/11\/03\/bitmap-converter-for-arduino-lcd\/","const int chipSelect = 4 ?? const int chipSelect = 10; ? if (!SD.begin(4)) ?? if (!SD.begin(10)) ????. 3. ??????? SD ?????????? arduino-1.0.6\\\\libraries\\\\SDe\\\\ xamples\\\\ ???????? ??????? ?????????? ?????????? ? ???????? ? ???????????????? ????? ???????- ??? ? ??????????? SD ?????, ????????, 0QC0M5 ??? Send 11 1 Initializing 1 SD card...Wiring is correct and a card is present. 1 Icard type: SDHC 1 Ivolume type is FAT32 1 1 Volume size (bytes): 3633541120 1 3548380 1 Cardlnf?.ino Ivolime size (Kbytes): 3465 1 1 Ivolime size (Mbytes): 1 1 1 Files found on the card (nane, date and size in bytes): 2014-11-28 189054 1IMAGED.BMP 2014-11-28 07:53:32 103294 2014-11-28 07:26:56 196662 IpIC2.BMP 2014-05-10 07:26:24 230456 2014-05-09 01:37:16 57654 Ipici.bhp 2014-05-09 13:07:16 230456 2000-01-01 13:07:16 6324 ItJOOF.BHP 01:00:00 IwiUIWOOF.BMF Itest.bmp Idatalog.txt 1 0 Autoscrol | No line ending v| 9600 baud v !1 ?????????? ??????????? ?????? ????????? ???? ??? ???- ????????? ? ???? SD ????? \\\"datalog.txt\\\" ? ???????????? ????????? ????????? ??? ? ???????????????? ????? *. Datalogger.ini DumpFile.ino ?????????? ?????? ????? \\\"datalog.txt\\\" SD ????? ? ??????- Files.ino ?? ????????? ?????? ? ???????????????? ?????. listfiles.ino ???????? ? ???????? ????? SD ?????. ReadWrite.ino ???????? ?????? ?????? SD ????? ? ???????????????? ??- ???. ?????? ?????? \\\"testing 1, 2, 3.\\\" ? ???? \\\"test, txt\\\" SD ?????, ?????? ?????????? ?????? ? ???????? ?????? ? ??- ?????. ??????????????","Initializing to SD card...initialisation done. ^ Uniting test. txt. . . done, 1, v 9600 baud V teat, txt: 1, 2, 3. 2, 3. v| testing testing W\\\\ Autoscroll No line ending llEST.TXT 2000-01-01 01:00:00 36 * ???? ???????? 76 ?? ??? ??????? ???????? ?? 70 ?????? ?? ????????? ^1100 ????\/?. ??????????? ? ??????? ??????????? ???????? ?????? ? ????? ?????????- ?????????? ??????? ???????? ?? ???????? 9600 ???\/?. ??????????? ???????? ???- ??? ? ???????????????? ????? ??????????? ? ??????? ?????? ? ???? ????????? ???????? ?????? ?? 1375 ????\/? (110 ?? ?? 80 ?). ? ????????? ??????? ????????? ?? ????? ???????? ?????? ?? SD ?????, ??- ?????? ??????? ????? ???????? ?? ??????. ????? ?????? ?? SD ????? ????? ? ????????? ??????????????????. 1. ?? ?????????? ? ???????????, ? ???????? ?????????? ?????, ???????? ??- ??????????? ????????? ?????? cmd (start > Run > Open > cmd) 2 . ??????? ??????? diskpart C:W\\\\ INDOWSs\\\\ ystem32\\\\cmd.exe diskpart nix -rorporation . On conputer: REGISTERED PC DISKPART> 3. ???????????? ?????? ?????????? ???????? list disk C:W\\\\ INDOWSs\\\\ ystem32c\\\\ md.exe diskpart nix DISKPART> list disk Disk tttttt Status Size Free Dyn Gpt Disk ? Online ?5 GB 0? Disk 1 Online 75 GB 0? DISKPftRT> 4. ??????? ????? ??????????? SD ????? ???????? list disk select disk 1. ??- ???????? ???????- ?????? ? ??????? ?? ????? 1 ??????? ????? ?????? ??????????, 5. ??????? ? ?????? (??. ?.?). 6. ????????? ?????? ?? ??????: attributes disk clear readonly ?????? ? cmd. ??????? exit, ????? ??? ??? exit","????? ????????? ???????? ????????????? ????? ??????? ??????? ????????? (0...255 ???????) ????? ???????????? ??? ???????? ????? DIO Arduino UNO. ?????- ?????? ??? ?????? ???????????? ? ??????????? ????????? ????? ????????????? ????????? ????, ????????? ???????? ??? ????? DIO ?? ?????? ????????? 40 ??, ????? ???, ??? ??????????? ????????? ????? ??????????? ??? 100 ??. ? ???????? ?????????? ???????? ? ???????????? ????????? ??????- ???\/?????????? TFT ????????? ???????? ????? ????????? ?????????. ???????? ??? ??????? ?137 ????? ?? ???????. ??? ??????5 ????????? ?????????????? (100%, 50%, 0%, 100%, ...) ?????????- ???? ????????? ????????? 3.3 ? ??? ??????? ?? ????????? 5?. #define PIN_BACKLIGHT 8 void SetBacklightPercent(int percent) { if (percent > 100) percent = 100; else if (percent < 0) percent = 0; \/\/(3.3v\/5v) * 255 = 168.3 analogWrite(PIN_BACKLIGHT, (int) round(168.3 * (percent\/100.0))); } void setup() { pinMode(PIN_BACKLIGHT, OUTPUT); } void loop() { SetBacklightPercent(100) ; delay(1000); SetBacklightPercent(50); delay(1000); SetBacklightPercent(0); delay(1000); } ? ???????????? ?????? ???? LCD_RESET ??????? ? 137 ???????????? ? ????? ?4 ?????????? ??????????? Arduino UNO. ????? ???? ?4 ?????????? ?????????? ???????\\\" ??????? ?4 ??????? - ????????? ??? ? ????????? ?????????. ????????? ?????????? - ???- ???????? ??????? ????????? ???????????? ???? ??? ????? ? ???- ??????? . ????????? ???????? ????????? ????. ? ????? SWIFT.cpp ?????????? SWIFT ?????????? ????????? ??????? ????????? ?????? ??????????? ????? ?4 ? ????? ??????????? ??????: pinMode(LCD_RESET, OUTPUT); ? ?????????? ? ??????? ?????? ???? ?4: digitalWrite(LCD_RESET, HIGH); digitalWrite(LCD_RESET, LOW); 5 https:\/\/forum.arduino.cc\/index.php?topic=125856.0","????????? ???? ?????????? ??????-????????? ????? ?4 ????????? ??????? ????? ? ????? ????????? ?????? ??????? ??????????? ? ?????? ???????????? tft ?????- ?? ????????: SWTFT tft. ?????? ???? ?4 ????????? ???????? ? ?????? ??? - ?????? ?????????? ????????, ??????? ??????????????? \\\"?? ?????????\\\" ??? ????- ????? ??? ???????????? Arduino. ??????, ???? ?? ???? ??? ?????? ?????? ?????- ?? ??????, ?? ?????????? ????? ???????. ????? ???????? ????????????????? ??????, ?????????? ????????? ????????? ????? LCD RST ??????? ??????????? Arduino UNO (??????? ?? ??????? ????) w ? 2S 9 > http:\/\/www.mcufriend.cofn *\u00ab \u00b0. *> *i *> 2.4\\\" TFT LCD Shield SSS83 ? ?????????? ??? ? ???????? RESET ???????????, ??????? ????????? ????? ? ????????? +3.3V: ?\\\\??\\\\?\\\\??\\\\ ^ ??? ?????? ?????? ?????????? ?? ??????? ????????? ?????? ????????, ??? ??- ???? ????????????? ?????? ??????. ??? ?????????? ??????? ???????? ?????????? ??????? ? ???????? ?????? ??????????? ??????? (????? ?????). ???? ????? ???- ??, ??????? ?????????? ??????? ?? ?????, ?? ?????????? ?? ????? ??? ?? ????- ??? ??????????? ?????, ?? ????? ????? ????? ?????????? ?????????????. ???? ??? ?????? ?????????? ???????? ??? ?????? ?? ??????? ???????? 10- ?????????? ??? ?5 ?????? 100 ??. #include <Adafruit_GFX.h> \/\/ ??????????? ?????????? ??????? ??????? #include \/\/ ?????????? ?????????? <SWTFT.h> \/\/ ??????????? ?????? #define BLACK 0x0000 #define GREEN 0x07E0 SWTFT tft; const int adc_5 = A5; \/\/ ????? ????????????? ??? int adc_5_sample, adc_5_sample_prev = 9999; unsigned long set_time = 0; \/\/ \/\/ int countdigits[] = {0, 0, 0, 0}; 265}; \/\/ ?????? ???? ?????????? ????? ????? int prevdigits[] = {0, 0, 0, 0}; ?????? ???? ??????????? int digitpos[] = {175, 205, 235, X ?????????? ???? int x = 0; void setup() { uintl6_t identifier = tft.readID(); tft.begin(identifier); tft.setRotation(1) ; \/\/ ??????????? ?????? ????? - ?? ????? ?????? tft.fillScreen(BLACK); \/\/ ????? ?????? - ??????? ?????? tft.setTextSize(5); }","void loop() { unsigned long time = millis(); \/\/ ?????? ??????? \/\/ ?????? ????? ?????? 100 ?? if (time > set_time) { set_time = set_time + 100; \/\/ ?????? ???: adc_5_sample = analogRead(adc_5); \/\/ ?????????? ????????? ???? ????? ? ?????????? \/\/ ???????? ?? ????????? if (adc_5_sample != adc_5_sample_prev) { ?? ????? \/\/ ????????? ????????? ????? if (adc_5_sample > 999) countdigits[0] = (adc_5_sample \/ 1000) % 10; % 10; if (adc_5_sample > 99) % 10; countdigits[1] = (adc_5_sample \/ 100) 1000) % 10; 100) % 10; if (adc_5_sample > 9) 10) % 10; countdigits[2] = (adc_5_sample \/ 10) countdigits[3] = adc_5_sample % 10; \/\/ ????????? ?????????? ????? ?? ????? if (adc_5_sample_prev > 999) prevdigits[0] = (adc_5_sample_prev \/ if (adc_5_sample_prev > 99) prevdigits [1] = (adc_5_sample_prev \/ if (adc_5_sample_prev > 9) prevdigits [2] = (adc_5_sample_prev \/ prevdigits [3] = adc_5_sample_prev % 10; \/\/ ?????????? ????????? ????? for(x=0; ? < 4; ?++){ \/\/ ???????? ????? ???? ??? ?????????? if(countdigits[x] != prevdigits[x]){ \/\/ ??????? ?????? ????? tft.setCursor(digitpos[x], 114); tft.setTextColor(BLACK); tft.print(prevdigits[x]); \/\/ ?????????? ????? ????? \/\/ ???? ??? ?? ???? ? ??????? ??????? tft.setTextColor(GREEN); if((x == 0) and (adc_5_sample > 999)) { , 114) tft.setCursor(digitpos[x] ; tft.print(countdigits[x]); } if((x == 1) and (adc_5_sample > 99)) { 114); tft.setCursor(digitpos[x], tft.print(countdigits[x]); } if((x == 2) and (adc_5_sample > 9)) { tft.setCursor(digitpos[x], 114); tft.print(countdigits[x]); } if(x == 3) { tft.setCursor(digitpos[x], 114); tft.print(countdigits[x]); } }","} ????????? ???????? } \/\/ ????????? = adc_5_sample ; adc_5_sample_prev ??????????? } ? ???????? ??????? ?????????? ?????????? ??????? ?????????? ??- ????? ???????: ?????? ??????????? ?????? ????????? ??????? ?????????? ??????? ????- ???- ???: 1 - ?????????? Arduino UNO, ???????? ??????? ??????????? ??????? BA6845FS ?????? ????????; 2 - ??????? ????????? ??0820; 3- ???????- 4- (????????? ???? ???????? ????????? ?? ???????? ?????); ??????? ?????; 5 - ?????? ?????? ???? D6F-P0010A1.","?????? ????? ??????? ????????? ?????? ?????????? ????????? ???? ??? (?4 ? ?5) ?? ???????????? ??????? ?137 (? ???????? LCD_RESET, ???????????? ? ????? RESET ???????????). ??????????? ??- ?????????? ???????? ????????? ?????????. ?? ??????? ?????? ???????? ??? ????????? ??????. ???? - ??? ??????? ????????? ??????? ?????? ??- ????????? ??? ? ????????? ??????, ?????? - ??? ??????????? ??????? . ?????? ????????? ?????????? ???????????? ???????? ????: #include <Adafruit_GFX.h> \/\/ Core graphics library #include \/\/ Hardware-specific library #include <SWTFT.h> <TouchScreen.h> #define YP Al \/\/ must be an analog pin #define ?? ?2 pin #define YM 7 \/\/ must be an analog pin #define XP 6 pin \/\/ can be a digital \/\/ can be a digital #define TS_MINX 150 #define TS_MINY 120 #define TS_MAXX 920 #define TS_MAXY 940 Touchscreen ts = Touchscreen(XP, YP, XM, YM, 300); \/\/ Assign human-readable names to some common 16-bit color values: #define #define BLACK 0x0000 #define #define GREEN 0x07E0 CYAN 0x07FF SKY 0x067F SWTFT tft; const int adc_4 = A4, adc_5 = A5; word adc_4_sample , adc_5_sample; \/\/as unsigned int 0 . . 65535 word adc_4_sample_prev, adc_5_sample_prev; unsigned long set_time = 0; word loop_num = 0; boolean button_state = 1; boolean first_read = 1; void setup() { \/\/ initialize serial communications at 9600 bps: Serial.begin(9600); Test\\\")); Serial.println(F(\\\"TFT User Interface \/\/ tft.reset(); uintl6_t identifier = tft.readID(); tft.begin(identifier); tf t. setRotation (1) ; \/\/ screen rotation 0...3 tft.fillScreen(BLACK); \/\/Draw static screen elements \/\/ Data output windows 130, tft.drawRect(170, 25, 52, CYAN);","tft.drawRect(170, 104, 130, 52, CYAN); tft.setTextColor(CYAN) tft.setTextSize(2); ; tft.setCursor(170, tft.print(\\\"PP02, 8) ; tft.setCursor(170, bar:\\\"); tft.print(\\\"Flow, 87); 1pm:\\\"); \/\/ Buttons ON and OFF ; tft.setTextSize(5) 175, tft.setTextColor(BLACK); 181) ; tft.fillRoundRect(20, 175, 130, 52, 10, SKY); 181); 130, 52, 10, SKY); tft.setCursor(52, tft.print(\\\"ON\\\"); tft.fillRoundRect(170, tft.setCursor(193, tft.print(\\\"OFF\\\"); #define MINPRESSURE 10 #define MAXPRESSURE 1000 void loop() { \/\/ read ADC: adc_4_sample = analogRead(adc_4); adc_5_sample = analogRead(adc_5); \/\/ read touch screen ; p= TSPoint ts.getPoint() OUTPUT); pinMode(XM, OUTPUT); pinMode(YP, \/\/ pressure of 0 means no pressing! if (p.z > MINPRESSURE && p.z < MAXPRESSURE) { \/\/ button On: run output if ((p.x > 160) and (p.x < 320) and (p.? > 170) and (p.? < 475)){ button_state = 1; first_read = 1; } \/\/ button Off: clear output windows, stop output if ((p.x > 160) and (p.x < 320) and (p.? > 525) and (p.? < 840) ) { button_state = 0; tft.fillRect(170, 25, 130, 52, BLACK); \/\/ clear tft.drawRect(170, 25, 130, 52, CYAN); \/\/ restore botton frame tft.fillRect(170, 104, 130, 52, BLACK); tft.drawRect(170, 104, 130, 52, CYAN); } } unsigned long time = millis();","if (time > set_time) { set_time = set_time + 100; if (button_state == 1) { \/\/ just after run, previous sample should be \/\/ different from the latest sample ; ; if (first_read == 1) { adc_4_sample_prev = 9999 - adc_4_sample adc_5_sample_prev = 9999 - adc_5_sample first_read = 0; } if (adc_4_sample != adc_4_sample_prev) { print_tf t (adc_4_sample, adc_4_sample_prev , 35) ; } adc_4_sample_prev = adc_4_sample ; if (adc_5_sample != adc_5_sample_prev) { print_tf t (adc_5_sample, adc_5_sample_prev, 114) ; } adc_5_sample_prev = adc_5_sample ; } } } void print_tft(word sample_latest, word sample_prev, word y) { byte countdigits[] = {0, 0, 0, 0}; = {0, 0, 0, 0}; byte prevdigits[] = {175, 205, 235, word digitpos[] 265}; byte x; word p; for(x=0; x < 4; x++) { p = round(pow(10.0,3-x)); \/\/ need round of .9999... float if (sample_latest > p-1) { countdigits[x] = (sample_latest \/ p) % 10; } if (sample_prev > p-1) { prevdigits[x] = (sample_prev \/ p) % 10; } } \/\/ Compare each digit to the value from the previous loop. will only be redrawn if it has changed. \/\/ The digit < 4; x++){ for(x=0; x if(countdigits[x] != prevdigits[x]) { digit , y) ; \/\/ clear old tft.setCursor(digitpos[x]","tft.setTextColor(BLACK); tft.print(prevdigits[x]); \/\/ print new digit in green p = round(pow(10,3-?)); { if(sample_latest > p-1) { tft.setCursor(digitpos[x] tft.setTextColor(GREEN); tft.print(countdigits[x]) } if(sample_latest == 0) tft.setCursor(digitpos[3] tft.setTextColor(GREEN); tft.print(countdigits[x]) }","??????? ????????? ????????????? ??????? ?. ? ?????? ???????? ???????????????? ????????? (???????????????? ????, ??-?????????) \u2014 ???????- ????????? ?????????, ?????????? ???????????? ???????? ????? ??????? ? ??????- ??????? ???????????. ????? ???? ??-????????? ????? ? ????????? ?? 10 ?? 400 ?? (7 ,5 \u2022 1014\u20143 \u2022 1016 ??). ?????? ?????????? ?? ???. ultra \u2014 ?????, ?? ????????? ? ?????????? (violet). ? ??????????? ???? ????? ?????????????? ????? ???????- ????? \u00ab????????????\u00bb. ?? ????????? ISO-DIS-21348 ???????????????? ????????? ??????? ?? ????????? ?????????? ??? ???????? (????????, ??? ????????????, ????? ??????? ??- ???????????):"]


Like this book? You can publish your book online for free in a few minutes!
Create your own flipbook