1
\$\begingroup\$

I have programmed to ATmega 164P to make PBO high when PC1 is low. In programming, I'm adding other peripherals as well.

But I am facing one issue regarding generating a tone. I have drawn low pass filter and using LM386. But I can't produce 50-100 Hz frequency with 12V ac from 5Vdc pin. I use some circuit but didn't help.

So if you could suggest me about how can I build circuit which can convert 5 VDC to 50-100 Hz 12VAC for generating tone. If you have any suggestion or suggested circuit for me, please let me know. By the way I'm learning timer and counter but couldn't able to program efficient way yet.

enter image description here

\$\endgroup\$
6
  • \$\begingroup\$ (Beware efficient transducers electrical sine-wave to LF audible are large.) \$\endgroup\$
    – greybeard
    Commented Jun 12 at 7:04
  • 4
    \$\begingroup\$ can't produce [12 Vac from 5 Vdc] Well, that isn't easy without a transformer: 12 V "effective" sine means about 34 Vpp (peak-to-peak). Please add to the post how can't produce… shows, motivate "the 12 V requirement" and tell what options you see for power supply - e.g., a 19 V laptop supply. \$\endgroup\$
    – greybeard
    Commented Jun 12 at 7:57
  • \$\begingroup\$ The issue is about low pass filter which does not produce proper sinewave with high frequency . And im facing this issue badly \$\endgroup\$
    – Traffic t
    Commented Jun 13 at 0:41
  • \$\begingroup\$ Do not comment comments asking for clarification or complementary information: edit your post. I can't see inside your head. No more do I see of your simulation (?) results, your circuit assembly, your measurements than what you present in your posts. You neither tell nor show what signal you generate at PB0. The raster image for the circuit schematic is just small enough to let me doubt what component values I see - 27 μH, 100 μF? Shouldn't that yield a "cut-off" frequency in the 100 kHz ballpark? \$\endgroup\$
    – greybeard
    Commented Jun 13 at 5:48
  • \$\begingroup\$ (Without a well-known signal source&load, high order passive filter design/construction doesn't look promising. I'd advise to look at active filters if I thought your point was "analogue" signal processing - is it? If what you want is to actually hear something, shift frequency up 3 octaves or a full decade.) \$\endgroup\$
    – greybeard
    Commented Jun 13 at 5:54

0