<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Дерганье серво при отсутствии действий.]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=764&amp;type=atom" />
	<updated>2019-07-15T08:10:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=764</id>
		<entry>
			<title type="html"><![CDATA[Re: Дерганье серво при отсутствии действий.]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2295#p2295" />
			<content type="html"><![CDATA[<p>Проблема обсуждалась достаточно часто и давно. Повторюсь:<br />Библиотека Servo конфликтует с библиотекой SoftwareSerial, используются одни и те же прерывания.<br />Решение - перевести RemoteXY на аппаратный сериал.</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2019-07-15T08:10:10Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2295#p2295</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дерганье серво при отсутствии действий.]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2291#p2291" />
			<content type="html"><![CDATA[<p>Попробовал без сенсоршилда, дерганье не исчезло. Причем даже без использования RemoteXY. Управлял обычными потенциометрами, питание использовал внешнее.<br />Попробовал использовать 16-ти канальный драйвер PCA9685, дерганье стало поменьше, но не могу заставить серво двигаться плавно. <br />Продолжаем эксперименты...<br />PS. Монолог в виде заметок ученого получились XD</p>]]></content>
			<author>
				<name><![CDATA[den_vladimir]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=974</uri>
			</author>
			<updated>2019-07-11T03:06:09Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2291#p2291</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Дерганье серво при отсутствии действий.]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2290#p2290" />
			<content type="html"><![CDATA[<p>Попробовал управление сервой из примеров <a target="_blank" href="http://remotexy.com/ru/examples/servo/">http://remotexy.com/ru/examples/servo/</a><br />Тоже дергается. Может сенсор шилд. Попробую без него.</p>]]></content>
			<author>
				<name><![CDATA[den_vladimir]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=974</uri>
			</author>
			<updated>2019-07-10T05:02:31Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2290#p2290</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Дерганье серво при отсутствии действий.]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2289#p2289" />
			<content type="html"><![CDATA[<p>Сделал небольшой проект по управлению 4-х серво. <br />3 сервы управляются с джойстика. Последняя двумя кнопками.<br />Не пойму что не так. даже если в проекте вообще ничего не делать, а только прописать наличие серво-приводов в скейче, они постоянно дергаются на месте.<br />Использую Nano на сенсоршилде, Bluetoth HC-05, Servo SG90.<br />Проект сперва писал сам в IDE, потом решил попробовать написать в FLProg (вдруг ошибки). Даже добавить график на всякий случай, вдруг переменная угла меняется... Все чисто. Когда управляю джойстиком, серво крутится, но в тоже время продолжает дергаться...<br />Это проблема с блютузом или какие-то помехи от библиотеки ремоут-икс-игрек?</p><div class="codebox"><pre><code>#define REMOTEXY_MODE__SOFTSERIAL
#include &lt;SoftwareSerial.h&gt;
#include &lt;RemoteXY.h&gt;
#include &lt;Servo.h&gt;
Servo _SM1;
#define REMOTEXY_SERIAL_RX 10
#define REMOTEXY_SERIAL_TX 11
#define REMOTEXY_SERIAL_SPEED 9600
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = {4, 4, 66, 0, 8, 16, 0, 5, 32, 1, 29, 34, 34, 201, 16, 31, 1, 1, 56, 46, 40, 13, 1, 31, 208, 158, 209, 130, 208, 191, 209, 131, 209, 129, 209, 130, 208, 184, 209, 130, 209, 140, 0, 1, 1, 56, 27, 40, 13, 134, 31, 208, 146, 208, 183, 209, 143, 209, 130, 209, 140, 0, 68, 17, 1, 2, 97, 22, 8, 36};
struct {
  signed char joystick_1_x;
  signed char joystick_1_y;
  unsigned char btn_dismiss;
  unsigned char btn_catch;
  float onlineGraph_1;
  unsigned char connect_flag;
} RemoteXY;
#pragma pack(pop)
int _gtv1;
bool _changeNumber1_Out = 0;
int _changeNumber1_OLV;
void setup()
{
  RemoteXY_Init ();
  _SM1.attach(5);
}
void loop()
{ int _tempVariable_int;
  RemoteXY_Handler  ();
  //Плата:1
  RemoteXY.onlineGraph_1 = _gtv1;
  _gtv1 = (map(((RemoteXY.joystick_1_x)), (-100), (100), (0), (180)));
  if (_changeNumber1_Out) {
    _changeNumber1_Out = 0;
  } else {
    _tempVariable_int = (map(((RemoteXY.joystick_1_x)), (-100), (100), (0), (180)));
    if (_tempVariable_int != _changeNumber1_OLV) {
      _changeNumber1_OLV = _tempVariable_int;
      _changeNumber1_Out = 1;
    }
  }
  if (_changeNumber1_Out) {
    _SM1.write ((map(((RemoteXY.joystick_1_x)), (-100), (100), (0), (180))));
  }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[den_vladimir]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=974</uri>
			</author>
			<updated>2019-07-10T03:56:24Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2289#p2289</id>
		</entry>
</feed>
