provide a random input

hi..i m new to circuit lab..n i want to input an analog signal (which is the laser output of some device)..to an A/D coverter... its not a perfect square signal..so want to know how can i do this?

by kshatri
December 10, 2012

Hi kshatri,

Welcome to CL.

If ityour analogue signal is not a perfect squarewave then you need to define what you wish to represent.

A pulse wave with less than of greater than 50% duty cycle?

A Pseudo Random Binary Sequence?

Does it look like something that has gone through a 1st order low pass filter?

A second order filter?

Does it have udershoot/undershoot/ringing?

All these things are possible in CL but you have to specify what you want.

See:

PWL(t1,x1,t2,x2,...)

PWLREPEAT(t1,x1,t2,x2,...)

PWS(t1,x1,t2,x2,...)

PWSREPEAT(t1,x1,t2,x2,...)

in

https://www.circuitlab.com/docs/expressions/

and

https://www.circuitlab.com/docs/circuit-elements/#behavioralsources

and

https://www.circuitlab.com/docs/circuit-elements/#laplace

and

https://www.circuitlab.com/circuit/5gcrpn/laplace-transform-step-response-and-bode-plot/

and

https://www.circuitlab.com/circuit/3dfhet/simple-cascaded-filters-02/

and

https://www.circuitlab.com/circuit/cynaz6/squarewave-into-rc-circuit-01/

More?

CL does not have an ADC component but you can model one using the available CL primitives or behaviourally like this:

https://www.circuitlab.com/circuit/6urhju/behavioural-adc-dac-blocks-01/

:)

by signality
December 10, 2012

Post a Reply

Please sign in or create an account to comment.

Go Ad-Free. Activate your CircuitLab membership. No more ads. Save unlimited circuits. Run unlimited simulations.

About CircuitLab

CircuitLab is an in-browser schematic capture and circuit simulation software tool to help you rapidly design and analyze analog and digital electronics systems.