Здесь показаны различия между двумя версиями данной страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
practicalwork [2017/03/14 18:00] super_admin [Воспроизведение в браузере данных, переданных через последовательный порт] |
practicalwork [2019/06/24 20:29] (текущий) |
||
---|---|---|---|
Строка 37: | Строка 37: | ||
<code> | <code> | ||
+ | |||
+ | const int R = 11; | ||
+ | const int G = 10; | ||
+ | const int B = 9; | ||
+ | int rval = 0; | ||
+ | int gval = 0; | ||
+ | int bval = 0; | ||
+ | |||
+ | void setup() { | ||
+ | Serial.begin(9600); | ||
+ | pinMode(R, OUTPUT); | ||
+ | pinMode(G, OUTPUT); | ||
+ | pinMode(B, OUTPUT); | ||
+ | Serial.println("ok"); | ||
} | } | ||
Строка 56: | Строка 70: | ||
} | } | ||
+ | |||
</code> | </code> | ||
Строка 127: | Строка 142: | ||
==== LCD дисплей (документация) ==== | ==== LCD дисплей (документация) ==== | ||
- | http://files.amperka.ru/datasheets/MT-16S2H.pdf | + | * http://files.amperka.ru/datasheets/MT-16S2H.pdf |
+ | * [[http://wiki.amperka.ru/%D0%BA%D0%BE%D0%BD%D1%81%D0%BF%D0%B5%D0%BA%D1%82-arduino:%D1%82%D0%B5%D1%81%D1%82%D0%B5%D1%80-%D0%B1%D0%B0%D1%82%D0%B0%D1%80%D0%B5%D0%B5%D0%BA?s[]=lcd | Эксперимент 18. Тестер батареек]] | ||
+ | * [[http://wiki.amperka.ru/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE%D1%83%D1%80%D0%BE%D0%BA%D0%B8:13-%D0%B6%D0%BA-%D0%B4%D0%B8%D1%81%D0%BF%D0%BB%D0%B5%D0%B8-lcd | Видеоуроки по Arduino, 13-я серия — ЖК-дисплеи (LCD)]] | ||
+ | * http://arduino.ru/forum/programmirovanie/russkie-bukvy-na-lcd-displee | ||
+ | * https://github.com/mk90/LiquidCrystalRus | ||
+ | * http://wiki.amperka.ru/%D0%BF%D1%80%D0%BE%D0%B4%D1%83%D0%BA%D1%82%D1%8B:tft-touch-color-display-800x480-raspberry-pi?s[]=lcd | ||
+ | * http://wiki.amperka.ru/arduino-%D0%BC%D0%BE%D0%B4%D1%83%D0%BB%D0%B8:%D0%BE%D0%B3%D0%BB%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5?s[]=lcd | ||
+ | * http://wiki.amperka.ru/%D0%BC%D0%B8%D0%BD%D0%B8-%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D1%8B-arduino-breadboard:%D0%BE%D0%B3%D0%BB%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5?s[]=lcd | ||
==== Автоматический контроль влажности почвы ==== | ==== Автоматический контроль влажности почвы ==== | ||
Строка 156: | Строка 179: | ||
* [[https://www.pjrc.com/teensy/td_libs_AltSoftSerial.html]] | * [[https://www.pjrc.com/teensy/td_libs_AltSoftSerial.html]] | ||
* [[http://www.martyncurrey.com/connecting-2-arduinos-by-bluetooth-using-a-hc-05-and-a-hc-06-pair-bind-and-link/]] | * [[http://www.martyncurrey.com/connecting-2-arduinos-by-bluetooth-using-a-hc-05-and-a-hc-06-pair-bind-and-link/]] | ||
+ | * [[http://robotclass.ru/articles/bluetooth-hc-05-06/]] | ||
+ | ==== Игры на arduino ==== | ||
+ | |||
+ | * [[http://arduino.ru/forum/programmirovanie/igra-na-arduino]] - Идея игры в палочки | ||
+ | * [[http://arduino-ua.com/art42-mini-igra-na-arduino]] - Мини игра на Arduino (Arduino LCD Game) | ||
+ | * [[http://www.instructables.com/id/Arduino-LCD-Game/]] - Мини игра на Arduino (Arduino LCD Game En) | ||
+ | * [[http://howtomechatronics.com/projects/arduino-game-project-replica-of-flappy-bird-for-arduino-on-a-tft-touch-screen/]] | ||
+ | |||
+ | ==== Объединение arduino в сеть ==== | ||
+ | |||
+ | === Соединяем две arduino по шине I2C === | ||
+ | * [[https://lesson.iarduino.ru/page/urok-34-igra-zmeyka-piton-na-matrice-iz-svedodiodov/]] | ||
+ | * [[https://www.youtube.com/watch?v=RgCDTyr27oo]] | ||
+ | * [[http://lesson.iarduino.ru/page/urok-26-3-soedinyaem-dve-arduino-po-shine-i2c/]] | ||
==== Автоматные модели ==== | ==== Автоматные модели ==== | ||
Строка 184: | Строка 221: | ||
==== ПРЕРЫВАНИЯ ==== | ==== ПРЕРЫВАНИЯ ==== | ||
+ | [[http://robotosha.ru/arduino/multi-tasking-arduino.html]] - **Конечные автоматы** | ||
+ | |||
+ | [[http://robotosha.ru/arduino/multitasking-and-interrupts-arduino.html]] - Прерывания на Arduino (Interrupt Service Routine) | ||
+ | |||
+ | Пример реализации **attachInterrupt**: | ||
<code> | <code> | ||
Строка 221: | Строка 263: | ||
} | } | ||
</code> | </code> | ||
+ | |||
+ | |||
+ | ===== Написание классов и создание библиотек для Arduino ===== | ||
+ | |||
+ | * [[http://arduino.ru/Hacking/LibraryTutorial]] написание библиотеки для Arduino!!! | ||
+ | * [[http://arduino.ru/forum/programmirovanie/klassy-i-obekty-v-arduino]] - форум... | ||
+ | * [[http://mypractic.ru/uroki-programmirovaniya-arduino-navigaciya-po-urokam]] - уроки (классы, библиотеки)!!! | ||
+ | * [[http://techi-news.com/Серия статей:Программирование_Arduino_с_нуля]] | ||
+ | * [[http://robot-develop.org/archives/1787]] - Устройство Arduino, делаем свою Arduino. | ||
+ | |||
+ | |||
+ | |||
===== Arduino Uno. Подключение ИК-приемника ===== | ===== Arduino Uno. Подключение ИК-приемника ===== | ||
Строка 250: | Строка 304: | ||
* [[http://cxem.net/beginner/beginner96.php]] Операционный усилитель? Это очень просто! | * [[http://cxem.net/beginner/beginner96.php]] Операционный усилитель? Это очень просто! | ||
* [[http://usamodelkina.ru/7899-prostoy-analogovyy-datchik-zvuka-dlya-arduino-svoimi-rukami.html]] **Простой аналоговый датчик звука для Ардуино своими руками** | * [[http://usamodelkina.ru/7899-prostoy-analogovyy-datchik-zvuka-dlya-arduino-svoimi-rukami.html]] **Простой аналоговый датчик звука для Ардуино своими руками** | ||
+ | * [[https://myrobot.ru/forum/topic.php?forum=9&topic=126]] - микрофонный усилитель на LM358 | ||
* [[http://cxem.net/arduino/arduino146.php]] RGB светодиодная подсветка для пианино | * [[http://cxem.net/arduino/arduino146.php]] RGB светодиодная подсветка для пианино | ||
* [[http://chipmk.ru/index.php/12-izmerenie/160-prostoj-usilitel-termopary]] Простой усилитель термопары | * [[http://chipmk.ru/index.php/12-izmerenie/160-prostoj-usilitel-termopary]] Простой усилитель термопары | ||
* [[http://arduino.ru/forum/apparatnye-voprosy/milliampermetr-na-arduino]] Миллиамперметр на Ардуино. | * [[http://arduino.ru/forum/apparatnye-voprosy/milliampermetr-na-arduino]] Миллиамперметр на Ардуино. | ||
- | [[http://www.st.com/content/ccc/resource/technical/document/datasheet/61/46/87/01/98/ed/44/c5/CD00000464.pdf/files/CD00000464.pdf/jcr:content/translations/en.CD00000464.pdf]] - datasheet | + | * [[http://www.st.com/content/ccc/resource/technical/document/datasheet/61/46/87/01/98/ed/44/c5/CD00000464.pdf/files/CD00000464.pdf/jcr:content/translations/en.CD00000464.pdf]] - datasheet |
- | [[http://www.promelec.ru/catalog_info/54/134/541/331/]] - микрофоны | + | * [[http://www.promelec.ru/catalog_info/54/134/541/331/]] - микрофоны |
Строка 272: | Строка 327: | ||
http://easyelectronics.ru/ispolzovanie-oscillografa.html | http://easyelectronics.ru/ispolzovanie-oscillografa.html | ||
- | ===== ИГРЫ ===== | + | ====== ИГРЫ ====== |
* [[https://create.arduino.cc/projecthub/projects/tags/games]] - 18 games projects \\ | * [[https://create.arduino.cc/projecthub/projects/tags/games]] - 18 games projects \\ | ||
- | * [[https://create.arduino.cc/projecthub/sistemasymicros/bulls-and-cows-game-with-arduino-2139f0?ref=tag&ref_id=games&offset=8]] - Bulls and Cows Game with Arduino \\ | + | |
- | * [[https://create.arduino.cc/projecthub/cmbrooks/serial-pong-72670c?ref=tag&ref_id=games&offset=13]] - Playing a simple Pong game with two potentiometers connected to an Arduino. A Python script on a PC is reading data and displaying the game. \\ | + | ===== Bulls and Cows Game with Arduino ===== |
- | * [[http://www.instructables.com/id/Arduino-Simple-Memory-Game/]] - Arduino Simple Memory Game \\ | + | |
- | * [[https://www.arduboy.com/]] - Arduboy, the game system the size of a credit card. \\ | + | * [[https://create.arduino.cc/projecthub/sistemasymicros/bulls-and-cows-game-with-arduino-2139f0?ref=tag&ref_id=games&offset=8]] |
- | * [[http://jason-webb.info/2011/03/arduino-processing-workshop-helicopter-game/]] - Arduino + Processing Workshop – Helicopter Game | + | |
+ | ===== Playing a simple Pong game with two potentiometers connected to an Arduino. ===== | ||
+ | |||
+ | * [[https://create.arduino.cc/projecthub/cmbrooks/serial-pong-72670c?ref=tag&ref_id=games&offset=13]] A Python script on a PC is reading data and displaying the game. \\ | ||
+ | * http://help.ubuntu.ru/fullcircle/39/python_%D1%87_13 - Curses в Python | ||
+ | * https://pastebin.com/EluZ3T4P - Curses в Python пример | ||
+ | * http://laa88.blogspot.ru/2012/07/python-curses.html - Curses в Python | ||
+ | |||
+ | ===== Arduino Simple Memory Game ===== | ||
+ | |||
+ | * [[http://www.instructables.com/id/Arduino-Simple-Memory-Game/]] \\ | ||
+ | |||
+ | ===== Arduino + Processing Workshop – Helicopter Game ===== | ||
+ | |||
+ | * [[http://jason-webb.info/2011/03/arduino-processing-workshop-helicopter-game/]] | ||
- | ===== Учебные проекты ===== | + | ====== Учебные проекты ====== |
==== Широтно-импульсная модуляция ==== | ==== Широтно-импульсная модуляция ==== |