Go to Post ...if most of the money comes from sponsors, I have a bit of a problem letting them [the students] charge off a cliff with it. - TimCraig [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 22-12-2010, 17:27
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
bells, buzzers, and whistles

I'm currently using my cRIO as a test bench, as opposed to driving it around like an RC car.
I thought it'd be fun if it made a "ding" when it finishes a test. (a buzz or a beep would be fine too; some kind of distinct sound)

What's a good way to do this?
These are the options I see:
  • wire something up to a solenoid output (requires the robot to be enabled)
  • create a circuit to amplify a digital output and wire up a buzzer or beeper to that

I suppose if there's something over SPI or I2C, that could work as well. I'm using the RS232 port for CAN.
__________________
-- Marshal Horn
  #2   Spotlight this post!  
Unread 23-12-2010, 01:20
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: bells, buzzers, and whistles

Maybe a piezo buzzer? Could control it using a relay off of a DIO or relay port, or could probably use a solenoid port directly.

http://www.radioshack.com/product/in...ductId=2062395 (I think this one is a buzzer; have to make sure that it has the tone generator circuit and isn't just the piezo element by itself)

--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
  #3   Spotlight this post!  
Unread 23-12-2010, 01:36
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: bells, buzzers, and whistles

Thanks!
It says 300-500hz, so I'm guessing it includes a switcher.
Apparently the digital module can put out 64mA, but I think I'll use a small transistor to amplify it. 6V*20mA = 120mW. A 2N2222 should do fine, but I hope the buzzer will run on 5V.
__________________
-- Marshal Horn
  #4   Spotlight this post!  
Unread 24-12-2010, 01:05
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: bells, buzzers, and whistles

Quote:
Originally Posted by kamocat View Post
It says 300-500hz, so I'm guessing it includes a switcher.
Apparently the digital module can put out 64mA, but I think I'll use a small transistor to amplify it. 6V*20mA = 120mW. A 2N2222 should do fine, but I hope the buzzer will run on 5V.
My experience with these is they include very rudimentary, very noisy types of signal generators (see one person's teardown), so I suspect the range is in fact a range, and the frequency depends on the specific amount of voltage/current being supplied to the device, environmental factors, etc. 5 volts should work fine.

--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
  #5   Spotlight this post!  
Unread 27-12-2010, 13:32
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,756
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: bells, buzzers, and whistles

I was looking to do this about a year ago, and ended up connecting a solenoid and a bell. A bit limiting, but easy and kinda retro-cool.

Greg McKaskle
  #6   Spotlight this post!  
Unread 27-12-2010, 14:23
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: bells, buzzers, and whistles

Quote:
Originally Posted by kamocat View Post
I'm currently using my cRIO as a test bench, as opposed to driving it around like an RC car.
I thought it'd be fun if it made a "ding" when it finishes a test. (a buzz or a beep would be fine too; some kind of distinct sound)

What's a good way to do this?
Could you just connect a digital or PWM directly up to a small tweeter? That ought to be sufficiently annoying to grab your attention.


  #7   Spotlight this post!  
Unread 27-12-2010, 15:48
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,798
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: bells, buzzers, and whistles

You can connect a small speaker and a 555 timer to make a cheap beeper. Radio Shack had a three wire piezo on the shelf for a long time. This would self oscillate or could be connected with a 2N2222 for feedback operation. The feedback made it highly efficient. I could not find it on their website though.
As Ether pointed out, a digital output could make a nice beeper if you couple it to an LM386 or equivalent and a speaker.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #8   Spotlight this post!  
Unread 27-12-2010, 15:59
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: bells, buzzers, and whistles

Do you think it makes a difference in this case if I use a linear op-amp vs a transistor? I would expect them to perform the same if there's only 2 states: 0v and 5v.

How do you determine the capacitor size? (Because the GPIO are pulled high, I could burn up the speaker without a capacitor if I was running a program that didn't set that channel low. I suppose the other way would be to use a MOSFET. I have plenty of those from Jaguar's I've burnt up.)

EDIT:
I've never heard of a piezoelectric speaker having 3 wires. How does that work?
__________________
-- Marshal Horn

Last edited by kamocat : 27-12-2010 at 16:10.
  #9   Spotlight this post!  
Unread 27-12-2010, 16:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: bells, buzzers, and whistles

Quote:
Originally Posted by Al Skierkiewicz View Post
As Ether pointed out, a digital output could make a nice beeper if you couple it to an LM386 or equivalent and a speaker.
Here's another thought:

Could you just connect the tweeter to the RTS or DTR pin of the cRIO's RS232 port and toggle it at a sufficiently annoying frequency? (like perhaps the tweeter's resonant frequency - if it's low enough to hear :-)



Last edited by Ether : 27-12-2010 at 16:24.
  #10   Spotlight this post!  
Unread 27-12-2010, 21:40
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,798
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: bells, buzzers, and whistles

I suggested the LM386 since it is designed for low impedance loads. A speaker connected across one of the digital outputs will likely exceed the current rating on the driver trying to sink current with an 8 ohm load. A 1mmf/16v electrolytic cap in series with the input should handle most frequencies you send it. The chip is self biased for single polarity power and can operate down to 4 volts.
If you are using one of the piezo devices, a simple single transistor driver should work fine.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #11   Spotlight this post!  
Unread 27-12-2010, 22:30
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,370
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: bells, buzzers, and whistles

Do you remember Monty Python's "The Meaning of Life" movie. The pregnant woman in the delivery room and the machine that goes "PING". You should have your own machine that goes "PING". I like machines that go "PING". They intimidate non-techies.
  #12   Spotlight this post!  
Unread 27-12-2010, 22:52
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: bells, buzzers, and whistles

Quote:
Originally Posted by Al Skierkiewicz View Post
A speaker connected across one of the digital outputs will likely exceed the current rating on the driver trying to sink current with an 8 ohm load.
Yeah, it might not be able to source enough current to an 8 ohm load to be as loud as you might want.

It shouldn't hurt the transceiver though. RS-232 drivers and receivers must be able to withstand indefinite short circuit to ground or to any voltage level up to ±25 volts.



  #13   Spotlight this post!  
Unread 28-12-2010, 09:56
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,798
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: bells, buzzers, and whistles

The 9403 module is limited to 2 ma per output. Which transceiver are you referring to?
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #14   Spotlight this post!  
Unread 29-12-2010, 21:24
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: bells, buzzers, and whistles



I was referring to the RTS pin on the cRIO's RS232 port.

On the PCs I have tested here, I can connect a small speaker directly to the RS232 port's RTS pin and -- by toggling the RTS line at an appropriate frequency -- get a sound loud enough to grab your attention from across a large room.


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
Thanks to 1742 and 1209/Congrats to 2410, 935, and 1987 vhcook Thanks and/or Congrats 4 28-03-2010 15:50
Boilermaker Regional - WFFA and Volunteer Award and the Trio! Chris Fultz Thanks and/or Congrats 1 21-03-2010 14:05
Congratulations and Thank you to Team 341, 694 and 3204! AnibaS Thanks and/or Congrats 2 18-03-2010 07:40
Code Errors With "Bells and Whistles" Ryan O Programming 2 31-01-2006 19:29
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07


All times are GMT -5. The time now is 20:52.

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