Go to Post Building a 'bot is kinda like washing your hair, but instead of "rinse, lather, repeat"... you should "engineer, test, repeat". - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Motors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-12-2009, 01:51
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Motors as speakers?

Anyone who's ever worked on VEX, or turned on a camera flash, has dealt with the microphony effect. This is when a high-frequency changing magnetic field is induced in a wire due to an electrical wave, and the field opposes itself, causing the whole coil to vibrate. It's what makes that high-pitch whine when you turn a VEX motor on half-power, or charge a camera flash. So, knowing this effect exists, I was wondering if you could turn a motor into a speaker using PWM sound encoding.

The most common way of producing an analog signal on a microcontroller is using a PWM signal pulsed through a low-pass filter. Basically, an analog signal is represented by the duty-cycle of a high-frequency PWM wave (usually around 40 kHz), and the low-pass filter takes out the high-frequency, leaving a fairly good approximation of an analog voltage. Motors are inductive, and inductors were the first low-pass filters, and continue to be used for such purposes as RF chokes and some high-current audio equalizers. So what if you just used a motor as the low-pass filter, and encoded an audio signal into a PWM wave, say, through a motor controller. Would the motor make music, or would it be too high a load and cause too much interference?

Just food for thought. I don't think this would be possible through a servo signal motor controller, the updates to servos (and VEX motors) only happen once every 20 ms or so, so I think this would have to be done with a hardwired motor on a CCP port on the VEX if that were the platform being used. Maybe I'll try that if Santa brings an Arduino

Last edited by daltore : 21-12-2009 at 01:54.
  #2   Spotlight this post!  
Unread 21-12-2009, 01:59
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Motors as speakers?

The lean-steered Segways do this. The startup whoooooop noise is emitted by the motors.
  #3   Spotlight this post!  
Unread 21-12-2009, 02:05
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,510
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
Re: Motors as speakers?

http://hackaday.com/2009/04/18/laser...io-bros-theme/
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004
  #4   Spotlight this post!  
Unread 21-12-2009, 02:07
Tristan Lall's Avatar
Tristan Lall Tristan Lall is offline
Registered User
FRC #0188 (Woburn Robotics)
 
Join Date: Aug 2001
Rookie Year: 1999
Location: Toronto, ON
Posts: 2,484
Tristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond repute
Re: Motors as speakers?

Some brushless DC motor speed controllers for model aircraft do this as well. For example, Schulze future-universal controllers cause the motor to chirp as a way of indicating the calibration status.
  #5   Spotlight this post!  
Unread 21-12-2009, 02:33
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: Motors as speakers?

Quote:
Originally Posted by sanddrag View Post
I think that's using stepper motors, which is a slightly different angle than what I'm looking for. Making sound with steppers is more about turning on coils at crests and troughs, not producing multiple crests and troughs in the same coil in sequence.

Anybody know how fast the CAN's on the Jaguars update?
  #6   Spotlight this post!  
Unread 21-12-2009, 07:49
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Motors as speakers?

Quote:
Originally Posted by daltore View Post
Anyone who's ever worked on VEX, or turned on a camera flash, has dealt with the microphony effect. This is when a high-frequency changing magnetic field is induced in a wire due to an electrical wave, and the field opposes itself, causing the whole coil to vibrate. It's what makes that high-pitch whine when you turn a VEX motor on half-power, or charge a camera flash.
Not exactly, what you are hearing are two different things. The high frequency you hear in a flash charging is the actual oscillator used in the DC-DC converter. It changes frequency because the feedback that causes oscillation is dependent on load current. As the capacitor charges the load current becomes less so the frequency rises.
The Vex motor whine could be a variety of things but is most likely the windings in the motor moving or the laminations of the armature reacting to the PWM input. Manufacturers of small, cheap components rarely dip the coils to prevent individual wires from moving in the magnetic field. Moving laminations is something we all just learn to live with. There is greater acoustic output from a motor when using the IFI 844 Victors because the switching frequency (150Hz) is so low compared to Jaguars (15kHz). Old 883 Victors switched at about 2kHz and made some nice whine when used in the past.
Motors have been used to drive speaker cones directly. But since there is so much mass to move, they have been relegated to very low frequencies such as large sub-woofers.
As to microphony effect, I think what you may be referring to is "microphonics". This is an effect wherein acoustic energy adds noise to a stable signal. Vacuum tubes were particularly sensitive to microphonic if tapped or if present in a large signal acoustic environment. Modulation of video was also a microphonic effect in cameras prior to the 1990's when used on music shows with loud PA systems. CCD cameras have nothing to move in the pickup so they are not sensitive to microphonics.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 21-12-2009 at 07:54.
  #7   Spotlight this post!  
Unread 21-12-2009, 13:43
Tanner's Avatar
Tanner Tanner is offline
Registered User
FRC #1261 (Roblions)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Suwanee, GA
Posts: 311
Tanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to behold
Re: Motors as speakers?

Quote:
Originally Posted by EricVanWyk View Post
The lean-steered Segways do this. The startup whoooooop noise is emitted by the motors.
Stick shake is made the same way as well.

-Tanner
  #8   Spotlight this post!  
Unread 21-12-2009, 14:18
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Motors as speakers?

Quote:
Originally Posted by Al Skierkiewicz View Post
Not exactly, what you are hearing are two different things. The high frequency you hear in a flash charging is the actual oscillator used in the DC-DC converter. It changes frequency because the feedback that causes oscillation is dependent on load current. As the capacitor charges the load current becomes less so the frequency rises.
As a cool side note:

Ceramic capacitors have a slight piezoelectric effect. They make very good (obnoxious) speakers in these sorts of circuits. They also make electrical noise when you tap on them.
  #9   Spotlight this post!  
Unread 21-12-2009, 14:34
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: Motors as speakers?

Quote:
Originally Posted by EricVanWyk View Post
As a cool side note:

Ceramic capacitors have a slight piezoelectric effect. They make very good (obnoxious) speakers in these sorts of circuits. They also make electrical noise when you tap on them.

Has anyone built a circuit designed solely to play tunes based on these effects?
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
  #10   Spotlight this post!  
Unread 21-12-2009, 19:50
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: Motors as speakers?

Quote:
Not exactly, what you are hearing are two different things. The high frequency you hear in a flash charging is the actual oscillator used in the DC-DC converter. It changes frequency because the feedback that causes oscillation is dependent on load current. As the capacitor charges the load current becomes less so the frequency rises.
I was under the impression that microphony referred to the effect you're describing. I guess it's sometimes called a "reverse microphonic" effect. But in any case, I know how the effect works, I just don't know what it's called. The two phenomena are essentially the same, there's a high-frequency electrical oscillation in both cases which causes the physical coils to vibrate.
  #11   Spotlight this post!  
Unread 22-12-2009, 07:54
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Motors as speakers?

Aaron,
The terms "microphonic" or "microphony" imply that the device is receiving acoustic energy and converting it into a signal, or noise and distortion in an existing signal. In the cases I was describing, the components themselves are reacting with the surrounding air or vibrating parts within the component to produce sound. In the case of magnetic devices like transformers or motors, the changing fields in the audio spectrum can either move the parts of the device to produce sound or move the entire device to produce sound. It is not uncommon for a transformer winding to become loose on it's core and vibrate at the frequency (or sub harmonic) of the signal that is passing through it. Capacitors have been known to also produce sound, particularly those that have aged and have microscopic spaces between the plates. As has been pointed out, ceramic capacitors have a slight piezoelectric effect and can physically distort with applied signal.
High quality audio transformers take care of many of the problems related with transformers by dipping the cores in a some adhesive (usually a high temperature varnish), using specific winding techniques for the wires and then securing all components of the transformer so that nothing moves when it is installed. In some transformers it is also necessary to enclose the transformer in a magnetic shield to prevent magnetic coupling with other components in the same equipment.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #12   Spotlight this post!  
Unread 23-12-2009, 11:46
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Motors as speakers?

Related to this, years ago, an NI customer was demonstrating what they make/control with LV. They make magnetic bearings for rotating shafts and are able to monitor and actively dampen all sorts of disturbances even large ones such as when a compressor turbine loses a blade. Anyway, the presentation included a magnetically supported aluminum shaft they'd attached small pieces of sticky putty to. The DSP controlled device compensated for the imbalance at several kRPM and charted the forces needed to balance onscreen. More impressively, when they shaved the material off with a business card, it rebalanced within a few milliseconds.

For the next part of the presentation, he spun the well balanced shaft to around 15 kRPM and attached a cable to something in his pocket. We sat there waiting for something to happen, and started to hear a buzzing that became somewhat rhythmic. It grew louder and changed in pitch, and then recognition set in. It was a Led Zeppelin intro and the dampening field they normally used to balance the shaft was now being used to drive the shaft to produce the acoustic signal. He had connected the cable to a walkman in his pocket, and the DSP was being asked to cancel that signal. The buzzing was the distorted guitar chords, and while the response if this "speaker" was anything but flat, it was good enough with the mid and high end of the spectrum that you could make out the song and everyone got a chuckle out of it.

Greg McKaskle
  #13   Spotlight this post!  
Unread 23-12-2009, 11:53
IKE's Avatar
IKE IKE is offline
Not so Custom User Title
AKA: Isaac Rife
no team (N/A)
Team Role: Mechanical
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Michigan
Posts: 2,149
IKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond repute
Re: Motors as speakers?

Only slightly related, I once saw a demo for Active engine mounts used to counteract engine vibration in some vehicles. During the demo, they played Metallica through the mount.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Motors, Motors, and More Motors 1033missions Motors 1 09-02-2006 18:46
Help me raise amplify some speakers mechanicalbrain Electrical 4 27-10-2005 21:46
Getting PocketPC audio to play on truck's speakers sanddrag IT / Communications 1 26-10-2005 22:25
Motors.. and more motors.. How many on your 2004 bot? OneAngryDaisy Motors 33 23-02-2004 00:46
Matching Drill Motors and Fischer-Price Motors archiver 2001 5 24-06-2002 00:51


All times are GMT -5. The time now is 05:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi