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-2023-02

DL-2023-02

Published by mirnauka61, 2023-06-14 02:46:43

Description: DL-2023-02

Search

Read the Text Version

?? ????? ???????? ??????? ??????? ? ????????? ?????????? ? ????????? ????- ????????? ??????????. ??????? ???????, . ?? ???????, ??? ???????? ??????? ?????????? ???? ?? ?? ????? ????? 7.

????? ???????????? ???? ??????? ?????????? ? ????? ????????? ? ?????? ???- ?? . ?????... ? ???? ?????????? 3,5 ? ???????? ?????????? ?? 5 ? P2NP. ????? 70%.

?????? P2NP 1-?????-2-???????????, ??? ?????? ?????-2-???????????, ???, ??? ??? ?????? ????? ????????, P2NP, ???????????? ?????????? ?????????? ?? ????????????? ?????? ??????????, ? ???????? C9H9NO2. ??? ??????-?????? ??????????????? ????- ???? ? ?????????? ???????. ?????-2-??????????? ???????????? ? ????????????- ??? ???? ?????????????? ???????????? ????????? Adderall, ????? ???????????, ??????? ???????????? ??? ???? ? ???????????. P2NP ? ?????? ???????? ????????- ???? ????? ???????????? ? ?????????? ???????????? ?????????? ?????????????? ?????? ? ??????? ? ?????? ??????????? ?????????? ?? ?????? ???????. ???????????? ? ???????????????? ?????????????? P2NP ???????????? ??? ????? ???????????? ???????????, ???????????, ? ?????????, ??? ????????? ?????????? Adderall ? Mydayis. ? ???? ?????? ??????? ????? ???????????, ? ??????????? ?????????????????, ????? ???????, 1-?????-2-??????????? ?????????? 1-?????-2- ?????????????, ??? ???????? ?????? ????????? ??????????. ??? ???? ??????? ??- ?????????? ????????? ?????????????? ? ????????????, ? ?????????? ????????? ?????????. ????? ? ???????? ?????????????? ???????????? ??????????? ????? (LAH) , ????????? ???????? ??? ?????? ?????, ? ??????? ?????????? ? ????????- ????, ????? ??? ????????????? ????? ??? ???. ? ??????????? ?????-2-??????????? ???????? ???????? ????????????? ? ?????- ??????? ????? ? ??????????? ????????? ????????????, ?????? ??? ?-?????????. ?????- ???????????? ????? ??????? ???????????? ? ??????? ??????? ??????????? ?????????? ??????, ??????? ???????? ????? ?? ????? ???????? ?????? ???????, ????????????? ????? ??? ?????? ????????? ?????. ??? ??????? ? ????? ????????? ?????? ????? ??????????? ? ???????????? ?????? ??? ????? ??????????????. ? ??????- ? ???? ???? ??????? ???????? ??????????? ????????????? ????????? ?????? ??????????-?????????????????? ??????. ???? ????? ???????????? ??????- ???????? ? ????????? ? ???????????? ?-???????????, ??????? ???????????? ??- ????????????? ?????????? ???- ? ???????????? ???????????. ???? ??? ???????? ????, ? ?? ?????????? ??????? ??????? ?? ??????????? ?????. ????? ? ???????? ????????????? ???????????? ????????? ?????, ????? ??? ?-?????????, ????????? ? ????????, ? ?????? ? ????????? ?????? ???????.

? EtN02 r^V^/N°2 ?^?1^? RNH, ?????? ?????? ????????? ?????? ??????????? ???????????? ??????????? ????- ???, ??? ??????????? ??????????? ????????????? ???????????? ??? ???????????? ??????? ????????????, ??????? ????? ????????????????? ?? ????????? ?????. ??- ??? ?? ????? ??????? ???????? ??????????? ??????????? ?????????? ? ????????- ??? ? ?????????? 3,4-?????????????-1-?????-2-???????????? ??? MDP2NP. ?? ???- ?????????????? ?? 3 ? 4-??????????????????????? ??? ???, ??????? ????? ???? ??- ????????? ?? 3 ? 4-?????????????????????????? ??? ????. ?????? ?????????? 2,5- ????????????????????? ? ?????????? ??? ????????? 2,5-?????????-?-????????- ????. ?????? ?? ???? ??????????? ??????????? ???? ???????????? ???????? ????- ??????? ????????? ??? ????????? ????? 100 ??????????? ??????????. P2NP ??????? ??????? ??? ??????????? ?? 2 ? ?? 8 ? ? ????? ?? ??????? ????- ???????. ??? ????? ??????? ???????????? P2NP ?? ????? ???????? ? ?? ???????? ???????????. ??????????? ????????? P2NP 64...66 ?. ??? ???, ??? ??? ????? ??? ????????????? P2NP, ????? ???????: ?????- ??????? ????- ??-???????, ????????? ???????, ????-??????, ?????????? ?- 100 ??, ????????????, ??, ??????, ?????? ??????? ? 250 ?????????, ?????. ?????????, ???? ???????????????? ?? ????????????

??????? ???????????? ????????? ???????????: 1 ???? ?????????????, 1 ???? ?????????? ? 0,1 ???? R-NH2. ???????????? ???? ? ??, ?? ??????????, ??? ??? ???????????. ? ?? ????? ??????????? 1 ????, ??????? ????? ????????????????- ???? ? ???????? ????????????, ??????? ???????????: ? 17 ?? ????????????? ? 13,3 ?? ?????????? ? 3,3 ?? ?-?????????? ? 33 ?? ??????? ?????????, ??? ?? ???? ?? ?????????, ??????? ?? ???????????, ?? ????? ??- ??????? ????, ??? ??? ??? ?????????? ??????? ????? ?????????? ????, ??????? ????? ???????? ?? ??????? ? ??????? ??????? ????-??????, ????????? ??? ???- ????????? ???????? ?????? P2NP. ??? ???????? ???????????:

????? ??????? ?? ??????????? 100 ?: ???? ?????? ????, ??? ??? ???????? ????? 3 ????? ????????? ? ???????? ????- ?????????, ?????? ???? ???? ?????? ????????? ?? ?????-?????????? ?? 6 ?????, ?? ?????? ?? ?? ???????? ?????????? ????????? ? ??? ?????. ??? ?????? 6 ?????, ??? ????? ????. ????? 3 ??? ????????? ?????? ????? ????? ???????? 1 ?? ??????? ???????? ??????? ??? ??????????? ?-??????????. ?? ?????? ???? ????????????? ????? ?????????????? ???? ???? ????, ? ????????? ? ??????????? 17 ?? ?????????????, ??? ?????????? (17 ?? ? 1,05 ?/?? = 17,85 ? ????????????? / 106,12 ?/????) = 0,17 ???? ???- ??????????. ????? ???????, ?????????? 0,17 ???? ????, ??? ?????????? (0,17 ? 18,01) = 3,03 ?? ????. ????? ???????, ????? 6 ????? ??? ?????? ? ??? ?????? ???? 3,03 ?? ???? ? ????? ???????, ?????? ?????, ????? ??????, ??? ??? ??? ?????? ???? ????? ????????? ??????? ???? ? ???????, ? ??????? 4 ?? ????.

???? ????? 6 ????? ????????? ? ???????? ????????????? ? ????? 4 ?? ???? ? ???????: ?????? ???????? ???????????? ????? ? ??????????? ??? ??????????? 18 ?, ??- ???? ??? P2NP ???????????? ? ???????, ?? ????? ?? ???????? ?????? ????? ??- ??????, P2NP ?????? ?? ????? ???????????? ? ??????? ???, ?? ??????? ????, ???- ????? ?????. ????? 7 ????? ?????????? ?????? ?????, ????? ???????????? ????????????????? . ????? 10 ????? ??? ????? ?????????? ? ?????: ?????? ?????? ????????? ????? ?????????? ???????? ??? ??????????? ? ?????- ?????? ?????? ????? ?? ?????? ??????? (?????????? ??? ????????). ???????? ? ???????, ? ?????- ????????? ???????????, ?, ????? ????????? ????? ??????????? ??? ???????????? ??, ??????? ??? ????? ??????????? ?????? ? ??????????? ?????? ???????:



???????? ????????? ?? ??????, ????? ??? ??????? ?? ???????. ??? ?? ?????? ??????, ????????? ??????? ?????, ??????? ?? ????? ????????, ????? ??? ????????? ??????? ???? ????? ??????? ? ??????. ?????? ????? ????? 6,02 ?????? ? ????????? ????? ?????????. ? ??????? ???????? ???????? (???? ??????) ? ???????? ??????? ? ???????????: ?????? ????? ??? 8,01 ?????. ?????? ????????? ???????, ????????? ?? ? ??????????? ?????????? ???????? ?????????????? ??????, ????????? ?? ??????? ???? ? ??????? ?????. ????? ??? ??? ????????????, ?????? ??????????? ??????? ??????? ?????? ? ?????? ?? ??- ???? ?? ????????? ????????? ???????????. ????? ?? ? ??????????? ??????, ???- ?????????? ????? ?????? ??????? ? ????? ????? ?? ?????????. ?????? ? ??????????? ????? ? ??????? ? ?????. ?????? ????????? P2NP: P2NP ?????????? ? ??????? ??????????, ?? ?????? ??????, ??? ??? ????????? ?????????: ??????????

???? ?? ?????? ?????? ?????????, ???????????? ??? ??????????: ????????? ??????????? ????? ?? ??????? ???????. ?? 14,03 ? P2NP, ????? ?????? ??????????????????/??????? ???????? 13,7 ? P2NP. ?????? ??????? ??????? ?????????? ?????? ?????? ????? (? ???? ???????, ????? P2NP ????? ????????) ???????? ??? ???? ????????????? ?????????????? P2NP ?? ????????? ??????????. ??????? ?????????????? ? 3,5 ? P2NP. ??? ??????????? 5 ? ??????????? ??????. ????????? ?? ?? ???????? (2,5 ??), ? ????? ??????? ?? ? ???? ????????, ? ?? ?????? ????????? ?? ??? ????, ????? ?? ????? ?????? ????????? ?? ??????? ????????. I '?°0?#

??? ???????? ???? ?? ????????, ??? ??????????? ????????????, ????? ??? ??- ?????, ? ?? ??????????? ???12 ? ???, ? ???????? ??? ? ????????. ???12 ????? ????? ???? ??????? ?????? ????? ??, ???????? Hg(N03)2- ?? ?????? ??????? ??????? ??????? ?????? P2NP, ??????? ????? ???????? ? ????? ?????. ? ???????? ???????????? ???????????? ????????????? ????? ? ????- ??? ???????? ??????? ? ???????????: ? 40 ?? ?????????????? ??????; ? 60 ?? ??????? ???????? ???????; ? 3,5 ? P2NP. ????????, ??? ???????? ??????? ???, ?????? ??? P2NP ?? ????? ????? ??????- ?????? ??? ????????? ???????????. ???? ???????? ?????????, ??????? ????? ????????????. ? ??? ???????? ????- ??????, ????? ???, ?????????? 70 ?? ???12. ?????????, ??? ???????? ?? ??????? ?????????? ????? ?????? ??????? ? ???????????? ????, ??? ????? ? ??????? ??- ???, ??? ??????. ????? , ??????? ??????? ? ??????? ???????? ??????? ? ??????? ????? 10 ????? ???????? ?????? ???????? ???????????? ???????, ? ?? ??????????? ?? ??????? ??????. ???? ?? ??????????? ?????? ??????, ???????? ? 3-4 ????, ?????? ??? ???????? ?? ??? ????????, ????? ??? ????? ??????? ?????? ???????????. ??????? ?????? ????-???????, ? ???????? ?????? ????? ?????????.

ft ????? ?????????, ? ????? ?? ?1 ???????? ?????? ?????, ? ?? ???? ?????? ??- ???????? ???????, ?? ????? ???? ??????? ?????? ???????? P2NP ? ?1+????+???12.

???? ????? ? ???????? ????? ??????? ? ??? ??????? ??????????? ?? ??????? ??????????? ??????. ?????? ????? ??????, ? ???????? ???????? ????????????, ?? ?????? ???????? ????????? ????????? ??????? ????????, ????????? ??????. ????? ??????????? ??- ???????, ???????????? ??????, ?????? ??? ???????? ??? ????????? ??? ???????- ??? ??????. ??? ???????????? ??????, ?? ????? ????????? ???????,

??????, ????? ????? ???? ???????? ???????????, ???????? ? ????? 200 ?? ??- ?????? ????, ????? ???????? ??. ????? ?????????????? ?? ??=12 ? ??????? 50 ? NaOH, ????????????? ? 150 ?? ????. ???? ?????????? ?1 ?????? ????? ???????- ???? ? NaOH ? ???????????? ???????????? ???????, ? ????? ?????????, ?? ?? ?? ???????, ???? ??? ?? ????? ????????. ????? ???? ????????????? ???????????? ????????? ????, ? ????? ??? ??? ???? ?????? ??? ???- ???????? ???????, ? ???? ?1 ???????????. ?????? ????? ??????? ???????, ?????? ???? . ? ??????????? ????, ??? ??? ?? ????? ????? ??????????? ??? ?????????? ????? ? ????????.

? ???? ??? ??????? ??????????? ???????, ??????? ? ???????? ????? ? ??????- ???????? ??? ??????????? ??????? ???????? ? ???????? ?? 30 ?? ????? ?? ???. ???? (???? ????????? ???? - ??? ??????? ?????????? ?????????? ?????? ??????- ???? ? ?????). ????? ????, ??? ??? ???? ???????, ??? ??? ???? ???????. ????????? ??????? ????? ?????? ??? ????????, ??????? ???? ?, ????? ???????, ???????? ???? ? ??? ???????. ?????? ??? ????? ?????? ????????? 12 ?????, ????? MgS04 ?????? ???? ????, ????????????? ???, ? ????? ?? ?????? ????????? ????? ?????????? ??? ????????? ??????????? ??? ? ??????? ?????? ?????. ?? ???????? ?????! ???? ????? ????? ??????????????. ????? ???? ???? ??????????, ? ????????? ?????????? ????????? 50 ?? ?????????? ????????????. ????? ? ?????????? ???????????? ?????????? 98% ?????? ???????. ???????????, ??????? ????? ????????? ?????????? ? ??? ??????- ? ????? ????, ???????? 90% ????? ??????????, ???????????, ??????? ????? H2S04

??? ????????????, ? ???????? ??? ? 15 ?? ?????????? ????????????. ?????? ???- ???? ????? ?2804+??????????? ? ?????????, ???????????? ? ????????????. ????? ?? ?????? ??????? ?????????, ????????????? ????? ?????????? ?????????? ??- ???? : ??????, ?????? ??????????. ??? ???? ?? ??? ?? ?????, ?? ???? ??????, ??? ?? ????? ??????????: ???????????? ??? ??????????.

???????, ??? ??????? ?????? ??????? ??????????, ??????? ????????? ????? 180 ??. ????? ?? ????????? ?????? ? 3,5 ? P2NP, ????? ?? ??????? 1 ? ? ???????, ??? ?????, ? ???????? ???????????? ????? ? ????? ?????? ?????. ????????? ??????? ????? ?? ??????????? ??? ????????? ???????? ?????????? ???? ????????? ?????????? ??? ??????????? 100 ??. ??????? ?????, ??????? ?? ?????????? ????, ???? ?????????? ? ??????- ??? . ??????????? ????? ?? ?????????????, ?? ????????? ?? ??????, ??? ? ?????? ??????? ????????? ???????????. ? ????? ???? ????????? 20 ?? ?????????????????

??????? (65%), ??????? ??????????? ?????, ?? ??????? ?????. ??? ?????????? ??????????? ????? 15 ????????, ??????? ??? ?????? ????????, ??????? ????????? ??? ???????? ?? ?????????????. ? ??????????, ? ??????????? ????? ??????? ??- ???? ?????????? ???????? ????. ????? ????? ?????????? ?? ??????. ??? ??????- ????? ????????? ??????? ?????? ????????. ????? ???????, ????? ????????? ???- ????- ??????????? ? HN03 ? ??????? 5 ?????, ??? ???? ?? ??????????? ??????. ?? ???- ???????? ? ????? ??????? ????? ??? - ????? ????? ??? ????????? ???? ? ??- ???????. ? ??????????? ??????????? ???????? ???? ??????? 20 ?? ????, ??????? ???????? ???? ??????? ????????????. ?????????? ??????? ??? ??????? ? ? ????????? ??????? ? ????? ????????. ????????? ???????????, ??? ? 20 ?? 65% HN03 ????? ???? ????? ?????????? ??? ??????? ????? ???????????.

??? ?????? ??????? ?????? ??? ?????? ??? ??, ??? ???????? ?????? ? ??????? ????????, (??? ?? ????????, ?????? ? ?????????? ??? ????????) ?? ??????? ???- ??????? ???????????? ?????? (?????? 2023 ????) ??????, ? ??????? ????????????? ?????? ??????? ?????? ?????? ???????????? ???????. ??? ??????, ???? ??? ?? ????? ???? ??????. ??? ?????? ?? ???: Brian J. Knight, Ryan C. Harbit, and Joel M. Smith Six-Step Synthesis of (±)-Lysergic Acid J. Org. Chem., January 30, 2023 DOI: 10.1021/acs.joe.2c02564 ??? ??? ????????: 1. Brian J. Knight, Ryan C. Harbit, and Joel M. Smith ??? ??????. ???????? ????????? - ?????? ????, ??? ????? ?????? ???????? ??- ???: ?????? ?? ?????, ????????? ???????, ??????????? ????? ?????? ?????? ???? ??????... 2. Six-Step Synthesis of (±)-Lysergic Acid ??? ???????? ??????, ??? ??? ?????? ???? ???????. 3. J. Org. Chem., January 30, 2023 ??? ?????????? ?????? ?? ??????. ????????? ?????? ?????? ?? ???? ? ???????- ??, ?????? ?????????? ??? ??????? ?????. (?????? ??????? ??????? ?????????? ?? ??????, ? ??? ?? ???? ??????? ???????? ?????? ?? ??????\", ??????? ??????- ??????? ????? ?????? ??????. ?? ???? ???? ?????? ? ????????? ?????????? ? ??- ??????? ???????, ?????? ????? ?? ???? ??????). ??? ?????? ?? ?????? ???????- ?? , ?????? ?????? ???????? ????? ???? ? ????? ????????. ????? ?? ??? ?.?.

?????? ????? ?, ?????? ?????, ? ???????? ???????? ?? ??????. 4. DOI ???? ?????? ?? ? ????? ??????? ??? ?????????. ? ???????? ??? ?????? ?????- ????? ????? ?????????? ????? ?????? ??????. ?????????? ????? DOI ?????? ? ??- ??????? : https://www.google.ru/search?q=l0.1021/acs.joc.2c02564 ????? ????? ?? ???????? ?? ???? ?? ???????: https://pubs.acs.org/doi/10.1021/acs.joe.2c02564 ?? ??? ????????: ?????? - ??????? ? ?????? ??? ??? ?? ????????? ?? ?????. ????? ???????, ???? ?????? ???-???? ???????? ??, ???????? sci-hub1. ????? ??? ?? ????????, ? ????????? ???? ??????, ?????? ??????? ????? ??????: ftp://homelab.homelinuxserver.org/pub/arhiv/2023-02-a5.rar ?????? ????? ?????? ?? ???. ???, ??? ?????? ??????? ?? 2-? ??????: ? ??? ???? ?????????? (\"Supporting Information\") ??????? ?????????? ???????? ???- ??????. ? ? ?????? ?????? ??? ???????? ?????? ??? ?????????? (?????????? ??- ?????? ???????), ???? ??? ?????? ?? ??????. ?????? ? Supporting Information ????? ?? ????? ???????? ??????? ???????, ???? ???????, ? ?.?. ????, ?????? ????, ???????? ??????: ABSTRACT: This article describes a concise synthesis of lysergic acid from simple aromatic precursors. The successful strategy relies on the coupling, dearomatization, and cyclization of a halopyridine with a 4-haloindole de- rivative in 6 total synthetic steps from commercial starting materials. In addition to highlighting the advantages of employing dearomative retrosyn- thetic analysis, the design is practical and anticipated to enable the syn- thesis of novel neuroactive compounds as exemplified by the synthesis of a novel natural product derivative, 12-chlorolysergic acid. ??? ??????? ?????????? ?????? (???????). ?? ????? ??? ????, ????? ?????? ?????? ???????? ??? ???1 ?????? ?????? ????? ?? ????? ?????? ?????? ??? ???. ???? ? ???, ??? ??????? ?????? ??????????? ?????? ? ????, ? ??? ??????? ????- ?????? ??????????? ????????? ?? ???. ??????? ???????? ????????????? ?????? ?? \"????????????\" ??? ??????????? ??????? ? ?? ??????? ?????? ??????? ?? ?????? ????, ??? ?? ?????? ? ??????? ????????. ??????, ??????? ???????? ????????? ???? ??? ??????? ??????. ??????? ????????: ???????: ? ???? ?????? ??????????? ???????? ?????? ???????????? ??????? ?? ??????? ????????????? ??????????. ???????? ????????? ???????? ?? ???????????- ??? ? ?????????? ??????????????? ? ??????????? 4-????????????? ?? 6 ?????? ?? ???????????? ?????????. ? ?????????? ? ????????????? ????????????? ????????- ??????????? ???????, ????? ????????? ? ??? ????????? ???????? ????????????? ????? ????????????? ??????????, ???????? ?????? ?????? ???????????? ???????? - 12-???????????????? ???????. ??? ?? ????? ?????? ?? ????? ????????? ?????? 1. ? ?????? ?????? ???????????? ??????? ? 6 ?????? ?? ????????? ??- ???????? . ??? ?????? ???? ????????: \"??????????? ????????? ?????????\" ??? ??- ????? ?????? ??? ?????? ?? ???? ????? ??? ????????? ??? ??????? ? ??????. ???, ???? ??????? ??? ?????? ????? ????? ?? ????????, ? ??? ????, ????????, ? ? ?????? ???????? Sigma-Aldrich2 ?? ??? ?????? ?????????? ??????. ????????, ??????: Methyl 5-bromopyridine-3-carboxylate 1 https://sci-hub.se/ 2 https://www.sigmaaldrich.com/

CAS: 29681-44-53 2. ????? ????? ???????????? ??????? ??????????? ??????? ????? ???????? ??- ???? ??????? ??????????, ???????? ?????? ????????????? 12-???????????????? ???????. ?????? ??????: INTRODUCTION Since Hofmann' s discovery of lysergic acid diethylamide (LSD, 1) in 1938, the medicinal wonders of this natural product derivative have proven both in- triguing and controversial. [1,2] For instance, Sandoz Laboratories heralded LSD as ??? cure for everything\" in the 1940s, while the US congress, in par- tial response to the \"counterculture\" of the 1960s, made its possession and use illegal in 1968. [3] Despite this ongoing debate, some ergoline deriva- tives such as pergolide (4) [4] and lisuride (5) [5] have found their scrapyard to the clinic for the treatment of Parkinson's disease and mi- graines. These ergolines, in addition to the psychedelics ibogaine (3) and 2,5-dimethoxy-4-iodoamphetamine (6) are ligands for the 5-HT 2A GPCR, a key receptor responsible for many downstream neuropharmacological phenotypes. [6] Because of LSD's therapeutic potential, several X-ray crystallographic struc- tures have recently been obtained that enable the design of 5-HT 2A ligands capable of novel neuropharmacology. [7-9] Thus, we maintained that a practi- cal synthesis of diverse LSD (1) derivatives would aid this burgeoning realm of biomedical research. [10,11] ??? \"??????????\" ??? \"background\". ?? ???? ??????? ?????? ?? ???????? ?? ?????? ?????. ????? ?????? ????????? ?????????? ?????? ?????? ??????? ???? ??? ???????? ? ???????? ?????? ?? ?????? ?? ??????????? ?????. ??? ????? ?? ?????? ??? ???????? (??? ?????? ?????? ?? ???? ??????, ??? ?? ????? ??? ???- ???) ?? ? ????? ?? ?????? ??????? ?? ????? ?????? ? ???? ?? ???????. ?????- ??? , ??? ????? ??????????????: Prior to our studies, the most concise approach was the controversial syn- was thesis of 2 reported by Hendrickson [35] which later disputed by both Nichols [36] and Boger. [37] ????? ????? ?? ?????????? ???? ??????, ? ?????? ?? ??????. ????? ?? ????? ????? ???: ????? ????????? ? ????? ?????? ? Synthesis (35) Hendrickson, J. ?.; Wang, J. A New of Lysergic Acid. Org. Lett. 2004, 6, 3-5. (36) Bekkam, M.; Mo, H.; Nichols, D. E. A Reported \"New Synthesis of Lyser- gic Acid\" Yields Only The Derailment Product: Methyl 5-Methoxy-4,5- Dihydroindolo [4 , 3-f ,g]Quinoline-9-Carboxylate. Org. Lett. 2012, 14, 296-298. (37) Lee, K.; Poudel, Y. ?.; Glinkerman, C. M.; Boger, D. L. Total Synthe- sis of Dihydrolysergic Acid and Dihydrolysergol: Development of a Divergent Synthetic Strategy Applicable to Rapid Assembly of D-Ring Analogs. Tetrahe- dron 2015, 71, 5897-5905. ??? ? ???? ?????? ?? ?????? (? ????????? ??? ?? ??????? D01). ????? ??????? ?? (????? sci-hub), ? ??? ????? ??? ?????? ?? ??? ????? ?????? ??????, ? ??? ????? ????? ?? ?????? ?????? ???????? ? ????? ?????? ????????? LSD. ? ?? ??????????? ??????? ? ?????? ??????: RESULTS AND DISCUSSION 2 implementing methylation Scheme 1 depicts efforts toward N-methyl-pyridinium strategy 1. Starting from bromopyridine 9, of the pyridine nitrogen with trapped with MeOTf generated an intermediate that was 3 https://www.sigmaaldrich.com/lS/en/product/aldrich/657425

Grignard reagent 11 to produce dihydropyridine 15 as the major regioisomer in in- a 2.6:1 C6/C4 ratio and in 82% overall yield (59% of 15). From our previous studies on the regiochemistry of pyridinium dearomatizations, we predicted the combined directing effect of the ester and bromide substituents would crease addition at C6. [39] Scheme 1. First-Generation Approach to Lysergic Acid Me02C^\\ 4N i. MeOTf, Et20 Me02C .Me iL MgBrO LiAIH4 Me02C 11 Me 65% Me02C THF, -78 °C N' 1.2:1 dr „Me 59% -< PhNHNH2(10) Me02C f EtOH/H2S04 100 °C 59% 1.8:1 dr • limited Fischer indolization unsuccessful • C-H annulation Me02C NMe Pd, Ni, Sn, PET, etc. 17 ??? ?????????? ?????????? ???? ??????, ?? ???? ?????? ????????? ???, ??? ? ?????? ??? ?????? ? ??? ??????????. ????????, ???: Presumably, this was due to the base sensitivity of the tetrahydropyridine ring found in 8, where attempts to deprotonate the indole nitrogen resulted in nonproductive decomposition pathways. 40 Further efforts to effect annula- tion of the vinyl bromide using Ni-catalysis or radical propagation 39,41 (e.g., PET, Bu 3 SnH, and AIBN) also largely resulted in hydrodebromination of 8. Additionally, while a reductive coupling tactic might have been possi- ble through an intermediate such as 18, the Fischer indolization of 16 was only operable with phenylhydrazine (10) , disallowing access to benzenoid- functionalized indole congeners of 8. With an unproductive annulation tactic and a limited Fischer indolization reaction, the second strategy outlined in Figure 1 became more attractive for the synthesis of 2. ????????, ??? ??? ??????????? ????????? ????????? ???????? ????????, ????- ????? ?? ????? ??? 17 ? 18 ?? ?????? ?? ?????????? (??????????????? ????????? ?? ????? ????????????, ? ??????? ??? ?????? ???????? ????? ? ??????? ?? ???- ????:

Scheme 2. Second-Generation Approach to Lysergic Acid MeOzC, Synthesis of (±)-Lysergic Acid 1. 'PrMgOLiCI Me02C Me02C THF, -78 °C; then 14a 4. LiTMP, THF; then aq. NH4CI ? 87% LiTMP 1:1.6 12a/12b THF; then H02C H aq. NH4CI 5. Pd2dba3(10mol%) ??02?^ 80% 1:2 12a/12b HP'Bu3BF4 (20 mol%) Br MeNCy2, dioxane, NBoc 100 °C 82% NBoc Lysergic Acid (2) 22a,b 21 (5.8:1:1 21/22a/22b) 12b ??? ? ??? ??? ??????????, ? ?? ??????????? ????? ??????? 12- ???????????????? ???????. CONCLUSIONS In conclusion, a concise synthesis of lysergic acid (2) has been accom- available plished in 6 steps and 12% overall yield from commercially materi- als (13 and 14). ??????: ? ??????????, ???????? ?????? ???????????? ??????? (2) ??? ???????? ? 6 ?????? ? ????? ????? ???????? 12% ?? ??????????? ????????? ??????????. ?????? ???? ?????? ? ??????????, ???, ????????: Methyl-6-((lH-indol-3-yl)methyl)nicotinate (19). To a solution of pyridyl iodide 13 (AA Blocks) (1.32 g, 5.00 mmol) in THF (5.00 mL) cooled in a CHC1 3 /dry ice bath (-61 °C) was added a solution of i-PrMgCl-LiCl (5.00 mL, 1.00 M, 5.00 mmol) over 2 min. The mixture was stirred in the cooling bath for 1 h. Upon consumption of 13 as determined by TLC, a solution of indole 14a (1.78 g, 5.50 mmol) in THF (3.00 mL) was added dropwise over 2 min. The resulting solution was stirred in the cooling bath for 1 h. After this time, the bath was removed, and the reaction mixture was slowly warmed to rt. The reaction mixture turned dark green upon warming and then amber after approximately 1 h at rt. The mixture was quenched with a sat. aqueous solution of NH4C1 (10 mL) , diluted with water (10 mL) , and extracted with EtOAc (3 x 30 mL) . The combined organic layers were washed with brine (15 mL) , dried over MgS04 , and concentrated under reduced pressure. The crude mixture was purified by flash column chromatography (1:1:0.05 hex- anes-EtOAc: CH2C12 eluent, silica) to afford 1.95 g (85% yield) of an inter- mediate alcohol as beige wax (S-l, see the Supporting Information). ?????-6-((lH-?????-?-??)?????)????????? (19): ? ???????? ??????? ?????? (13) (1.32 ?, 5 ?????) ? ??? (5 ??), ???????????? ? ???? ?? ?????? ???? ? ?????????? (-61 ??????) ????????? ??????? ????????? ?????????????????????-LiCl (5 ??, 1? ???????, 5 ?????) ? ??????? 2 ?????. ???????? ?????????????? ? ??????????? ???? ??? 1 ???. ????? ?????????????? ????? (13) (???????? ?? ???) ????????? ?? ?????? ??????? ?????? 14? (1.78 ?, 5.5 ?????) ? ??? (3 ??) ? ??????? 2 ?????. ?????????? ??????? ???????????? ??? ?????????? ??? 1 ???. ????? ???? ?????? ? ???? ???????? ????????? ?? ???-

?????? ???????????. ??????????? ????? ????? ?????-??????? ? ????? ?????? ??- ??? ???????? 1 ???? ??? ????????? ???????????. ??????? ? ?????????? ????????? NH4C1 (10 ??) , ????????? ????? (10 ??) ? ?????????????? ???????????? (3x30 ??) . ???????????? ???? ??????? ????????? ????, ?????? MgS04 ? ??????? ? ??- ????? . ??????????? ??????? ???????? ????-?????????????? (??????????, 1:1:0.05 ??????-??????????-????????? ???????) ? ???????? 1.95 ? (85%) ?????????????? ????????. ?????????: 1. ?????? ?? ???, ??? ?????? ??? ???? ?? ???? ????? ?????? LSD ? ?????? ??- ??????????? ???, ?? ??????. ????????, ??????? ?????? ?????? ????? ? ?????, ???????? ??- ?? ?????????????. ??? ???????? ?????????? ?????? ? ????????? ???. ????????, ???? ???????????? ??? ???????? ???? ??????????? ????????????, ??????? ??????? ???????? - ?? ??? ????? ?? 6 ? ???????? 20 ??????. ? ??? ???????? ???????? ?? ??????? ?????????? ?????? ???? ???????????? ? ????????? ????????, ??????????? ????? ?????, ??????????????, ? ????? ?? ??????. 2. ???????? ?? ??? ????????? ? ???????? ?????????? ??????????? ? ??????? ??? ??????????? ???????????? ?????? - ????????, ????????? ????? ??????? ? ????????, ?? ??????? ???????????? ??????????? ???. 3. ?????? ????????????? ????????????????? ?????? ???????. ?????? ???????? ????? ? Aldrich 159 ???? ?? 5 ?????, ?? ??? ??????? ?????? ????? ????, ???? ????????? ??? ??????? ????????? ? ???? ???- ??????????. ??????? ????? ?????? ??????? ??? ???? ?? 20 ? ????? ?? 0.12 (??- ???????? ???????? ?????) ????????? 76 ???? ?? ?????. ??? ??????, ?????? ??- ?????????? ???????, ??? ??? 2 ?????? ?? LSD, ?? ??? ?????? ???????. ? ??????- ??? ??????? ? ????????? ??? ? ??? ??????? ????? ???????, ??? ??? 100 ???? ?? ?????. ???????? ?????? ?? ?????????????, ???????? ??? ????? ??? ????????? ??- ??? ????? ?.?. ???????? 0.02 ???? ?? ?????). 4. ????? ?? ???-?? ????????? ??????????. ? ??????? ???? ???? ??????????? ????? ????? ? ????????, ??? ?? ?????? ????????. ? ??? ?? ???? ?????? ?????????????? ???????? ??? ?????????? ????????, ??? ???????? ???????? ?? ????? ?????????. ??? ???? ? ??????????? - ?? ??? ? ????????????. ??? ? ?????? ?? ??????? ??? ? ???? ? ????? ????? ???? ????????? (????????, ? ??? ??? ????????), ???? ?????? ?? ?????? ?????? ????? ????????? ????? ??? ??????. ??? ??? ???? ??? ??????? ??????? ?? ????, ?? ???- ?? ????????????? ????? ??? ????????? ?????? ? ????????? ????????.

? ??????????? ???????? ?????????? ? ???? ??????? ???????? ??????????? ????? ????? ??????? ???? ? ??????? ?????????????? ?????????????? ????, ?????????? ?????????. ????????- ???? ?????????? ??????????????? (????) ?????????? ????????, ??? \"????????? ?????????????? ??????????? ????????, ??????? ???????? ????????? ? ?????????? ????? ?????? ??? ??????????? ????? ??????? ?? ??????.\" ???????? ????? ???- ??? ?????????????? ???- ?????????? ????????????? ???????????? ????. ????????? ????? - ??? ?? ?????? ??????????? ?????????? ?????? ? ????????, ? ????????? ???????? ????????? ????? ?? ?????????? ????????. ?????? ??????? ??????, ???????? - ????????? ?????????????? ????? ?????? ? ??????????? ? ???? ?????????. ?????????? ????? ????????? ?????? ???????? ??? ????, ????? ???????? ??????????? ??????????, ????, ???? ? ????????? ?????? ???????? ???????? ????????? ????? ?? ?????????, ???? ? ????? ?????, ????. ? ??????????, ?? ???? ??????? ?? ???????? ??????? ?????????. ???? ? ??????? ???????????? ?????????? ???????, ?? ????????? ?????????????? ??????? ? ?????- ????? ?????? ??????? ?? ???????, ????? ? ??????? ??????, ? ????? ?? ????? ????? (?????) ????????? ?????. ?????????????? ?????????? ?????? ? ???????? ?????? ?????????? ????????? ??- ?????: ??????? ????????? ??????? ????? ? ?????, ???? ????????? ???????? ??- ????????, ?? ??? ????? ???????? ???? ?? ??? ???????. ??? ????????? ??????? ? ? ??????? ??????????? ????????? ?????. ???????????????? ????????????? ?????- ?????? ????? ???????????? ?????????? ??????? ??????? ? ????? ?????. ??????? ???????? ????? ??????, ??? ????? ????? ????????? ????? ???? ????? ?????????- ??? ?????????, ?????????? ?????, ??????????? ?????? ? ?????, ????? ?????????

(???. 1?) . ? ?????? ??????? ?????? ????, ?????????? ?? ?????? ???? ???????, ??????? ????????????????? ???????, ??????? ???????????? ? ??????????? ??????- ????? ????????? ?????. ? ??????????, ????????????? ?????, ????????????? \"???- \" ??????, ??? ????????????? ?????, ????????????? \"?????\" ? ?? ?????? ??- ??? ?????????? (???.1? ? 1?). ????? ????, ?????? ??????? ?????? ?????????? ?????- ?????????? ???? (?????), ??? ???? ?? ???????? ??????????? ?? ?????????????? (???????). ? ????????: ??????? ??????? ?????????? ??????? ???? ?????, ??? ??- ???. (A) Small Particles (B) Large Particles ^ '^ * Incident ^^ y?^ > Beam Incident Beam Size: Approximately V4 the Size: Smaller Than 1/? Wavelength of Light Concentrated the Wavelength of Light Description: Scattering Description: Symmetric in Forward Direction (C) Larger Panicles .*? Incident {J? Beam Size: Larger Than the Wavelength of Light of Scattering Description: Extreme Concentration In Forward and Minima Direction; Development of Maxima of Scattering Intensity at Wider Angles ???. 1 ????? ????????????? ??????????? ????? ?? ???????? ???? ?????- ??? ???????? . ? - ?????? ???????, ????? 1/10 ????? ????? ????????? ?????, ????????? ????????????. ? - ??????? ???????, ???????? ??????? 1/4 ????? ????? ????????? ?????, ??????????? ????????? ?? ????????- ??? ????????? ?????, ?- ????? ??????? ???????, ???????? ????? ????? ????? ????????? ?????, ????????? ????? ????????????, ???? ???????? ????????? ? ????????. ????? ?????? ? ??????????? ??????????? ????? ?????? ?? ????????????? ? ??- ??????????? ?????????. ??????????? ??????? ?????????? \"??????\" ?????? ?????, ?????? ??????? ? ????? ????? ??? ???. ??????????? ??????????? ?????? ???????- ?????? ????, ?? ??????? ??????????? ??? ?????, ??????????? ????? ??????? ? ????????, ?????? ??????, ????????, ?????????. ????? ????????? ???? ????????- ??? ??????????? ?????? ?????? ?????????? ?? ???????????? ??????????? ?????- ???. ??? ??????? ??????????? ???????????? ??????????? ???????? ? ?????????? ?????? - ??? ??????? ?????????. ???? ?????????? ??????? ?????? ? ???????? ????? ????? ???????? ??? ???????- ??????? ??????????? ?????. ?????????? ???????? ????????? ???? ? ???????????? ?????????? ??? ?????????- ??????? ??????? ???????, ??????? ??? ????? ???????? ??, ??? ? ??????????? ?????. ? ?????????? ????? ??????????? ????? ?? ???????? ?? ????????. ? ?????? ???????????? ?????? ?????? ? ????????????? ????????? ?????. ?? ???????? ?? ??????? ?????????? ???? ?????????? ???? ????? ??????, ??-?? ????? ??????????? ????????????? ????????? ? ?????????? ?????. ????? ???????????? ?????? ??????????? ???????????? ????????, ???????????? ??????? ??????????? ? ??????????? ????? ????? ??????. ??? ???????? ???????? ??????? ???????? ????-

????? ????????. ?????????? ??????????? ???? ????????? ?????????? ?????? ????? ?????????? ????? ? ?????????? ? ????????? ????????? ???????? ?????????. ???????????? ??????? ????????????? ???????? ???????? ????????? ? 1900 ????, ????? ????? ? ??????? ??????????? ???????? ?????????, ?????????? 1000 ?????- ????? ????? (???) ?????????? (???????????? ?????) ? ???????????????? ????. ????????? ??????????? ???? ????????? ??????? ??? ?????????? \"????????????\" ????? ???????? ?? ?????? ???? ??????????? ????????? ??? ?????????? ???????- ?????? ???? ???????. ??????? ?????????????? ???? ?????? ??? ?????? ? ?????????????? ????? ?????- ??? ????????????? ? ?????? ??, ??? ???????? ??? ????????? \"??????? ???????- ?? ??????? ?????. ???? ????????\". ?? ??????????? ????? ? ???????????? ??????? ???????????? ??? ? ???????? ??? ?? ???????? ??????????? ??????????. ??? ????- ??????? ???????? ??????? ???????? ???????? ? ????? ?? ??? ???, ???? ????????- ?????? ??? ???????, ??????????? ?? ???????????? ? ???????????? ???????? (???. 2) . ?.! ? 3 ?- ? ? <», ?? 1 ???. 2. ??????? ??????????? ????????. ????????? ?????? ???????????, ????? ???????????? ????????????? ??????????? ????? ? ?????????????? ????? ???????????. ?????? ???????? ? ????? ????? ????- ???????? ? ??????? ???????????? ?????, ? ???????? ???????????? ? ?????????- ???? ???????? ???????? (JTU). ??? ?? ?????, ??????????? ??????? ?????????? ??????? ???? ??????, ????????? ?? ???????? ?? ????????? ????????? ?????????? - ???????????? ?????, ???????, ?????? ?????????. ? 1926 ???? ????????? ? ????? ??????? ????????, ??????? ???????? ????? ???- ?????? ????????? ??? ????????????? ??????????? ?????????. ??? ????????????? ????????? ????????? ?????????? ?????? ??????? 5,00 ? ???????? ????????? ? 50,00 ? ????????????????????? ? ????? ????? ???????????????? ????. ??????? ?????????? ?????? ????? ??????????? ? ??????? 48 ????? ??? 25 ?. ??? ????????? ????????????? ???????? ? ????????? ??? ????? ????? ???? ?????- ??????? ??????????? ? ????????? ± 1%. ???????? - ???????????? ????????, ????- ??? ????? ??????????? ?? ?????????????? ???????? ???????. ??? ?????? ???????- ??, ?????????????? ??? ????????? ??????? ?????????????? ?? ?????????. ??????- ??? ????????? ????????, ?????????? ?????? ???????? ????????? ????????? ? ???- ???? ?????? ????????? ? ?????? ????????? ???????? ??????????????.

???????? ???????? ??????????? ??????????, ??????? ?????? ??? ????????? ?????????? ??? ?????????????. ??-??????, ??? ????? ?????????????? ???????? ?? ?????????????? ???????? ???????. ??-??????, ?????????? ???????? ?????????? ??? ????????? ? ?????????????. ???????? - ??? ???????, ????????? ?? ??????? ?????? ?????, ??????? ???????? ? ????????? ?????????????. ??? ???? ??????? ?????? ???? ? ???????? ?????? ?? ????? 0,1 ?? ????? 10 ???. ?? ???????? ??????????? ? ???????????? ??????????? ?????? ???????? ???????? ? ????????, ?????????? ?????? ????? ?????? ??????, ??????????? ????????? ??- ??????????? ?????????????. ????????? ??????????? ???????? ???? ????????? ??- ????????? ? ??????????, ????????? ?? ??? ?????????????? ??? ??????????? ???- ?????????? ?????????????? ????? ???? 25 JTU. ????? ???????? ???? ?????? ? ??- ????????? ????? ????????? ?????? ???????? ?? ????????. ????? ????, ????????? ???????? ?????????? ????? ? ??????? ???????? ???? ????? ?????, ???? ????????? ??????? ?????? ? ?????????????? ??????? ???????, ??? ????????? ?? ?????? ???- ??? ?????????????? ????? ?? ??????????. ?? ???? ??????? ?????? ? ?????????? ????? ?????? ??????. (?????? ??????? ?????????? ?? ????????? ? ????????? ??- ? ??????? ???? ??????? ? ????????? ???????????? ????????.) ?????????? ?????- ??????? ?????????? ????? ?????????? ????????, ????????? ??????? ?????????, ???????? ?????????? ????????? ????, ????????? ????? ?????? ????????? ?????? ?????????, ??? ???? ?????? ??????????? ?????? ?? ????, ??? ??????????? ????? ?????????. ???? ??????????? ????????? ?????????????, ?????????? ?? ??????????? ??????- ???, ? ???????????????????? ??????????? ????? ? ?????????? ?????????, ?? ??- ????????? ??????????? ????????? ????????? ? ?????????? ????????. ???????????- ?? ????????????? ? ????????? ????????? ????????????? ?????????. ??? ????? ??- ???? ?????????????? ??? ????????? ?????????? ?????, ??????????? ????? ??????? ?????????????? ??????. ??????? ???????????? ??? ???????????? ???????? ??????? ??????? ????????, ?? ??-???????? ?? ????? ?????????? ??????? ??? ????????? ?????? ????????. ??? ?????? ??????? ????????? ????????? ? ????????????? ???- ???????? ?????, ?????????? ? ????? ?????, ????????? ????, ??? ??????????? ?? ????????????? ?????. ?????? ?????? ?????? ??????? ? ???? ??????????? ?????- ?????? . ?? ??????? ????????????? ????????????? ????????? ????????????????? ? ??????? ??????????. ??????????? ? ???, ????? ?????????? ?????????? ?????, ???- ??????? ???????? ???????? ??? ????? ? ????????? ????? ? ????? ?????????? ?????????? ?????????- ?? ??? ????? ????? ? ???????? ????????? ???????. ?????????, ??? ???? ? 90° ????????? ?????????? ?????????? ???????????????? ? ????????? ?? ????????. ??????????? ???????? ??? ????? ??????????? ?????????? ????????? 90° (???. 3). ????? ??????? ?????????? ????????????? ??? ?????????????????? ??????????????, ????? ???????? ?? ??????? ?? ??????? ?????????????, ??????? ?????????? ????- ??????? ????? ??????????? ?????????? ? ???????????? ?????. ?????????? ? ??????????? ?????????? ciex ?????????? 90D ciex ??????? ???. 3

????????? ????? ????????????????, ???????? ? ???????????? ? ??????? ?????- ???? ???????? ? ???????????? ??????, ?????????? ??? ??????? ??? ?????????- ??????? ?????? ??? ??????????? ????????. ????? ????????????????? ????????? ????????? ???????? ????? ????????????????? ??????? ???????? NTU. ? ????????- ?????? ???????????? ??????????? ?? ?????? ?????????? ????? ??????? ?????????- ?? ??????? ???? ? ?????? ????????????????? ????? ????? ?????????? ?????????- ??? ??? ????? ??????????? ????????. ????? ??????? ??????? ????? ?????????, ???????????? ????????????????? ? ??- ???????? ?????????, ??????????, ?????????? ?????? ???????? ????????? NTU, a ??????? ? JTU (1 JTU = 4 NTU). ????? ????, ???????????? ??????? FNU (formazin nephelometric unit - ????????????????? ??????? ?? ?????????) ? FAU (formazin attenuation unit - ??????? ????????? ?? ?????????). FNU ??????????? ??? ????- ????????????? ??????????, a FAU ??? ?????????? ??????????? ?????. ??? ??? ??????? ????????? ? ?????????? ?? ?????? ?????????. ? ????????? ????? ? ?????????? ??????????? ????????? ????????? ?????, ?? ????? ???????????????? - ????? ???????????. ????? ????? ????? ??????? ??????, ??? ??????, ???????? ? ???????. ???? ?? ????? ????????????? ??????????????? ???????? ???????????? - ????????????, ??????? ?????? ????? ???????? ?????? ????, ????? ????????? ????? ?? ??????. ???????? ??????????? ?????? ??????? ?, ?????????????, ?????? ???????? ????? ??????? ?? ???????????? ? ????? ???????- ??????????? ???????? ????? ???. ??? ?????? ????????? ?????? ???????????? ??- ?????? ???????. ? ???????, ????? ? ??????? ???????????? ??????? ?????? ????, ??? ???? ???- ?????? ???????? ????? ? ?????????? ????????????????, ??? ???????????? ????? ???????????? ????????????????? ???????? ?????. ????? ???? ????????, ????????, ?????????. ????????? ???????? ? ????? ????? ??????? ??????? ?? ????????? ? ???????? ?? ???? ????? ??????????? (???. 4). ????????? ? ??????? ??????? ???- ??????? ????? ?????????? ?? ????????? ? ??????? ???????????, ?? ????????? ??????? ???????? ??? ????????? ????? ??? ?? ?????????????. ?????????? ?????- ????? ????? ? ????? ???????????? ??????????????? ???????????. ?????? ???????- ?? ?????, ????? ??? ??????, ??????? ????? ? ?????????? ????? + ??????, ? ??- ?????????? ??????????? ?????. 1001 1800 Wavelengtti nm ???. 4. ???????? ???????????? ?????????????? ????? ??????????? ????????????, ??? ???? ???????? ?????????? 560 ??, He-Ne ?????? ? ????? 860 ??. ?? ??? ??????? ? ??, - ????? ????? ?? ??? ????- ?????????????. ??? - ?????????????

??? ????????????? ??????????? USEPA ?????????? ??????? ? ??????? ??????, ??????????? ??? ???????? ??????????? ?? 2200° ?? 3000° ?. ? ??????????? ????- ?????? ???????? ??? ???????, ????? ?????? ??????? ? ?????????? ????? 860 ?? ? ? ??????? ??????? ????? 60 ??. ????? ??????????? ???????????? ???????????????? ? ?????? ????????, ?????? ?????????? ??????? ??????? ???????, ??????? ????- ?????? ? ?????????? 860 ?? ?? ????????????? ? ?????? ????????, ?????? ? ????- ??? ???????????????. ????? ????, ??? ???? ? ?????????? ???????????????? ??????????????? ? ?????- ???, ????????? ?????? ???? ???????????? ? ??????? ?????????. ? ??????????? ???????????? ??????????? ?????? ???? ??????????: ??????????????? ?????????? (???) , ????????? ????????, ?????????? ???????? ? ??????????? (????????????) ?? ?????? ???????? ??????. ???????????????? ?????????? ?????????? ? ????????? ?????????? ???? ????. ??????????????? ??????????, ??????????? ? ????????????, ????? ??? ?????????- ? ????? ????? ??? ???????????????? ??????? ??????? ? ??????? ?????????????. ???????????? ?????????? ??????? ?? ????????? ????????????????? ???????? ????- ???? ??????????. ????????? ???????? ???????? ??????? ???????????? ?????????- ????????, ???????? ?????? , ?? ????? ?????? ??????????????? ??????????. ?????????????? ??????, ?? ?? ?????? ?????? ?????????? ???????, ?????????. ?????????? ????????? ????? ??? ? ??????? ? ???????????? ????? ???????. ???????????? ?? ?????? ???????? ?????? ????? ??? ???????????????? ?????????? ????? ??? ? ??????????? ?????????. 100 Si Pbotodiode Photo- , [. multiplier and Vacuum Photodiode CdS Ptiotoconductor 20 200 600 BOO 1000 1200 1400 1600 1800 Wavelength, nm ???. 5. ???????? ???????????? ?????????????? ???????- ????????? ??????????????. ??? ?????? ? ?????? ????????? ????? ????????????? ???????????? ? ?????? ??????? ? ??????, ? ??????? ??????????? ??????? ????????? ????????????????. ??????? ?????, ???????, ?????????? ??????????????, ????? ????????? ? ??????- ??? ?????????, ??????? ????????????? ?????????????? ?????????? ?????. ?, ??- ?????, ??????????? ???????? ? ??????, ?????????? ?????? ?????????? ???????, ????????? ??????, ??? ??????????? ? ??? ?? ????????????, ????? ??????? ????- ??????? ? ?????????????? ?????????????? ?????????? ?????. ??? ?????? ? ??????? ????, ????? ?????????? ??????? ????? ??????? ?? ?????- ????????? ???????, ????????? ???????? ???????????? ????????????. ?? ????????- ??? ???????????? ???????? ?????????? ????? ????, ?? ??????? ???????????? ??-

????, ? ??????? ??? ??????????? ???????? ??????????? ???????? ????? ?????. ???? ? ????? ?????????? ?????? ???????, ?? ??????? ??????? ? ??????????????? ??????? ?? ??????? ?????, ?? ??????????????? ? ????????. ???? ??????? ? ????? ?????? ?????? ?? ??????????????, ???????? ???????????? ??????? ?????. ????- ???? ???????, ?????? ?? ?????? ? ?????????? ????? ????????? ????. ??????? ??????????????? ??????, ??????? ??????? ? ???????????? ?????????- ?????? ????????? ????? ? ??????????. ?????????? ?????? ???????? ???? TSW-20M (?8?-10)??? Arduino ?? DfRobot ?????????? ??- ?????? ????, ??????? ??????? ????????. ?? ?????????? ???? ??? ??????????? ?????????? ?????? ? ???? ????? ????????? ???????????????? ??? ??????????????, ?????????? ??????? ???????? ? ??????????? ?? ?????? ?????????? ??????? ?????? (TSS) ? ????. ?? ???? ?????????? TTS ??????? ???????? ???????? ?????????????. ?????? ???????? ?????????? ???? ???????????? ? ???????? ?????? ?????? ???- ????. ?????1 ???????????? ? ?????? ????????? ???????. ?? ?????? ??????? ????? ? ???????????? ? ???????????? ?????? ????????????????. ?????? ???????? ?? ???? ????????, ??? ????? ???? ???????? ????? ??????? ??- ??, ?????????? ?????, ?????????? ????? ???????, ??????? ?? ?????????? ?????? ? ????. ?? ???? ????????? ?????????? ?????? ?????????? ??????????? ????? ???????????. ?????? ???????? ???????? ?????????? ??????????? ????? ??? ????- ??????? ???????? ????. ???????????? ???????: 1. ??????? ??????????: 5? ??????????? ???? 2. ??????? ???: 40 ?? (????.) 3. ????? ???????: <500 ?? 4. ????????????? ????????: 100 ??? (???.) 5. ????? ??????: ?????????? 6. ?????????? ?????: 0-4,5 ? 7. ???????? ?????: ?????? ????????/??????? ?????? (?? ?????? ????????? ??- ??????? ????????, ????????? ????????????). ????????????? ?????? ???????????? ????? ?????????? ??????????, ????????? ?? ?????????? (?????????? ?????) ? ??????????????? (???????? ?????). ????? ????- ?????? ????? ??????? ???????? ????????? ????. ?? ????? ????????????? ?????- ????: VCC (+5 ?), GND (0 ?) ? OUT/SIGNAL.

-5V -5Y V^ED ? •R '470R ?????? ???????? ????? ????? ????? ???????????? ??????? ??? Arduino. ????? ?????- ???????????? ??????? ???????? ?????????? ? ????????? ???? ?????. ?? ?????? ?? LMV358 ????- ?????? (??? LMV393N) ???????????? ?????????????? ???? ??? ??????????? ? Arduino, ? ????? ?? ?????? ??????? ??????????/???????? ??????????? ????????????? ??? ???????????? ????? ?????????? ? ???????? ???? ??????. ? f -?1 | ?5 ! ?; ? ?? it: ?-.?1 • I: !. , • ?' J_ ?? ?????? DfRobot ? ??????? ?????? ? ?????????? (??. ????), ??????? ?????- ???? ?????????? ??????? ? ?????????. ?? ????? ??????? ? ?????? ?????, ??????? ??? ?????? ??????? ?? ????????- ????????, ??? ?????????, ?????????? ? ?????? ???????????, ????????? ?????? ? ??? ??????, ???????? ???? ?????? ?????? 4,2 ? ???????? ??? ??????? (?????? ????), ? ??? ????????? ????? ?????? ? ????????? 2,5 ? ?? 4,2 ? (???????? ?? 3000 ?? 0). ????? ???????, ???? ?? ?? ????????? ?????????? ????????, ????????? ?????- ????? . ??? ????? ???????, ???????? ????????? ???????????? ?? ????? ?????????- ??? ???????.

i— :: : ??— : : :r 3500 the relationship between turbidity and voltage 3000 2500 •* 4, J. 2000 • 1500 1000 \\ 500 V 0 ?) » V = -1120.4X2 + 5742.3X - 4352.9 \\ 0.5 1 1.5 2 2.5 3 35 4 45 ?????? ??????? ??????? ??????? ?????????? ????????, ????????? Arduino. ?? ???, ?????? ???????? ?????? ??????? ????????? ?????? ? ????? Arduino. ? ?????????? VCC ??????? ???????? ? Arduino 5V, GND ? GND, ? ?????????? ????? ???????? ? ?????? Arduino ??, ??? ?? ??????? ????. ?????????????? ???? ??????? ??? ??? ??????? ???????? ? Arduino. ???? ??? ???????? ?????????- ????? ????????? ?????????? ? ??????? ? ?????????? ??? ?? ??????? ????????.

void setup () { Serial.begin(9600) ; } = analogRead(AO); void loop() { = sensorValue int sensorValue float voltage * (5.0 / 1024.0); Serial.println (\"Sensor Output (V):\"); Serial.println (voltage); Serial.println(); delay(1000); } ?????? ??????? ??????? ?????????????? ??-??????? 12? 16x2 ??? ??????????? ???????? ???????? ?? ??-??????. ????? ??????????? ????????? ????. ?? ????? ???????????? ??-??????? 12?, ????? ????????? ?????????? ????????. ? ???????? SDA ? SCL 12? ?????????? ??-??????? ? ????????? Arduino A4 (SDA) ?5 (SCL). ?????? ??????? ???????? ??? ??????? Arduino ??????? ????????. ??? ????????- ?? ???????? ??-?????????? 12? ? Arduino IDE. ???????? ?????????? ?? ???? ??????: ftp://homelab.homelinuxserver.org/pub/arhiv/2023-02-a4.zip #include <Wire.h> #include <LiquidCrystal_I2C. h> LiquidCrystal_I2C lcd(0x27, 16, 2); int sensorPin = A0; float volt; float ntu;

void setup () { ; Serial.begin(9600) led.begin() ; led.backlight(); } void loop() { volt = 0; for(int i=0; i<800; i++) { volt += ((float)analogRead(sensorPin)/1023)*5; } volt = volt/800; volt = round_to_dp(volt,2); if(volt < 2.5){ ntu = 3000; }else{ ntu = -1120.4*square(volt)+5742.3*volt-4353.8; } led.clear(); led.setCursor(0,0) ; led.print(volt); led.print(\" V\") ; led.setCursor(0,1) ; led.print(ntu); led.print(\" NTU\"); delay(10); } float round_to_dp( float in_value , int decimal_place ){ float multiplier = powf( 10.Of, decimal_place ); in_value = roundf ( in_value * multiplier ) / multipliers- return in_value; } ???? ????????? ? ????. ??-??????, ?? ???????? ?????????? ??? ??-??????? 16x2, ??????? ????? ?????? 12? ? ??????? 0x27. #include <Wire.h> #include <LiquidCrystal_I2C. h> LiquidCrystal_I2C lcd(0x27, 16, 2); ???????? ?????????? ?????????? ??????? ?????? ??????????? ? ??????? ?????- ????? ? ????? ???? ??? ?????????. ?????????????, ?? 800 ?????????, ????? ??????? ???????? ??? ??????. volt = 0; for(int i=0; i<800; i++) { volt += ((float)analogRead(sensorPin)/1023)*5; } volt = volt/800;

????????? ???????, ?? ????????????? ???????? ??????????? ?????????? ? NTU. ntu = -1120.4*square(volt)+5742.3*volt-4352.9; ???? ????????? ??????????? ?????????? ?????????? ???? 2,5 ?, NTU ?????????- 3000 NTU ? ?????- ?????? ?? 3000. ????? ???????, — ??? ???????????? ???????? ?? . if(volt < 2.5) { } ntu = 3000; ????? ????????? ?????? ???????1, ?? ?????? ??????? ?????? ? ????????? ???? ????. ????????? ?????????? ????? ??????? ????? ??? ????? ? ???????? ???? ? NTU. ?? 1 _-..\\?? ?* I1 f- -ffi Low Turbidity » High Turbidity ????????, ? ?????? ???? ?????????? ????????? 4,2?. ???? ?? ?? ?????????? 4.2, ??? ?? ?????. ????? ?????????????? ??????????, ?????? ???????????? 1 https://www.youtube.com/watch?v=Bu8y-6BpvOU

??????? 192.168.1.45 Greg <? ? 192.168.1.45 Temperature is 25.77 °C Humidity is 60.85 % Pressure is 1011.84 mb ???-?????? HA ARDUINO ???? ? . A. ????? 10. ???-?????? ARDUINO ??? SD-KAPT ? ???? ????? ??????????? ?? ???-??????? Arduino Ethernet Shield ????????, ?? ????? micro ??? ????????? ?????? ????? ???-??????????, ???????????? SD ???????, ???-??????? Arduino. ??? ?????? ?? ??????????? ???-????????, ?? ??????? ????? ????? ??- ????? ??? ??????? ?????? ???-????????. ???????? ?????? ? HTML ?????? ????????? ? HTML ? ??????? HTML-???? <?>. ????? ????? ??????????? ???????????? ????? <?> ? ??????????? ????? </?> ?????????? ??????? ?? ???- ???????? . ???????? ???????? href ???? <?> ?????? ????????? ??? ????? ???-????????, ?? ??????? ?????????, ????????: <p>Go to <a href=\"page2.htm\">page 2</a>.</p> ?????????????? ?????? HTML ??????? ????? ??????, ? ??????? ????? ?????? ??????? ???????? 2 ?????? ?? ???? ? ?????? page2.htm. ?????? ???? ????2.htm ????????????, ? ????? ?????????? ? ??? ?? ????????, ??? HTML- ??? ? ????????, ?????????? ?????? ?? ????. ? ???????? ???????? ? ???? ????? ??????????? ????? ????????????

?????. ??? ?????? ???? ????????? ?? ????? micro SD, ? ????? micro SD ?????? Ethernet Shield. ?????? ???? ????????? ? ??????? ????????, ??????? ????? ??????????? ? ???????, ??????? ?? ?????????? HTML-???? (??? ????? index.htm): <!DOCTYPE html> <html> <head> <title>Arduino SD Card Web Page</title> </head> <body> <hl>Arduino SD Card Page with Link</hl> 2</a>.</p> <p>Go to <a href=\"page2.htm\">page </body> </html> ??????????? ???? ???????? ????????? ?? ?????? ???????? ? ?????? page2.htm: <!DOCTYPE html> <html> <head> <title>Arduino SD Card Web Page 2</title> </head> SD Card Page 2</hl> <body> to <a href=\"index.htm\">main <hl>Arduino <p>Go back page</a>.</p> </body> </html> page2.htm ????????? ?? ??????? ???????? index.htm. ???????? ??? ????????????? ????? (index.htm ? page2.htm) ? ?????????? ?? ?? SD. ???????? ????? micro ????? micro SD ? ????????? ????? micro SD Ethernet Shield. ??? ???????? ????? ?????????????? ?? ?????????? (? ????? ??????? ? ????? ???????? ????? ?? ??????? ?????), ?????? index.htm ? ? ??????? ??????. ?? ?????? page2.htm ?????? ??????????? ??? ??????? ?? ??????. ??? ??????? page2.htm ??????? ?????? ????????? ? index.htm. HTTP-??????? ??????? ????? ???-??????? ??????? ??????????? ???????? ? ???-??????? Arduino, ?? ?????????? HTTP-??????, ???????? ?????: GET / ????/1.1 Host: 10.0.0.20 User-Agent: Mozilla/5.0 (XI1; Ubuntu; Linux i686; rv:19.0) Gecko/20100101 Firefox/19.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-ZA,en-GB;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Connection: keep-alive ?? ??? ?????? ???? HTTP-?????? ? ?????????? ?????? ????? ???????????. ??? ??????? ?? ?????? ?? ???????? (?????? ?? ???????? index.htm ?? ???????? page2.htm ? ????? ???????) ???-??????? ?????????? ????????? HTTP-??????:

GET /page2.htm HTTP/1.1 Host: 10.0.0.20 User-Agent: Mozilla/5.0 (Xll; Ubuntu; Linux ±686; rv:19.0) Gecko/20100101 Firefox/19.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-ZA,en-GB;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Referer: http://10.0.0.20/ Connection: keep-alive ????? ???????, ?????????????? HTTP-?????? ???????? ?????? GET ??? ????????? ???? index.htm). ?????: GET / (??? ????? ??? ??? ??????? ?? ?????? ?????? ?????? ??? ???????????? ????????: GET /page2.htm ????? — ?????? ?? ?????, ??? ?? ?????? ????????? HTTP-??????, ???- ???? , ?? ??????? ??????????? ?? ?? ???????? ???? ??? ?????????? ????, ???? ??????. ??? ???????? ????? ??????? ? ?????? Arduino. ?????1 SD-????? ???? ???????????? ????? ???????????????? ?????? ??????? ???-??????? ?? ????? 4 ???? ?????. /' e th_web s r v_SD_l ink Program: Description: Arduino web server that serves up a basic web the Hardware: page that links to a second page. Clicking page Software: link will open the second page. The second References: links back to the first page. Date: Modified: Arduino Uno and official Arduino Ethernet Author: shield. Should work with other Arduinos and compatible Ethernet shields. FAT16 SD card formatted 2Gb micro Developed using Arduino 1.0.5 software Should be compatible with Arduino 1.0 + Requires index.htm and page2.htm to be on the shield micro micro SD card in the Ethernet SD card socket. - Webserver example by David A. Mellis and modified by Tom Igoe A. Mellis and examples - SD card by David Tom Igoe - Ethernet library documentation: http://arduino.cc/en/Reference/Ethernet - SD Card library documentation: http://arduino.cc/en/Reference/SD 2 March 2013 14 June 2013 - removed use of String class, used too much SRAM - added StrContains() functions StrClear() and - disable Ethernet chip at startup W.A. Smith, http://startingelectronics.org */ #include <SPI.h> #include <Ethernet.h> #include <SD.h> // size of buffer used to capture HTTP requests #define REQ BUF SZ 20 Ha4 1 https://www.youtube.com/watch?v=d_ktVihj

// MAC address from Ethernet shield sticker under board byte mac[] ={ OxDE, OxAD, OxBE, OxEF, OxFE, OxED }; 168, 0, 20); IPAddress ip(192, // IP address, may need to change = {0}; on network // depending EthernetServer server(80); // create a server at port 80 File webFile; // handle to files on SD card char HTTP_req[REQ_BUF_SZ] // buffered HTTP request stored as null buffer // terminated string char req_index =0; // index into HTTP_req void setup() { // disable pinMode(10, Ethernet chip digitalWrite(10, OUTPUT); HIGH); Serial.begin(9600); // for debugging // initialize SD card Serial.println(\"Initializing SD card...\"); if (!SD.begin(4)) { Serial.println(\"ERROR - SD card initialization failed!\"); failed file!\"); return; // init } Serial.println(\"SUCCESS - SD card initialized.\"); // check for index.htm file { if (!SD.exists(\"index.htm\")) find - Can't index Serial.println(\"ERROR find index.htm file return; // can't } Serial.println(\"SUCCESS - Found index.htm file.\"); Ethernet.begin(mac, ip); // initialize Ethernet device server.begin(); } // start to listen for clients void loop() { EthernetClient client = server.available(); // try to get client if (client) { // got client? boolean currentLinelsBlank = true; while (client.connected()) { if (client.available()) { // client data available to read char ? = client.read(); // read 1 byte (character) from client // buffer first part of HTTP request in HTTP_req array (string) // leave last element in array as 0 to null terminate // string (REQ_BUF_SZ - 1) if (req_index < (REQ_BUF_SZ -1)) { HTTP_req[req_index] = c; // save HTTP request character req_index++; } Serial.print(c); // print HTTP request character // to serial monitor // last line of client request is blank and ends with n\\ // respond to client only after last line received if (c == f\\nf && currentLinelsBlank) { // send a standard http response header client.println(\"HTTP/1.1 200 OK\"); client.println(\"Content-Type: text/html\");

client.println(\"Connnection: close\"); client.println(); // open requested web page file if (StrContains(HTTP_req, \"GET / \") || StrContains(HTTP_req, \"GET /index.htm\")) { webFile = SD.open(\"index.htm\"); // open web page file } else if (StrContains(HTTP_req, \"GET /page2.htm\")) { webFile = SD.open(\"page2.htm\"); // open web page file } // send web page to client if (webFile) { while(webFile.available()) { client.write(webFile.read()); } webFile.close(); } // reset buffer index and all buffer elements to 0 req_index = 0; StrClear(HTTP_req, REQ_BUF_SZ); break; } // every line of text received from the client ends with \\r\\n if (c == '\\n') { // last character on line of received text // starting new line with next character read currentLinelsBlank = true; } else if (c != fr\\ f) { // a text character was received from client currentLinelsBlank = false; } } // end if (client.available()) } // end while (client.connected()) delay(1); // give the web browser time to receive the data client.stop(); // close the connection } // end if (client) } // sets every element of str to 0 (clears array) void StrClear(char *str, char length) { for (int i = 0; i < length; i++) { str[i] = 0; } } // searches for the string sfind in the string str // returns 1 if string found found string not char // returns 0 if = 0; *str, char StrContains(char = 0; *sfind) { char found char index char len; len = strlen(str); if (strlen(sfind) > len) { return 0; }

while (index < len) { { if (str[index] == sfindffound]) { found++; == found) 1; if (strlen(sfind) return } } = 0; else { found } index++; } return 0; } ??????????. ? ???? ?????? ????? IP-????? 192.168.0.20, ? ?? 10.0.0.20, ??? ??? ? ?????? ??????? ? ???? ???????????, ??????? ??? ????????????? ???????? ??? ????? ???????. ???? ??????? ????????? ????????? ?????? SD-????? ?? ????? 4. HTTP-?????? ????? ??? ??????? ??? ?????????? HTTP-??????? ?? ???-???????? ? ?????? ?????? ???????- HTTP_req. ????? ??? ????? ?????, ????? ??????, ????? ???????? ???????- ?????? . ? ?????- HTTP-?????? ???????????? ????? ???????????????? ????, ? ??? ????? ???? ? ???? ????????????????? ???????? Arduino ??? ????? ??????????? ??. ???????? ?????????? ???-???????? ????? ????, ??? Arduino ??????? HTTP-?????? ?? ????????, ?? ???????? ????- ??????? HTTP-??????????, ? ????? ?????????? ??????????? ???-????????. ????? ??????? ???, ??????? ???????? ???-???????? ??? ????????: // open requested web page file if (StrContains(HTTP_req, \"GET / \") || StrContains(HTTP_req, \"GET /index.htm\")) { webFile = SD.open(\"index.htm\"); // open web page file } else if (StrContains(HTTP_req, \"GET /page2.htm\")) { webFile = SD.open(\"page2.htm\"); // open web page file } ???, ??? ?????? ???? ???, — ????????? index.htm ??? page2.htm ? SD-?????. ???, ??????? ?????????? ????, ????? ??, ??? ??? ?? ????? 4 ???? ?????. ??? ??? ?????? ??????????? ????? ????????????? ?????????? HTTP-?????? ? ??- ????? ??????? StrContains(). HTTP_req — ??? ?????? ? ????? ??????, ?????????? ???? HTTP-?????? HTTP-??????. ???????? «GET/», ?? ??? ?????? ?? ??? ???????? ???? index.htm. ???? ?????? HTTP-??????? ???????? «GET /page2.htm», ?? page2.htm ????? ??- ???? ? ????????? ? ???-???????. ??? ??????? ?? ?????? page2.htm ??? ????????? ?? index.htm, ? ?? ?? /. ?? ???? ??????? ?????????? ?????????, ???????? ?? HTTP-?????? «GET /» ??? «GET /index.htm» ? ?????? ????????? if ? ??????????? ???? ???????? ????.

??????????? ???? ????? ???????????? ??? ???????????? ????????? ???????? ?????? ?? ???????? ?? ???-??????? Arduino, ??????? ?? ??? ???????. ????????? ????? ?????????, ??????? ????? ?????? ? ???, ??????????? ? ???, ??????? ??- ????, ????? ??? ????? ????? GET ? HTTP-???????, ? ????? ??????? ?? ???????? ??????, ?????????? ??? ? ????. ?????? ?????????? ????? ????????? ????? ????- ???? ????????????? ?????????, ?? ?? ??? ?? SD-?????. ????? 11. ???-?????? ARDUINO SD CARD - ??????????? ??????????? ????????, ??????????? ???-???????? Arduino ?? SD-?????, ???????? ????????- ???. ? ???? ??????????? ????????, ??? ???????? ??????????? JPEG ? ???- ???????? HTML ? ??? ????????? ??????????? ? ???-???????, ????? ???-?????? ??- ?????? HTTP-?????? ?? ???????????2. ?????????? Arduino Uno ? ??????? Ethernet Shield ? ?????? micro SD. HTML ??? ??????????? ??????????? ???1 HTML <img> ???????????? ??? ??????? ??????????? ?? ???-????????. ????? ???? ???????????? ???-???????? ?? ?????????? ????? ???? ????? ??????????. index.htm HTML ????? ??????? ??? ?????????? ??????????? — ??? ????? (index.htm) ??????? ????. <!DOCTYPE html> <html> <head> <title>Arduino SD Card Web Page</title> </head> <body> SD Card Page with Image and Link</hl> 2</a>.</p> <hl>Arduino <img src=\"pic.jpg\" /> <p>Go </body> to <a href=\"page2.htm\">page </html> ? ??????????? ???? HTML-???? ??????????? ? ?????? pic.jpg ??????????? ?? ????????? ???-???????? ? ??????? ?????? HTML-????: <img src=\"pic.jpg\" /> ??????? src ???????????? ??? ???????? ????? ????????????? ???????????. ???? page2.htm ??????? ????. <!DOCTYPE html> <html> <head> <title>Arduino SD Card Web Page 2</title> SD Card Page 2</hl> </head> <body> <hl>Arduino 2 https://www.youtube.com/watch?v=V9bNwhgaKwY

<p>Go back to <a href=\"index.htm\">main page</a>.</p> </body> </html> ?????? ??? ??????????? ? ???-??????? Arduino ? ??????? ???? ???-??????? ??????? ??? ??????. ????? ??? ???-??????? ???????? HTTP-?????? ?? ??????, ????, ????- ???????? ???????????. ????? ??? ???-????????, ?? ?????????, ??? ???-???????? HTTP-?????? ?? ???????? ?????? ??? ???????????. /' e th_web s r v_SD_image Program: Description: Arduino web server that serves up a basic web Ethernet Hardware: page that displays an image. Software: Arduino Uno and official Arduino References: shield. Should work with other Arduinos and Date: compatible Ethernet shields. FAT16 Modified: SD card formatted Author: 2Gb micro Developed using Arduino 1.0.5 software Should be compatible with Arduino 1.0 + Requires index.htm, page2.htm and pic.jpg to be Ethernet on the micro SD card in the shield micro SD card socket. - Webserver example by David A. Mellis and modified by Tom Igoe A. Mellis and examples - SD card by David Tom Igoe - Ethernet library documentation: http://arduino.cc/en/Reference/Ethernet - SD Card library documentation: http://arduino.cc/en/Reference/SD 7 :March 2013 17 June 2013 W.. A. Smith, http://startingelectronics.org 4 #include <SPI.h> #include <Ethernet.h> #include <SD.h> // size of buffer used to capture HTTP requests #define REQ_BUF_SZ 20 // MAC address from Ethernet shield sticker under board byte mac[] ={ OxDE, OxAD, OxBE, OxEF, OxFE, OxED }; 168, 0, 20); // IPAddress ip(192, IP address, may need to change // on network // depending 80 EthernetServer server(80); create a server at port File webFile; char HTTP_req[REQ_BUF_SZ] = {0}; // buffered HTTP request stored as null // terminated string char req index =0; // index into HTTP req buffer void setup() { // disable pinMode(10, Ethernet chip digitalWrite(10, OUTPUT); HIGH);

Serial.begin(9600); // for debugging // initialize SD card Serial.println(\"Initializing SD card...\"); if (!SD.begin(4)) { Serial.println(\"ERROR - SD card initialization failed!\"); failed file!\"); return; // init } Serial.println(\"SUCCESS - SD card initialized.\"); // check for index.htm file { if (!SD.exists(\"index.htm\")) find - Can't index Serial.println(\"ERROR find index.htm file return; // can't } Serial.println(\"SUCCESS - Found index.htm file.\"); Ethernet.begin(mac, ip); // initialize Ethernet device server.begin(); } // start to listen for clients void loop() { EthernetClient client = server.available(); // try to get client if (client) { // got client? boolean currentLinelsBlank = true; while (client.connected()) { if (client.available()) { // client data available to read char ? = client.read(); // read 1 byte (character) from client // buffer first part of HTTP request in HTTP_req array (string) // leave last element in array as 0 to null terminate // string (REQ_BUF_SZ - 1) if (req_index < (REQ_BUF_SZ -1)) { HTTP_req[req_index] = c; // save HTTP request character req_index++; } // print HTTP request character to serial monitor Serial.print(c); // last line of client request is blank and ends with n\\ // respond to client only after last line received if (c == fn\\ f && currentLinelsBlank) { // open requested web page file if (StrContains(HTTP_req, \"GET / \") || StrContains(HTTP_req, \"GET /index.htm\")) { client.println(\"HTTP/1.1 200 OK\"); client.println(\"Content-Type: text/html\"); client.println(\"Connnection: close\"); client.println(); webFile = SD.open(\"index.htm\"); // open web page file } else if (StrContains(HTTP_req, \"GET /page2.htm\")) { client.println(\"HTTP/1.1 200 OK\"); client.println(\"Content-Type: text/html\"); client.println(\"Connnection: close\"); client.println(); webFile = SD.open(\"page2.htm\"); // open web page file } else if (StrContains(HTTP_req, \"GET /pic.jpg\")) { webFile = SD.open(\"pic.jpg\"); if (webFile) {

client.println(\"HTTP/1.1 200 OK\"); client.println(); } } if (webFile) { while(webFile.available()) { client.write(webFile.read()); // send web page to client } webFile.close(); } // reset buffer index and all buffer elements to 0 req_index = 0; StrClear(HTTP_req, REQ_BUF_SZ); break; } // every line of text received from the client ends with r\\ n\\ if (c == '\\n') { // last character on line of received text // starting new line with next character read currentLinelsBlank = true; } else if (c != f\\rf) { // a text character was received from client currentLinelsBlank = false; } } // end if (client.available()) } // end while (client.connected()) delay(1); // give the web browser time to receive the data client.stop(); // close the connection } // end if (client) } // sets every element of str to 0 (clears array) void StrClear(char *str, char length) { for (int i = 0; i < length; i++) { str[i] = 0; } } // searches for the string sfind in the string str // returns 1 if string found found string not char // returns 0 if = 0; *str, char StrContains(char = 0; *sfind) { char found char index char len; len = strlen(str); if (strlen(sfind) > len) { return 0; } while (index < len) { if (str[index] == sfindffound]) { { found++; if (strlen(sfind) == found) return 1; } }

else { found = 0; } index++; } return 0; } ????? ???????? ??? ??, ??? ? ????? ?? ?????????? ????? ????? ???????????, ?????????? ???????????? ?? ??????????? ????, ??????? ??????????? ? ??????? JPEG: else if (StrContains(HTTP_req, \"GET /pic.jpg\")) { webFile = SD.open(\"pic.jpg\"); 200 OK\"); if (webFile) { client.println(\"HTTP/1.1 client.println(); } } ???? ??? ?????????, ??????????? ?? HTTP-?????? ???-???????? ??????????? JPEG pic.jpg. ???? ?????? ?? ??????????? ??????? ? ??? ????? ??????? ? SD-?????, ????? ?? ???????????? ??????? ? ???-???????. ????? ???? JPEG ???????????? ? ????????- ?????? ???? ?? ????, ??? ? HTML-????????. ????? ??, ??? ? ? ?????????? ????? ????? ???????????, ??? ??? ?????? ????? ??????? ??? ??????? ?????. ?? ?? ???????????? ??????, ????? ?????? (???? HTML ??? ???? ???????????) ?? ????? ???? ?????? ?? SD-?????. ?? ????? ?????????? ???????????? ?????? ??????????? ? ?????? «pic.jpg». ??? ????????????? ????????????? ???? ?? ????? ???????? ??????????? ??? HTML-???????? ??? ??? ????? ??????????? ?? HTTP-???????, ? ????? ?????????? ????? ??? ?? SD-?????. ?????? ???? ???????????? ??? ??? ????????? ??????, ??- ??? ???? ?? ????? ???? ?????? ?? SD-?????. ????? 12. ???????? ? CSS ? ???? ??????????? ?? ??????? ??????????? HTML, ??????? ?????? ?? ???????- ?????????? ??????????? ???-???????? ? ??????, ?????????, ???????? ?????????? ??????? ? ?. ?. ?????? ?? ?????????? CSS (Cascading Style Sheets - ????????? ??????? ???- ???) . CSS ????????? ??????? ????? ???????? ?? ???-????????. CSS ???????????? ?? ???? HTML, ????? ???????? ???????? ?????? ??? ????????? ????? ?????? HTML. ????????, ????? ???????? ??? ??????, ???? ? ?????? ?????? ??????. CSS ????? ????? ???????????? ??? ?????????? ????????? HTML ?? ???-????????. ? ???? ????? ??????????? ?? ?????????? ?????? ?????? CSS, ????? ??????? ? CSS ??? ???????? ????????????? ? ???, ??? CSS ????? ?????? ? ??? ???????? CSS. ?????????? ????????????? CSS ????? ????????? ? ???? ???????????. ?????? CSS ? ???? ??????? ???????? CSS ???????????? ??? ?????????? ???????? ????? ??- ?????, ????? ??? ????????? ????????? ???????:

Arduino SD Card Page with CSS This text is red. T ???????? HTML ? CSS, ??????? ??????? ????????????? ???-????????, ????? ???- ???? ????: <!DOCTYPE html> <html> <head> <title>Arduino SD Card Web Page</title> courier-new, <style type= > solid blue; ?{ font-family: courier, serif; font-size: 20pt; color: blue; border-bottom: 2px } P< arial, verdana, sans-serif; I2pt; font-family: #686607; font-size: color: > { .red_txt red; color: > </style> </head> <body> SO Card Page with CSS</hl> <hl>Arduino to the Arduino web page with CSS styling.</p> <p>Welcome >This text is red.</p> <p class= paragraph has one word that uses <span class= >red</span> text.</p> <p>This </body> </html> ? ???? ??????? ??????????? ???????? CSS ???????? ? HTML-????????. CSS ? ??????????? ?????- ??????????? ????? ??????????? ?????? <style>. ???? ????? ?????? ? ????? <head> HTML-?????. ?????????? ??? ?????? ?????? ????????? CSS ? HTML-????: 1) In-line — CSS ??????????? ? ???? HTML. ?? ??????? 2) ??????? ??????? ?????? — ???? CSS ??????? ????? ? ??????? ? ?????? HTML-?????. CSS, ??????? ???????????? ? ???? ???????, ??????? ???????? ?????:

hi { font-family: courier, courier-new, serif; font-size: 20pt; color: blue; border-bottom: 2px solid blue; > P{ font-family: anal, verdana, sans-serif; font-size: 12 p t ; #6B6BD7; color: > .red_txt { color: red; > ????? ????????? ?????? ????? CSS ????????? ????? ? ????? <?> HTML-????. ????? ????? ?????- ?????? ? ??????????? ????????? ???????? ????? hi ? ??????????? ???? ???????? ????? ??????????? ? ??????? ????????? hi ?? ???-????????. ?????? ???? CSS ???? ?????? ??? ?????? courier. ???? courier ?? ?????? ? ?? ?????? ? ???????, ?? ????? ?????????????? ????? courier. ???? courier-new ???????, ?? ????? ?????????????? ????? ????? ? ?????????. font-family: courier, courier-new, serif; ????????? ??? ?????? ?????? ?????? ?????? hi ? ???? ??????. ??????????? ????????? ?????, ??????? ? ?????????? (2 hi, ??????????? ? ?????- ??????? ????? ???????? ????? ????? ? ??? ??????? ???????) ??? ??????? ??- ??????? . ????? ?????? ????????? ????? ???????? CSS ??????????? ? ?????? ?????? (<?>). ????? ????? ????? ??????????? ? ??????????? ????????? ???????? ????? ? ??????????? ?? ? ??- ?????? ?????? ?? ???-????????. ??????? ??????????? ??? ? ?????? ??????. ???? ?????? ?????? ???????? ????? ?????????????????? ????? RGB. ??????????????? ????? ? HTML ?????? ????????? ??? ??????. ??? ??? — ????? ???, ??????? ???????? HTML ? ???????, ??????? CSS: <? class=ffred_txtn>This text is red.</p> ?????? ????? ?????? CSS ? ?????? red_txt, ????? ?????????????? ????? ?????? ??? ??? ???? ???????, ?????????? ????? red_txt. .red_txt { red; color: } ? ???? ?????? ???????????????? ?????? ???? ??????, ????????? ??? ?????????- ??? ? ?????, ?????, ????????? ? ?????? CSS red_txt. ?????????? ??? ? .red_txt ??? ????????? ?????? CSS ??? ?????? ? ??? ???????? ????.

????????? ????? ?????????? ????? ????? ???????? ????? ?????????? ????? ? ??????, ??? ????? ?????????? ?????- ?? ??????????? ? ??????? ???? HTML. ? ????????? ?????? HTML ??? <span> ??- ?????????? ??? ????????? ?????? ?????. ????? ?? ????????? ??? ?? ????? ?? ?????? red_txt ? ?????????? ?????. <p>This paragraph has one word that uses <span class=\"red_txt\">red</span> text.</p> ??? ???? ????? ??????? ???????? ? CSS ? ???? ????????????? ?????? ??? ????, ????? ???????? ???, ??? ????? CSS, ??? ?? ?????? ? ??? ?? ????????. ?????????? ????? ????? ?????? ??????, ??????? ????? ????????? ? ???????? ?????????? HTML-?????. ?? ????? ???? ???? ????? ?????, ??????????? CSS. ???? ?? ?????? ?????? ?????? ? CSS, ??????? ????? ????????? ??????????? ?? CSS ? ????????? ??? ???????? ??????? ????? ?? CSS. ?????? ???? ????? ????????? ??????????? ???? ?????? CSS ?? ???-?????? Arduino, ?????? ?? ????? ????????? ??? HTML ? CSS ? ???? ? ?????? index.htm ? ?????????? ??? Shield, micro SD. ???????? ????? micro SD ? ?????? ????? Arduino Ethernet a ?? ????- ????? ????????? ????? ? ???-??????? SD-????? Arduino (????? 4). ????? ???????? ??? ?? ????????????? ??????? ??????????? ???? ???, ??? ????, ????? ??? ????? ???? ??????????? ? ????????: <!DOCTYPE html> <html> <head> <title>Arduino SD Card Web Page</title> <style type=\"text/ess\"> hi { font-family: courier, courier-new, serif; font-size: 20pt; color: blue; border-bottom: 2px solid blue; } P{ arial, verdana, sans-serif; font-family: 12pt; #6B6BD7; font-size: color: } .red_txt { red; color: } </style> </head> <body> <hl>Arduino SD Card Page with CSS</hl> <p>Welcome to the Arduino web page with CSS styling.</p> <p class=\"red_txt\">This text is red.</p> uses <span class=\"red_txt\">red</span> <p>This paragraph has one word that text.</p> </body> </html>


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