Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

AVR atmega32 help for OC2 pin

Status
Not open for further replies.

piscianemperor

New Member
Hello…. i’m doing a project,in which i shall be operating the atmega-32 uc such that the OC2/D7 pin is the output. The OC2 o/p will be used to drive an ultrasonic transmitter,and my tests reveal that the ultrasonic transmitter needs atleast 3V for sufficient range.
Can you tell me what the output voltage of the OC2 pin is ? also,if it is less than 2 V,can u suggest some way of pulling it up ? Can i use a opamp? If yes,which one...bcoz i guess the slew rate will have to be considered,since OC2 frequency will be 40 Khz.
 
Same as Vcc, what are you running it at?
 
Yes, 5v pk-pk. You don't really need it, but you can also put a capacitor in series with it so there's no offset voltage on the piezo element (a .22uF should do fine) and you may get a better signal.

You can also use 2 port pins, drive one high while the other is low and vice-versa, put the emitter across the pins. This will give you twice the amplitude, 10V pk-pk.
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top