For experimental - educative purpose, I'm trying to control one 3-color led with the following circuit:
- Power: single rail, 5v.
- Signal generator: triangular 0-5v, 500 Hz (in next step, signal generator should be replaced by an op-amp circuit, could be a rectangular generator followed by integrator).
- operational amplifier: 741 in comparator configuration. v+ from signal generator; v- from variable resistor R1=100 K .
- red led with R2=160 ohms resistor (in the future, circuit will be triplicated for each color of the RGB led).
In this way, the triangular signal is converted to a WPM (width pulse modulated) where the width of the pulse is controlled via the variable resistor.
Problem: using a 741 op-amp the led intensity does a "jump" when reaching the low/high limits, probably due to its operational margin levels (741 seems not designed for 5v power supply).
Do you think MCP6004 can be used instead of 741 in this project to solve this issue ? (another possibility is TL974)
Thanks a lot.