this post was submitted on 07 Jul 2023
11 points (100.0% liked)
Ask Electronics
3315 readers
1 users here now
For questions about component-level electronic circuits, tools and equipment.
Rules
1: Be nice.
2: Be on-topic (eg: Electronic, not electrical).
3: No commercial stuff, buying, selling or valuations.
4: Be safe.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
No, with 0 Ohm I get a perfect 0+5v sine, just as I need. It's the other way round, it'll amplify the signal and clip off the top at about + supply voltage when you increase the resistance in the feedback loop, but it's not exactly square wave, as the bottom part of sine will remain intact. I use clipping schottky diodes to protect the arduino from voltage outside 0+5v range, this way if you increase input signal to say 20v peak to peak, you'll get more square-ish wave in 0+5v (I've attached the schematics)
You’re right of course. Two more questions if you don’t mind:
At the moment you’re also mixing up your + input. 10V AC + 5V DC result in 7.5V input in your sim.
I already ordered PCB for the prototype. I hope it'll work fine. Thanks a lot for your help :)