Graphing a digit oscillating signal

In summary, the conversation is about graphing a digital oscillating signal and understanding the concept of pulse width. The speaker mentions using a servo motor as an example and explains how the frequency and duty cycle affect the motor's movement. They also mention using Excel to simulate the signal and express frustration with having to graph it for a lab assignment. The conversation ends with the speaker stating that they are starting to understand the concept better.
  • #1
Mr. Hiyasaki
9
0
How would I go about graphing a digtal oscillating signal? I don't quite understand what a pulse width is, or rather how to find it given only the oscillation in Hz and a duty cycle. I understand that the duty cycle is the ratio of the pulse width over the total period, but i don't understand what the pulse width or the period is for a digital signal.
 
Physics news on Phys.org
  • #2
I'm not sure I fully understand the question. One could view a square wave as a "digital oscillating signal", and surely there's no problem with graphing that? The pulse width in that case would simply be the width of one of the "peaks".

What kind of signal are you dealing with? And, while this may seem an odd question, why are you graphing it? Wouldn't an oscilloscope be an easier way to handle it?
 
  • #3
I'll try to help you, but I should start by saying that I've only encountered this is programming a servo motor, so I'm not sure if what I'm about to say will help you much.

A servo motor is a motor that works by taking a digital oscillating signal and translating that into a certain angle. This can be useful for, say, programing a robotic arm - something that needs a motor with angular position control rather than speed control.

So when I had to program my chip to control the servo motor, I needed to make it send a digital oscillating signal. The servo motor read in a certain frequency. My chip will send a signal for a while and then start over. I want the time that my chip starts over to be the same as the period (1/frequency). Now that I have the frequency, the thing that tells the motor how much to turn is determined by how long during each period that signal is high. This is called the duty or pulse width. For example, say if I were to keep the signal low all the time, the servo motor would be at 0 degrees. But if I tell the chip to make that signal high during the first half of each period (so the signal would be high-low-high-low etc in equal increments), then the motor would turn 180 degrees. Since the amount of time that I leave the signal high is dependant on the period (half the period for 180 degrees, maybe 3/4 of a period for 270 degrees) we talk about duty cycles in terms of the percent of the whole period.

Here's a site that might help.
http://www.seattlerobotics.org/encoder/apr98/68hc12pwm.html
 
  • #4
for example:
Simulate the digital signal in microsoft excel:
the signal oscillates at 100 hz and alternates between 0 and 5 volts with a duty cycle of 50%

I have no idea why I have to do these sorts of graphs to be quite honest. I was given a lab where I had to construct a Pulse Width Modulation motor speed control. It involved measuring resistance and speed of the robot, then at the end they throw in a couple of random questions asking us to graph a bunch of these signals in excel. I guess it sort of relates because that is how the pwm works, but it wasn't something that was covered. There is no useful book for the class, so I have been searching for the past few days trying to figure this out.[EDIT:]
I think I am figuring it out. For that example a 100 Hz frequency gives me a period of 10 ms, and a pulse width of 5ms since my duty cycle is 50%. My high being 5 volts and my low being 0 volts.

Once i figured out what everything was this isn't too bad.

thanks for your help
 
Last edited:

FAQ: Graphing a digit oscillating signal

1. What is a digit oscillating signal?

A digit oscillating signal is a graphical representation of a signal that changes between two distinct values over a period of time. It can be represented by a series of discrete data points, each corresponding to a specific time interval.

2. How is a digit oscillating signal graphed?

To graph a digit oscillating signal, a time axis is plotted on the horizontal axis and the signal values are plotted on the vertical axis. The discrete data points are then connected to create a waveform.

3. What is the purpose of graphing a digit oscillating signal?

Graphing a digit oscillating signal allows for visualization and analysis of the signal's behavior over time. It can also be used to identify patterns or trends in the data.

4. How can the frequency and amplitude of a digit oscillating signal be determined from its graph?

The frequency of a digit oscillating signal can be determined by calculating the number of cycles (or complete oscillations) per unit of time. The amplitude can be determined by measuring the distance between the highest and lowest points on the graph.

5. What are some common applications of digit oscillating signals in science?

Digit oscillating signals are commonly used in fields such as physics, engineering, and biology to study and analyze various phenomena. They can be used to measure and monitor physical quantities such as sound, electricity, and biological processes. In addition, they are also used in communication systems, digital signal processing, and data analysis.

Back
Top