When it is charging (input to the transistor low), it is charging towards 10V through a resistance of 6.45K ohms (the Thevenin equivalent source resistance of the divider plus the 4.7K resistor), and when it is discharging (input to the transistor high) it is discharging through a resistance of 4.7K ohms (to maybe 50mV- the VCE of the saturated transistor- it won't make much difference so I'll guess at it- you can refer to the datasheet for a slightly better value).
For steady state, assume the voltage is fixed (does not change during a cycle), so we know the current charging must equal the current discharging if the times are equal (ask if that is not obvious).
So (10 - Vc)/6.45 = (Vc - 0.05)/4.7
solving, Vc = 4.244V. (Even worse!)
I don't know where the value in your simulation comes from but there will be lot of ripple in the voltage with such a small capacitor. Figure about 0.001 second * 0.9mA/10^-6 = 0.9V, so +/-450mV ripple (about 10%), so perhaps it's the peak voltage, not the mean-> 4.244 + 0.45 = 4.694, which agrees with your simulation.
You can use a more symmetrical drive either by increasing the 4.7K to a much higher value or using a CMOS buffer that will also get rid of the Vce(sat) term. Just remember that the buffer does not make this issue magically go away, and if you have a relatively low resistance compared to the buffer output impedance, and that impedance is asymmetrical (as it usually is) you may not see the exact voltage you're expecting.
Note that using a highly asymmetric switch like this one introduces a significant nonlinearity, which may be undesirable. In this case, it's about -15% of signal at mid-scale or -7.6% of full scale.
The SSRs you have linked use triacs to control the output. A triac is a semiconductor switch. When the triac is triggered on its gate it turns low resistance between its two anodes. Triacs have the odd characteristic that they will remain on after the gate signal is removed until the current falls below a very low hold-on current. This renders them almost useless in DC circuits but quite useful in AC circuits where the current falls to zero at every zero cross of the AC supply.
Figure 1. Common triac packages.
Figure 2. Triac symbol.
For on-off control the triac will be switched to give a load waveform as shown in Figure 3.
Figure 3. On-off AC time control.
Typically these circuits use zero-cross circuits to switch the load on at zero-cross to minimise electromagnetic interference. The triac itself switches off at the end of the next half-cycle. This approach works well for loads such as heaters which respond slowly to power.
For circuits which respond more quickly to pulses of power (such as lamps or motors) the on-off control gives too much flicker or jerk. In these cases phase angle control is used to vary the on-time of the AC supply to the load.
Figure 4. Phase-angle control.
Phase angle control requires instant-on (non zero-cross) SSRs but the control circuit needs to monitor the mains and give the pulses at the appropriate time relative to mains zero-cross.
What if I use a PWM signal instead which has 490Hz frequency, like for example default Arduino PWM output? Since Arduino board doesn't have DAC, it mimics analog voltages by using PWM technique.
You can't use PWM to control an SSR. The first pulse will turn it on and it will stay on until the next zero-cross.
For some reason I don't want to use digital outputs.
What is the reason?
I don't want the relay to switch on and off all the time which would cause too much heating.
What relay? Heating of what?
1-) Is there a frequency limit for PWM where the relay would be always on? Or relay would always react the on of cycles of PWM what ever the freq of PWM is?
You can't use PWM to control an SSR. You can only control to the nearest mains half-cycle.
2-) I could use digital output for continuous analog voltage, but if I have to use PWM output at very low duty cycles would I have problem with the relay?
You can't use PWM to control an SSR.
Would the motor jerk if I were to use PWM as analog DC input with this relay?
pwm solid-state-relay
You can't use PWM to control an SSR.
Finally, you can't use PWM to control an SSR.
Update
Could you provide a waveform for PWM input and SSRs behavior if possible where we can see why it doesn't work?
Figure 5. The result of switching a triac with a PWM signal.
At the start of this answer I emphasised the statement, "Triacs have the odd characteristic that they will remain on after the gate signal is removed until the current falls below a very low hold-on current." This is key to the problem. In Figure 5 we can see that the triac output is off until the first PWM pulse is received. It then turns on and stays on until the next zero-cross regardless of the PWM switching. The result with continuous PWM will be that the triac turns on with the next PWM pulse after each zero-cross and stays on. Note the last half-cycle in the AC waveform. The triac is still on even though the PWM has stopped.
Best Answer
They may or may not have sufficient filtering in there for whatever PWM signal timebase you can generate.
As a guess, they probably would put some filtering that would handle mains ripple on the input line so if you had a PWM timebase in the kHz it might have low enough ripple to not cause issues.
Worst case will be 50% duty cycle and I would expect the effect of too much ripple would be a beating of frequencies (sampling vs. PWM) resulting in a modulation of RPM with time.
Since you have to generate the PWM anyway and likely have to boost the voltage from logic level to 10V, you may as well filter it and buffer it properly, in my opinion. The few parts (say an LM324 and a few resistors and capacitors) cost virtually nothing compared to playing around with this kind of thing.