<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.umki-kit.ru/wiki/index.php?action=history&amp;feed=atom&amp;title=1930plasteac</id>
	<title>1930plasteac - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.umki-kit.ru/wiki/index.php?action=history&amp;feed=atom&amp;title=1930plasteac"/>
	<link rel="alternate" type="text/html" href="http://wiki.umki-kit.ru/wiki/index.php?title=1930plasteac&amp;action=history"/>
	<updated>2026-04-16T10:41:42Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.39.4</generator>
	<entry>
		<id>http://wiki.umki-kit.ru/wiki/index.php?title=1930plasteac&amp;diff=635&amp;oldid=prev</id>
		<title>Woronin в 13:59, 16 января 2024</title>
		<link rel="alternate" type="text/html" href="http://wiki.umki-kit.ru/wiki/index.php?title=1930plasteac&amp;diff=635&amp;oldid=prev"/>
		<updated>2024-01-16T13:59:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 16:59, 16 января 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Строка 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//   https://chapelierfou.org/2017/04/plasteac-enhancements/&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//   https://chapelierfou.org/2017/04/plasteac-enhancements/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//   https://vimeo.com/214493309&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//   https://vimeo.com/214493309&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//    https://disk.yandex.ru/d/LwFjnGB7dctMHg  - полный архив файлов. Подправить массив servoPins[4] - на 4 присоединенных мотора&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woronin</name></author>
	</entry>
	<entry>
		<id>http://wiki.umki-kit.ru/wiki/index.php?title=1930plasteac&amp;diff=634&amp;oldid=prev</id>
		<title>Woronin: Новая страница: «&lt;syntaxhighlight lang=&quot;C++&quot;&gt; // //  2024.01.16  umkiedu@gmail.com   //  Танцующий робот на 4-х сервомоторах Plasteac //   https://chapelierfou.org/2017/04/plasteac-a-dancing-teapot/ //   https://chapelierfou.org/2017/04/plasteac-enhancements/ //   https://vimeo.com/214493309 //  // ---------- Pin setup ---------- const int servoPins[4] = {9, 6, 7, 8}; const int speakerPin = 12;	// connected to a piezzo speaker  // -------- Servo...»</title>
		<link rel="alternate" type="text/html" href="http://wiki.umki-kit.ru/wiki/index.php?title=1930plasteac&amp;diff=634&amp;oldid=prev"/>
		<updated>2024-01-16T13:48:52Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «&amp;lt;syntaxhighlight lang=&amp;quot;C++&amp;quot;&amp;gt; // //  2024.01.16  umkiedu@gmail.com   //  Танцующий робот на 4-х сервомоторах Plasteac //   https://chapelierfou.org/2017/04/plasteac-a-dancing-teapot/ //   https://chapelierfou.org/2017/04/plasteac-enhancements/ //   https://vimeo.com/214493309 //  // ---------- Pin setup ---------- const int servoPins[4] = {9, 6, 7, 8}; const int speakerPin = 12;	// connected to a piezzo speaker  // -------- Servo...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;C++&amp;quot;&amp;gt;&lt;br /&gt;
//&lt;br /&gt;
//  2024.01.16  umkiedu@gmail.com  &lt;br /&gt;
//  Танцующий робот на 4-х сервомоторах Plasteac&lt;br /&gt;
//   https://chapelierfou.org/2017/04/plasteac-a-dancing-teapot/&lt;br /&gt;
//   https://chapelierfou.org/2017/04/plasteac-enhancements/&lt;br /&gt;
//   https://vimeo.com/214493309&lt;br /&gt;
//&lt;br /&gt;
&lt;br /&gt;
// ---------- Pin setup ----------&lt;br /&gt;
const int servoPins[4] = {9, 6, 7, 8};&lt;br /&gt;
const int speakerPin = 12;	// connected to a piezzo speaker&lt;br /&gt;
&lt;br /&gt;
// -------- Servo offsets --------&lt;br /&gt;
const int leftHipOffset  = 5;&lt;br /&gt;
const int rightHipOffset = 5;&lt;br /&gt;
const int leftFootOffset  = 10;&lt;br /&gt;
const int rightFootOffset = 10;&lt;br /&gt;
&lt;br /&gt;
// ------------- BPM -------------&lt;br /&gt;
long bpm = 120L;&lt;br /&gt;
&lt;br /&gt;
// I'm a little teapot&lt;br /&gt;
//const char melody[] = &amp;quot;4C42D44E42F46G46C56A46C56G46R06F44F42G46E46E46D44D42E46C46R07C52A44G42G46F46E46D46C46R0&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// Tetris&lt;br /&gt;
const char melody[] = &amp;quot;4E52B42C54D52C52B44A42A42C54E52D52C56B42C54D54E54C54A42A42A42B42C56D52F54A52G52F56E52C54E52D52C54B42B42C54D54E54C54A44A44R0&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
#include &amp;quot;move.h&amp;quot;&lt;br /&gt;
#include &amp;quot;melody.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
void sync()&lt;br /&gt;
{&lt;br /&gt;
  // Given set BPM, delay until the next quarter of a beat&lt;br /&gt;
  static unsigned long lastMillis = 0;&lt;br /&gt;
  unsigned long duration = 60000L/(bpm*4);&lt;br /&gt;
  long leftMillis = lastMillis + duration - millis();&lt;br /&gt;
  if(leftMillis &amp;gt; 0) delay(leftMillis);&lt;br /&gt;
  lastMillis = millis();&lt;br /&gt;
  &lt;br /&gt;
  // Update melody&lt;br /&gt;
  syncMelody();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  // Init serial&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
&lt;br /&gt;
  // Init legs&lt;br /&gt;
  initialize();&lt;br /&gt;
&lt;br /&gt;
  delay(4000);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() &lt;br /&gt;
{&lt;br /&gt;
  playMelody(melody, false);&lt;br /&gt;
  stand_rythm(2);&lt;br /&gt;
  side_left(2);&lt;br /&gt;
  hello_left(1);&lt;br /&gt;
  walk(2);&lt;br /&gt;
&lt;br /&gt;
  playMelody(melody, false);&lt;br /&gt;
  stand_rythm(2);&lt;br /&gt;
  side_right(2);&lt;br /&gt;
  hello_right(1);&lt;br /&gt;
  walk(2);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Категория:Видео эпизоды УМКИ]]&lt;br /&gt;
[[Категория:Примеры программирования Arduino]]&lt;/div&gt;</summary>
		<author><name>Woronin</name></author>
	</entry>
</feed>