﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>RoboticsConnection User Forum / RoboticsConnection Software Support / Serializer .NET Library  / Servo controll / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>RoboticsConnection User Forum</description><link>http://www.roboticsconnection.com/userForums/</link><webMaster>info@roboticsconnection.com</webMaster><lastBuildDate>Thu, 04 Dec 2008 13:16:03 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Servo controll</title><link>http://www.roboticsconnection.com/userForums/Topic334-6-1.aspx</link><description>I noticed you have referenced the Serializer Compact Library (RoboticsConnection.Serializer.CompactFramework), instead of the Serializer Library (RoboticsConnection.Serializer) for this app. Is this for a CE device?  &lt;/P&gt;&lt;P&gt;You probably want to peform PumpEvents() before doing anything else in the timer1_Tick() handler.&lt;/P&gt;&lt;P&gt;Decrease your timer1 period down to around 10msec (from 100), this will make it snappier.&lt;/P&gt;&lt;P&gt;Best Regards,</description><pubDate>Wed, 23 Apr 2008 11:15:09 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: Servo controll</title><link>http://www.roboticsconnection.com/userForums/Topic334-6-1.aspx</link><description>Hi I have now a Programm thas works. There is only one thing.&lt;/P&gt;&lt;P&gt;The Programm is slow. The Action of the switch on the board, or Pressing a Button from the&lt;/P&gt;&lt;P&gt;keyboard works with some time lag. sometimes the start from the Motor has a time lag of 2 -3 seconds.&lt;/P&gt;&lt;P&gt;The Button in the Programm starts the Motor, The switch on Pin1 set the Servo on ServoPin1 to Servopositon 0; &lt;/P&gt;&lt;P&gt;    Pressing 'd' servoposition +2&lt;/P&gt;&lt;P&gt;    Pressing 'a' servoposition -2&lt;/P&gt;&lt;P&gt;it would be super when someone have a little Programm for me, to so what I make wrong.</description><pubDate>Tue, 22 Apr 2008 10:20:46 GMT</pubDate><dc:creator>Silvermatrix</dc:creator></item><item><title>RE: Servo controll</title><link>http://www.roboticsconnection.com/userForums/Topic334-6-1.aspx</link><description>Silvermatrix,&lt;/P&gt;&lt;P&gt;I understand the problem you are trying to resolve...I just need your latest solution so I can look at it.  The solution you posted doesn't have the button in it, so it must be old.   I didn't see a new solution in your last post either.&lt;/P&gt;&lt;P&gt;I'll get a working solution posted tomorrow for you to use.&lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Wed, 16 Apr 2008 07:13:53 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: Servo controll</title><link>http://www.roboticsconnection.com/userForums/Topic334-6-1.aspx</link><description>Hi this is my testversion. In this there is a Button at Pin1. When i Press the Button the Motor starts.&lt;/P&gt;&lt;P&gt;At the same time the servo should go to position +50. When I stop pressing the Button the motor should stop, and the servo&lt;/P&gt;&lt;P&gt;should go to position -50.&lt;/P&gt;&lt;P&gt;When I inactivate the servo.positon.....  the motor starts and stops. When the servo position ist activatet, the servo runs first time in the Position. The Motor don´t start or stop. After the first move from the servo nothing goes longer.&lt;/P&gt;&lt;P&gt;This is only for testing. In my Programm which show all input and outputs, the programm is without a servo.&lt;/P&gt;&lt;P&gt;Because I hope it´s easier to find the error in a small Programm.</description><pubDate>Tue, 15 Apr 2008 09:12:15 GMT</pubDate><dc:creator>Silvermatrix</dc:creator></item><item><title>RE: Servo controll</title><link>http://www.roboticsconnection.com/userForums/Topic334-6-1.aspx</link><description>The solution you sent must be incomplete.  There aren't any buttons on the form (or in the code), nor button event handlers to make it act like you describe.  Was this an older solution?&lt;/P&gt;&lt;P&gt;Best Regards,</description><pubDate>Mon, 14 Apr 2008 10:09:26 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: Servo controll</title><link>http://www.roboticsconnection.com/userForums/Topic334-6-1.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;I have attached the C# Programm and a Picture of  the conection. In so moment I practice only with a Motor, a Servo and a butten.&lt;/P&gt;&lt;P&gt;The Motor funktion is Ok. When I press the Button the motor stops. &lt;/P&gt;&lt;P&gt;But when I activate the Servo Controll in the Programm the servo runs first time in the position and after this the Button don´t work any longer.</description><pubDate>Mon, 14 Apr 2008 08:19:08 GMT</pubDate><dc:creator>Silvermatrix</dc:creator></item><item><title>RE: Servo controll</title><link>http://www.roboticsconnection.com/userForums/Topic334-6-1.aspx</link><description>Hey SilverMatrix,&lt;/P&gt;&lt;P&gt;Hmmm, your app looks correct at first glance...Could you please zip up and send me the solution.  It would be easier for me to find out why you're seeing the behavior you're seeing.&lt;/P&gt;&lt;P&gt;I will be able to get to it Tuesday, as we're in the middle of launching a new product right now...&lt;/P&gt;&lt;P&gt;Also, I moved this post form the Serializer Hardware section to the Serializer Software section.&lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Sun, 13 Apr 2008 07:26:54 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>Servo controll</title><link>http://www.roboticsconnection.com/userForums/Topic334-6-1.aspx</link><description>Hi in the moment I can make a simple Programm in which i can show the state of the Digital Pins, controll the LEDs and two Motors.&lt;P&gt;Now I have added a Servo on Servo Pin1. In the timer, where I controll a Motor with the Digital Pin1, I have added the Position argument for the Servo.&lt;/P&gt;&lt;P&gt;When I Start the Programm, the Servo goes first time to the positon. After this the Servo don´t work. At the same time I can´t controll the Motor with my Button.&lt;/P&gt;&lt;P&gt;When I delete the Servo.Position = 40; in my Programm, I can controll the Motor.&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Collections.Generic;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.ComponentModel;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Data;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Drawing;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Linq;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Text;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Windows.Forms;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Threading;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; RoboticsConnection.Serializer;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; RoboticsConnection.Serializer.Components;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; RoboticsConnection.Serializer.Controllers;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; RoboticsConnection.Serializer.Ids;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; RoboticsConnection.Serializer.Sensors;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;namespace&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; WindowsFormsApplication1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;partial&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;class&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;Form1&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; : &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;Form&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;Serializer&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; _s;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;PwmDCMotorController&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; _motor;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;ServoMotorController&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; _servo;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;GpioPin&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; _pin;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Form1()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;InitializeComponent();&lt;/P&gt;&lt;P&gt;_s = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;Serializer&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;();&lt;/P&gt;&lt;P&gt;_s.PortName = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"COM40"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/P&gt;&lt;P&gt;_s.BaudRate = 19200;&lt;/P&gt;&lt;P&gt;_s.CommunicationStarted +=&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;SerializerEventHandler&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(_s_CommunicationStarted);&lt;/P&gt;&lt;P&gt;_motor = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;PwmDCMotorController&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(_s);&lt;/P&gt;&lt;P&gt;_motor.DCMotorId = &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;DCMotorId&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.DCMotor1;&lt;/P&gt;&lt;P&gt;_motor.Speed = 0;&lt;/P&gt;&lt;P&gt;_pin = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;GpioPin&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(_s);&lt;/P&gt;&lt;P&gt;_pin.Pin = &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;GpioPinId&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Pin1;&lt;/P&gt;&lt;P&gt;_pin.Enabled = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/P&gt;&lt;P&gt;_servo = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;ServoMotorController&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(_s);&lt;/P&gt;&lt;P&gt;_servo.ServoMotorId = &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;ServoMotorId&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.ServoMotor1;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;// _servo.Position = 0;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;_s.StartCommunication();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; _s_CommunicationStarted(&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;Serializer&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;timer1.Enabled = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/P&gt;&lt;P&gt;}&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; timer1_Tick(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;object&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender, &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;EventArgs&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; (_pin.State == &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;_motor.Speed = 80;&lt;/P&gt;&lt;P&gt;_servo.Position = 50;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; (_pin.State == &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;false&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;{ &lt;/P&gt;&lt;P&gt;_motor.Speed =0;&lt;/P&gt;&lt;P&gt;_servo.Position = -50;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;_s.PumpEvents();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Sat, 12 Apr 2008 02:53:12 GMT</pubDate><dc:creator>Silvermatrix</dc:creator></item></channel></rss>