Item #: DEV-19485
There are no reviews yet Write a review
Price: $30.28 inc GST
    The product is in stock Availability: Discontinued
    Usually ships In (Unavailable - Discontinued Product)

    AN to PWM Click is a device that converts the value of the input analog signal with virtually any wave shape to a fixed frequency PWM voltage output, with a duty cycle proportional to the input voltage. It has a linear response, and by applying a signal with the voltage between -2.5V to +2.5V on its input, the Click board™ will generate a pulse width modulated (PWM) output voltage, with duty cycle ranging from 0% to 100%. AN to PWM Click features very good linearity, covers a positive and negative input voltage range and it has good temperature stability. These features allow this device to be used in various voltage to frequency applications, such as AD conversion, inspection, test and measurement equipment, while it can also be used as the variable clock signal generator.

    AN to PWM Click board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development.

    AN to PWM Click is a device that converts an analog voltage input signal into a pulse width modulated (PWM) output signal. This Click board™ consists of an analog circuitry, made of two comparators and two op-amps, needed for the described device. Op-amps used on this Click board™ are OPA365 series, while comparators used are TLV 3201, both from Texas Instruments. It has a linear response, so applying a voltage in a range of -2.5 to 2.5V on its input, will result in generating the PWM pulse train with duty cycle linearly proportional to the input voltage.

    This circuit on this Click board™ utilizes a triangle wave generator and comparator to generate a pulse-width-modulated (PWM) waveform with a duty cycle that is inversely proportional to the input voltage. An op amp and comparator generate a triangular waveform which is passed to the inverting input of a second comparator. By passing the input voltage to the non-inverting comparator input, a PWM waveform is produced. Negative feedback of the PWM waveform to an error amplifier is utilized to ensure high accuracy and linearity of the output.

    One op-amp (U1a) and one comparator (U3) are used in order to form the triangle wave generator. The error amplifier, composed of one op-amp U1b, serves two purposes. First, the error amplifier accommodates feedback of the output PWM waveform in order to correct for any errors in the output voltage introduced by the comparator on the output of the circuit (U2). Second, it adds a dc offset to the input voltage so that negative input voltages can be accommodated by the circuit. That way, in case that input signal is equal to 0V, the value of PWM duty cycle on the output is 50%.

    The output PWM signal on the AN to PWM Click is brought to the INT pin of the mikroBUS™ socket, in order to enable fast and precise duty cycle measurement, using the interrupt routines. The frequency of the PWM signal is fixed to 500kHz.

    This Click board™ is designed to be operated only with 5V logic level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with logic levels of 3.3V.


    • Interface: GPIO
    • Compatibility: mikroBUS™
    • Dimensions: 28.6 x 25.4mm
    • Input Voltage: 5V