Asked — Edited

Creating A Complete Application For Ez-Robot

I am trying to learn to program EZ-Robot (https://synthiam.com/shop/) using VB.NET. I have downloaded the SDK, but the examples it included didn't really look like they did much, and the SDK documentation (https://synthiam.com/SDK/) didn't seem very helpful. I would like to see a complete example that includes input from several of the servos as well as sends commands to some of them. Does anybody know of anywhere that I can view or download a complete example that includes input from and output to several servos? Thanks.


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

PRO
Synthiam
#1  

Hello, we do not have many examples for VB because none of us use Visual Basic. However, the C# application folder has almost 50 examples. Each example is a different control of ARC. Enjoy :)

#2  

OK, I guess those do have a little more in them, but I still couldn't find an example that seemed to show all the steps to the stuff. For example, I was looking at the Tutorial 1 - Modified servo project, and it included a button called btnForward that had an event handler assigned to it as follows:

this.btnForward.Click += new System.EventHandler(this.btnForward_Click);

But I could not find a method named btnForward_Click anywhere. One of the things I wanted to see was the code that sends the commands to EZ-Robot. Do any of the examples show how to send commands to and receive input from the servos?

Ecuador
#3  

for example you can write

EZB.Servo.SetServoPosition(ServoPortEnoum.d0, 50); EZB.Servo.SetServoPosition(ServoPortEnoum.d1, 50); EZB.Servo.SetServoPosition(ServoPortEnoum.d2, 50); EZB.Servo.SetServoPosition(ServoPortEnoum.d3, 50); EZB.Servo.SetServoPosition(ServoPortEnoum.d4, 50);

Try it! you have to try it first a learn... :)

PRO
Synthiam
#4  

@njsokalski Visual studio creates 2 code files for a form. One is the form's designer file, the other is the form's application code. The designer file contains the code that creates the GUI Buttons, Labels, etc.. The other application code file contains the user code (for example, the method you are asking about).

To begin using Visual Studio, please start with tutorials such as this: http://msdn.microsoft.com/en-us/library/dd492171.aspx

That will help you learn Visual Studio:) Good luck! And enjoy the ~50 examples within EZ-SDK. With every release of the SDK, more examples are added :)

#5  

What is the name of the file that contains the method I was asking about, I don't see that method in any of the files? None of the files that I see in the tutorial contain that method. Thanks.

Belgium
#6  

Hi,

Actually I'm using VB all the time and I must say it does everthing it needs to do for controlling my robot. Ok, sometimes I get desperate too, but after leaving the problem aside for a few days, suddenly it all comes out. Anyway, what exactely is your question ? Edison2 already gave away a few lines of code. What are you trying to read or control ?

Greetz,

PhG

#7  

I'm actually not trying to read or control anything right now, because I don't really have the hardware yet (I'm planning on getting it for Christmas), I'm just trying to get as familiar with the API as possible before then. Maybe it will be easier for me to learn the stuff once I actually have the hardware to do the testing with. Maybe it would be a good idea for me to just wait until then so I can give more detail about what I am doing while I'm creating an actual project and can look at the hardware at the same time. Thanks.

#8  

Hey Njsokalski

Have you created a complete application for the EZ-B robot?

I am interested in creating an entire application for EZ-B using Visual Studio. I also want to create more complex logic. Do you have any examples of an entire application in visual studio you could show us?

#9  

It is going to be MUCH Easier for you if you have an EZB to work with. Without EZB, you won't see your outputs, etc.

:)