Standard PPM servo interface with matlab

Click For Summary

Discussion Overview

The discussion revolves around interfacing a standard PPM servo with MATLAB and Simulink, focusing on the technical challenges and solutions related to serial communication. Participants explore methods for sending commands to a servo and discuss related tools and experiences.

Discussion Character

  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant seeks assistance in opening a COM port in Simulink to control a servo using a device that converts PPM to serial USB.
  • Another participant shares their experience with using Parallax products and suggests contacting technical support for help.
  • A participant mentions receiving advice from tech support about sending serial information formatted with a specific string.
  • Questions arise about the use of dSpace as a potential alternative to Simulink for control mechanisms, with some participants providing vague explanations of its functionality.
  • One participant inquires about connecting Simulink to a Parallax motor and the feasibility of using a microcontroller via serial port.
  • A separate participant raises a different issue regarding a 2-D modeling problem in MATLAB, seeking a method to calculate the norm direction of a temperature gradient.

Areas of Agreement / Disagreement

Participants express varying levels of familiarity with tools like dSpace and MATLAB, leading to some confusion about their equivalence and functionality. There is no consensus on the best approach to interface with the servo or resolve the 2-D modeling problem.

Contextual Notes

Some participants express uncertainty about technical jargon and specific functionalities of the tools discussed, indicating a potential gap in knowledge or experience with certain aspects of the technology.

Who May Find This Useful

Individuals interested in interfacing MATLAB with hardware, particularly those working with servos and serial communication, as well as those dealing with 2-D modeling in MATLAB.

Cyrus
Messages
3,246
Reaction score
17
I need some help here. I need to have a standard PPM servo interface with MATLAB so that I can give it a command in simulink and have a response.

I found this device, which eliminates the need to use PPM in simulink.

http://www.parallax.com/detail.asp?product_id=28823

Basically, it takes the servo command and converts it to a serial USB port. Now, I need to know how do I open this com port in simulink and get it to work? I am not an EE, and I don't know how to do this. I have used the com port once before in matlab, but not simulink.

Any help, PLEASE!?

-this is what happens when an ME takes an EE lab course. It hits the fan. :frown:
 
Last edited by a moderator:
Physics news on Phys.org
I had to help come up with a microcontroller for my senior design project, and being an ME I had no idea where to start. But, I will tell you I came out with a very robust design using Parallax products and talking to their technical support people who are very knowledgeable. I would definitely try calling tech support and see if they can help.
 
I called the guy on the phone. He says all I need to do is open a com port and send it serial information through a string with a ! and a carrage return.

Lets hope it works. I rush ordered one today. Should be here tomorrow. If I can't get this to work, I am in big trouble.
 
No, just matlab. Is dSpace an equivalent to Simulink?
 
cyrusabdollahi said:
No, just matlab. Is dSpace an equivalent to Simulink?
You write your control mechanism in simulink (incl. filters, modulation etc.) and compile it in dSpace -- you can add nobs and buttons in a nice gui which controls your apparutus through the dSpace interface -- through BNC (sp?) cables.

Sorry for being a bit vague on the technicalities -- I've used it a lot but am not so clued up on the jargon.
 
@cyrusabdollahi

How do you try to connect Simulink to paralax motor?
Can this using microcontoller via serial port?
 


J77 said:
You write your control mechanism in simulink (incl. filters, modulation etc.) and compile it in dSpace -- you can add nobs and buttons in a nice gui which controls your apparutus through the dSpace interface -- through BNC (sp?) cables.

Sorry for being a bit vague on the technicalities -- I've used it a lot but am not so clued up on the jargon.


Regarding dSpace

Do you know how to use the Serial UART (RS232) in dSpace? I am trying to use a sensor which gives data for RS232 in ASCII format. I tried using Serial UART of dSpace but it gives numbers which don't make sense..
 


I have a 2-D modeling problem. I used Matlab pdetool to solve a 2-D axisymmetric problem. pdetool gives T (temperature) distribution and grad(T) distribution. What I need is the surface flux (in the norm) direction. My shape is irregular (like half of an egg shell). Matlab's quiver will not provide this. Is there a function somewhere that I can use to get the norm component of grad(T) generated by pdetool? Maybe I can use a function somewhere to calculate the norm direction first. This kind of problems must have been solved in some application areas already.

Thanks!
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
25K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 11 ·
Replies
11
Views
17K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
12K