??? 03/31/07 06:35 Read: times |
#136274 - that worked, but... Responding to: ???'s previous message |
hi,
thanks for the quick reply. that works, i tried connecting it to a 5V supply and the buzzer worked. however, i cannot get it to work with my 8051 chip (actualy the P89c51rd2) what im doing is, connecting the ground pin to ground and the supply pin to port 2, pin 0 (ie, P0) and then, using the C code: #include <reg51.h> sbit d = P2^0; void main() { d = 1; } and i even tested the wire and found that i did have 5V where it should be. but the buzzer doesnt work, it only works when i connect it directly to a power supply. maybe my current is too little out of port 2, pin 0? i dont know. any suggestions? thanks |
Topic | Author | Date |
how to use a simple buzzer? | 01/01/70 00:00 | |
Try it ? | 01/01/70 00:00 | |
that worked, but... | 01/01/70 00:00 | |
current | 01/01/70 00:00 | |
When you've found the current requirement... | 01/01/70 00:00 | |
Buzzer connections | 01/01/70 00:00 | |
Drivers | 01/01/70 00:00 | |
will try it and get back... | 01/01/70 00:00 | |
If the buzzer draws lots of current... | 01/01/70 00:00 | |
Quote | 01/01/70 00:00 | |
Correct | 01/01/70 00:00 | |
ok... | 01/01/70 00:00 | |
Numerous options ... | 01/01/70 00:00 | |
only have 5V supply | 01/01/70 00:00 | |
it might prove interesting ... | 01/01/70 00:00 | |
Because you took a NPN instead of PNP... | 01/01/70 00:00 | |
will try this | 01/01/70 00:00 | |
kai | 01/01/70 00:00 | |
I would use a PNP | 01/01/70 00:00 | |
Do yourself a favor ... try it as he suggests! | 01/01/70 00:00 | |
we all did some such thing ONCE, I believe | 01/01/70 00:00 | |
hmmm.... | 01/01/70 00:00 | |
I don't know why,...![]() | 01/01/70 00:00 |