Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 10:26 02 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Diodes with electro sounders?

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 03:14pm 04 Sep 2014
Copy link to clipboard 
Print this post

I have some nice cute little electro sounders:

SOUNDER

These do not have built-in drivers, so I am driving them with PWM from the uM, and they work fine.

As they are a 3v device, I am not using any buffer transistor, and am driving them direct from the uM pin, as the current consumption is supposed to be 14mA @ 2kHz or so, so feel that is still within the limits of the uM pin.

The sounder is not driven continuously, only for alerting purposes.

I currently have a reverse-blocking diode across the sounder to ground, a-la the same idea as a diode across a relay coil, but am wondering if this is needed with only a 14mA current or so?

At this stage, I have left it in place, but just wondering what others think.....

EDIT: Just double-checked the specs for the uM I/O pins, and I am probably pushing things a bit 15mA is the maximum, and 15mA is what this device uses at 3v. Perhaps it would be prudent to put a transistor driver in afterall?Edited by Grogster 2014-09-06
Smoke makes things work. When the smoke gets out, it stops!
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 03:40pm 04 Sep 2014
Copy link to clipboard 
Print this post

Cathode towards the uM pin right ? Sounder from pin to ground ?
I'd take it out, and put a capacitor in series.
(value depending on how low you want to go)
That will relieve the pin of delivering DC if it happens to go high.
The pins can evedently drive DC into 82 Ohms, but no use making
heat for nothing......
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 06:16pm 04 Sep 2014
Copy link to clipboard 
Print this post

K of diode to uM pin, and sounder to GND - correct.

OK, I experimented with various value caps, and 100uF works well to provide about the same volume from the sounder as a direct connection.

Will the cap isolate the pin enough?
Smoke makes things work. When the smoke gets out, it stops!
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1804
Posted: 08:12pm 04 Sep 2014
Copy link to clipboard 
Print this post

The diode across a relay is to suppress the spike created as the magnetic field around the coil collapses creating a back EMF. I don't think the same thing would happen with a transducer.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 09:20pm 04 Sep 2014
Copy link to clipboard 
Print this post

> Will the cap isolate the pin enough?

Since the resistance of the coil is 42 Ohm, worst case
would be an instantaneous spike of ~ 3/42 Amp. An added
series 39 Ohm resistor would be super safe at the expense
of some efficiency.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 12:03am 05 Sep 2014
Copy link to clipboard 
Print this post

@ Paul & hitsware - Thanks for the feedback, guys. I will stick with the transducer via a 100uF cap in series, no back-EMF diode.

Thank you both for your input.
Smoke makes things work. When the smoke gets out, it stops!
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 03:55am 05 Sep 2014
Copy link to clipboard 
Print this post

Ok,

what about Dildos with electro Sounders??

Any experience in this?
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 03:55pm 05 Sep 2014
Copy link to clipboard 
Print this post

Not my area - how about you?
Smoke makes things work. When the smoke gets out, it stops!
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 05:54pm 07 Sep 2014
Copy link to clipboard 
Print this post

How low can you hear your sounder ?

' up down arrows for frequency
' left right arrows for dutycycle

f=110: p=50: GoTo display
setf:
If KeyDown=0 Then GoTo setf
If KeyDown=128 Then f=1.01*f
If KeyDown=129 Then f=f/1.01
If KeyDown=130 Then p=1.01*p
If KeyDown=131 Then p=p/1.01
If p>100 Then p=100
If p<0 Then p=0
PWM f,p
Pause 100
display:
Cls
Print "frequency="f;" dutycycle=";p
GoTo setf
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 09:06pm 07 Sep 2014
Copy link to clipboard 
Print this post

KeyDown not supported in uM, only on full size MaxiMite.(uM is what I have setup on the bench at the moment)

I will see if I can hook one up later.
Smoke makes things work. When the smoke gets out, it stops!
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 02:34pm 08 Sep 2014
Copy link to clipboard 
Print this post

> KeyDown not supported in uM

uM or with using PC for terminal ?
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 03:03pm 08 Sep 2014
Copy link to clipboard 
Print this post

KEYDOWN is a command supported in the MaxiMite version of MMBASIC, but not in the MicroMite version, according to the manuals.

It's no big deal - I was going to hook up a mock MM using a UBW32 module, so that I could test it with a VGA-TV converter for another member here, so I can use it for that.

Testing a beeper this way is a little subjective though, as different people have different hearing abilities or lack thereof.

Is there some special reason you need to test this on these beepers?
I could send you one if you wanted to play with one - I have 20.
Smoke makes things work. When the smoke gets out, it stops!
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 03:31pm 08 Sep 2014
Copy link to clipboard 
Print this post

> Is there some special reason you
> need to test this on these beepers?

Nah .... Just for fun....

Back to INKEY$ then
I like KEYDOWN for ease
of using the arrow keys
There is a way to use arrow
keys with INKEY$, but I've
forgotten. Something about
the second byte of the ASC#?
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024