|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Project Questions about Programming and Electrical
Thanks. I'll try to figure it all out this weekend. I just got a bunch of stuff working on it until a PWM cable randomly decided to go out or else a pin on the circuit board came loose and is not giving me a good connection. I think I may just try to move it to a different pin.
|
|
#2
|
|||||
|
|||||
|
Re: Project Questions about Programming and Electrical
You can block DC current by putting a suitable capacitor in series with the speaker. That's not always a perfect option, but it's certainly a lot easier, cheaper, and quicker than adding active circuitry that requires a bipolar power supply.
|
|
#3
|
|||||
|
|||||
|
Re: Project Questions about Programming and Electrical
Ryan,
Audio alerts can take many different forms. If you are trying to get someone's attention, a Sonalert or Piezo electric transducer works very well. These devices work best at their resonant frequency but can reproduce a range of frequencies in the mid band of human hearing. They are easy to interface and are pretty cheap. I have a used a few from Radio Shack like the ones here...http://www.radioshack.com/family/ind...032058.2032230 |
|
#4
|
||||
|
||||
|
Re: Project Questions about Programming and Electrical
Quote:
|
|
#5
|
|||||
|
|||||
|
Re: Project Questions about Programming and Electrical
Ryan, again, you can customize the CCP output to produce different frequencies. Not a LOT if you want it to sound half decent, but still probably 3-4 distinct tones. Honestly, with just two tones and a little clever programming you could get several different signals by pulsing and alternating the tones at intervals, sort of like morse code or the BIOS beep codes computers use.
Addressing Alan's comments, yes putting a capacitor in series with your amplifier or speaker would remove the DC component of the signal, but if you're planning on using a bipolar amplifier of some sort to power your speaker, then I'd recommend the extra trouble of a little active filtering, as it would really help in the long run. What I wouldn't recommend is running he speaker directly from the RC digital output. I don't think they can source or sink nearly enough current to work well in that application. |
|
#6
|
|||||
|
|||||
|
Re: Project Questions about Programming and Electrical
Ryan,
You can use piezo buzzers in place of speakers. They are easy to interface and can play out a band of frequencies. At least one of the Radio Shack devices is listed as midband 1500-3000Hz. That is certainly enough to give you R2D2 like sounds. They are very efficient giving upwards of 90dB+ outputs at 10-15 ma. Most can be used as the collector load in a simple one transistor amp. Since the current demands are low, a 2N2222 or 2N3906 would work fine. When you choose, be sure to look for one that does not self resonate, i.e. make sound when connected to a power source. Most are able to take a variable frequency input. |
|
#7
|
||||
|
||||
|
Re: Project Questions about Programming and Electrical
I've run into a bit of a problem today. I was testing the whole setup, so I left it running for about half an hour. Every thing seemed fine. I turned it off and went to go run some errands, and when I came home I found that it was on. So I pushed the power switch off and it stayed on. "Hmm...," I thought to my self so I disconnected the battery and it turned off. I reconnected it and left it off. I went to do some chores around my house, came back to my room and found it on again! Somehow, this thing keeps on turning itself on, and I'm not sure how it can do it with the way I have the power switch wired. I'm totally lost on to what is causing this because there is no way for it to happen with the setup I have. You can see that the power relay is connected to the fuse panel, which must receive power from the power switch first in order to even turn on. Here is a rough hand drawn schematic of my electrical circuits:
http://nazaretian.homeip.net:8000/ry...%201%20001.png EDIT: Also it is receiving power from something non-mechanical. So I guess it's leaking through a transistor or something, but I don't see how since they're all connective negatively. Last edited by RyanN : 10-10-2007 at 14:03. |
|
#8
|
||||
|
||||
|
Re: Project Questions about Programming and Electrical
I partially found the problem. My power relay's contacts were stuck closed because my connection pushed the contact up, but... that doesn't explain why it would turn off then after a few minutes, it would turn back on unless the copper connections were bending slightly after it cooled down.
|
|
#9
|
|||||
|
|||||
|
Re: Project Questions about Programming and Electrical
Ryan,
When linking to your schematic the connection is refused so I can't be sure of what you are doing. As to the power relay, did you solder directly to the relay contacts? Often this melts the base material and leaves enough slop in the contact to move around with heat/cool and vibration. Add to this a few errant metal shavings or whiskers and you end up with a contact that you can't really see but is there none the less. The best way to use realys is to add a socket. The socket is made for soldering and the relay merely plugs into it. Relays are notorious for acting weird especially on low current signals. |
|
#10
|
||||
|
||||
|
Re: Project Questions about Programming and Electrical
Quote:
![]() ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| two electrical questions | mechanicalbrain | Electrical | 9 | 11-07-2005 09:41 |
| Problems and questions about programming | hedgehogger | Programming | 4 | 15-01-2005 18:18 |
| Questions about DNS, URL Forwarding, and Cloaking | sanddrag | Website Design/Showcase | 7 | 22-10-2004 21:32 |
| Questions about Textures and Models | thoughtful | 3D Animation and Competition | 28 | 11-02-2004 22:13 |
| Pneumatics electrical wiring and programming | archiver | 2001 | 1 | 23-06-2002 23:10 |