How do I make the diode light up only when the toggle switch is activated?

Please read everything Hello folks! I don't really know much about electronics, so I often experiment and try out my own circuits. I want the diode in this circuit (pictured below) to have two different functions. It should light up when the battery is fully charged and it should light up when the toggle switch…

RMS value, rectified value, etc. of a mixed signal?

Hello everyone, The following task is given: (Sorry for the poor quality) We are looking for: mean Rectified value Effective value Peak-to-peak value My problem starts with calculating the amplitude of the triangular signal. Since the signal oscillates around U2, I would say û_triangle would be (-4*U1/pi)+U2. û_Sin here is U1-U2. The peak-to-peak value would…