Search Engine www.edaboard.com

Square Wave With Microcontroller

Add Question

85 Threads found on edaboard.com: Square Wave With Microcontroller
Obviously, yes! But can be square wave, triangular wave, sine wave, arbitrary....
You could use a software delay, however a more efficient method would be to use a timer and interrupt. You can set the timer to 1/2 period of the square wave and switch states from high to low and low to high using the timer interrupt. Using a timer would also offload the work to the generate the PWM, to the timer and interrupt system, freeing th
Tell me how to generate the 18KHz square wave using 8051 microcontroller
I'm trying to write a program in C++ to communicate with an AVR microcontroller's SPI via the LPT port. I have to generate a clock (SCK) signal on one of the pins of the LPT. I am using the WinIO library. I'd like to have way to create a square wave of a given frequency (within some limit of course). (...)
I am working on a project to transmit data from PC to a microcontroller. I wrote my own protocol for transmission (A variation of PWM) But I can't get the IR receiver work. I have a 3 pin receiver. It is written on it 6038. It seems that it means the Receiver will work with 38 kHz carrier signal. I used a nice function generator on our lab to trans
i need to design 11.0592Mhz square wave generator i need help in that thanks.
Hi All, Can anyone guide me how to generate square wave of 50% duty cycle from 1Hz to 1MHz. Is there any single chip built in IC to generate square wave.
I made a motor driver which outputs an 84V, 2.5A varying frequency square wave. i wanted to convert it into a sine wave with almost the same parameters as my square wave. what type of circuit or filter must i use to be able to convert it properly? the figure below is my motor driver. V4 and (...)
Hi, i will write a PIC18 program in C and examine my program using MPLAB simulator to generate a square wave signal with 60KHz frequency and 60% Duty cycle so how can i do it if any one can help me (me new in microcontroller world) thanks for all
Hi i want to measure microwave by some how. But i am little expert in PIC32, which has 80MIPS. Microwave frequency is about 20GHz for my application. Some facts about measuring waveform that i know is , 1. Convert the frequency from sine wave to squre 2. Make the voltage about +5V to 0V. 3. Connect to ADC of (...)
I want to generate 40khz square wave by ATtiny 2313v microcontroller in order to drive my ultrasonic sensor, how could i do this?
hello friends. in my assembly program the microcontroller has to do two tasks. it should keep complementing P2.0 and when timer0 interrupt is generated(at delay of approx. 71msec),it should complement P1.3 and then jump back to main program and start complementing P2.0 again. in this way it should generate a square wave of T=142msecs at P1.3 (...)
Hello everybody can you plz help me to think about driving an scr (Thyristor) with a Micro-controller (PIC16F877A);I want to drive half wave controlled rectifier and then a three phase rectifier. I know how I can generate different signals like sine,PWM and square wave ;plz help to think about that design. Thanks.
Hi first, you should convert sine wave to a square wave with a simple OPAMP such as LM324 (has 4 OPAMP). Then you can count square wave using counter module in PIC micro-controllers. good luck HR Karami
I have been trying for days now to configure the timers of AT32UC3C0512C to generate a simple square wave. I am sure that the clock is reaching the timer module, but there is no output. I am posting my code here. Can someone please help me on this? Its been a long while since I am doing this and continuously being unsuccessful. I am trying to g
It is a Saw RF Transmiter 6dbm. square wave modulation = 3khz modulate on-off RF carrier with digital signals It is AUREL component. The reciver is aprox. the same expecifitations. It is too form AUREL. I'm using 1200 baudrate.
If your input has a known waveshape, then you could measure a smaller portion of it and estimate the length of the full cycle. For example, if it's always a 50% duty cycle square wave, then you could measure half of it. If it's a clean sinewave, and you measure it with an A/D converter, then you could do a (...)
I am also interested in understanding the protocol. The chip is a PIC 12F683 microcontroller. Communication is through 2 complimentary wires and the protocol seems to be strange. On scoping there are only bursts of fixed frequency waveform. Not bit pattern, no stop bits, just a burst of monotonous square wave (...)
For XR2206 as AM modulator use FIG.12 of it's data sheet: and apply audio to pin 1 (input impedance ≈100kΩ) through a 1-10kΩ variable resistor. The frequency display may be connected to the square wave output.. Regards, IanP
You must use one precise clock source for the microcontroller like high frequency crystal or clock crystal (MSP uC have two options), then, You must set the peripherals clock source and use the ccr peripheral for generate the square wave at 110Hz. Other option it´s possible using the pwm...easy way! Gorkin...
The simplest DAC is with PWM. You generate (with microcontroller or fpga) a square wave with variable on-time, and constant frequency. This way, the average voltage varies with the duty cycle (on-time divided by period). A simple RC low pass filter will remove the higher (...)
Hello! I am using microcontroller to collect data from car. I have input channels for digital and analog sensors and I would need to protect those channels in some way. Digital channels should accept both, DHE and inductive sensor outputs, so the input circuit should be capable to trigger approx 100Vpp sine-wave with +2V offset and (...)
Hello! I am using microcontroller to collect data from car. I have input channels for digital and analog sensors and I would need to protect those channels in some way. Digital channels should accept both, DHE and inductive sensor outputs, so the input circuit should be capable to trigger approx 100Vpp sine-wave with +2V offset and (...)
i am going to write a code that allow my avr to generate a sqaure wave oscillator of 40khz, any one can do some help with me
I tried to make RF Link , Freq. = 85 MHZ , Modulation is FSK, I build the TX , and the RX was simply A radio whose o/p is 100mW , All i did is disconnectiong the speaker and take the o/p directly to P16F84A microcontroller and increase the volume tuner . and by monitering the edges of the square wave signals [
One way to generate a sine wave is to pass a square wave through a low-pass filter .. The high-order harmonics will be filtered out, leaving only the fundamental; the higher the order of the filter, the purer the sine wave produced .. And three square waves shifted by 120° can be easily (...)
If i measure crystal frequency on CRO i observe sine wave. with some dc offset. Why it is sine wave why not square wave.
Easy way to do it is to employ a small (8-pin) microcontroller with built-in PWM (pulse-width-modulator) and program it in such a way that when a 'high' is applied to the selected input it starts generating square wave (PWM from 0% to 100% mark-to-space ratio) and when the same input goes low it does the opposite - from 100% (...)
i need to connect a detector section with a jammer section. for that i need to convert an ac sine wave into a square wave. again i want to provide the same input to the square wave generator even though the detector section is switched off. so basically i need to store the frequency of the input.
Hi Can any one help me to design a square wave from a microcontroller to sine wave. The frequency is 50Hz Expecting replies Nandhu
That requires a frequency divider with a ratio of 0.9216 !!! That is almost impossible to build or not practical. What you can do is use a 22.1184MHz crystal along with external square wave generator circuit and pass it through a D-Flip-Flop (wired as bi-stable) to divide it by 2 to get 11.0592MHz. Or since it is for baud (...)
I would greatly appreciate any help in finding a simple circuit to accomplish the following... Here are the requirements: A very simple digital amp which will accept either an audio or digital (sine, square or triangle wave) signal on the order of 2 - 5V PP AC, or pulsed DC. This will be used typically to increase the level of the "audio
Simplest , a optocoupler with a smithtrigger to generate a square wave input signal.
THank you for responding sir, Actually i got stuck in controlling the voltage of sinusoidal inverter and also wave shape is changing to square wave when i put loads.Its shape is changing and also voltage is increasing can you help me in solving this problem. i will be great full to you help me please..............
Use your microcontroller to generate a square wave at 5MHz, and feed that into a LC or RC filter made with 2 discrete components. Set the values to make the passband = to 5Mhz.
I'm with the idea of using a DAC, just make equation and output its value on a port then the DAC will convert it to sine. or take the equation output to PWM but you will need LPF with the PWM output, maybe a smoothing capacitor is enough. or generate square wave using PIC and connect the output to a 2nd order LPF and you (...)
anandpv2009, Did you put your modules on a osciloscope. What are the signals that apears on RXD pin and TXD when you transmit a square wave? Did you see a square wave in RXD when you put a square wave in the TXD pin?
I do not know if this is the correct solution. Are you using the uC just for PWM, then clock down the chip to below 1MHz and try getting a 50Hz square wave with 50% duty cycle. Id this is not possible, the use clock dividers to reduce the clock. Use a Bandpass Filter (I would go with a second order band pass filter (...)
HI There are 2 option (both option are frequency dependent) first option You need to square the signal and transfer it into the digital domain (signal level) and measure it using one of the timers as counter with external trigger Second option Sample the incoming signal with an ADC and run an FFT algorithm All the (...)
i think that you cannot wake up the microcontroller by usart. because modem doesnt procude a signal when received a sms. i suggest you, first send sms to modem, and then call it. incoming call produce a square wave in the communication port of modem. you can use this square wave to wake up pic18f4520
using a microcontroller the square wave would be as accurate as the crystal (assuming you calculate the timer values correctly) you could use a low cost development kit like the Microchip microstick Microstick for dsPIC33F and PIC24H Development Board
Hi Marius, instead of generate sinusoidal waves with PWM, DAC or an analog waveform generator, you can use your microcontroller (or other digital circuit) for generate a square wave at f0 and f1. Then, filter the square-wave FSK with a (...)
Hello I am very new at eletronics, and I've been willing to design and produce a photography timer (for time lapse photography) right now I've been studying to do that using an astable oscilator with a 555 timer, and control time with a pair of potentiometers (one for the high-time and another for the low-time) but that is a kind of crumpy s
Hi, The most common method is to use sinusoidal pulse width modulation (SPWM), ie PWM (square wave signals where you continuously vary duty cycle according) is used to generate a sinusoidal wave shape. For control of speed, a simple and common method is constant V/F drive. You can read these
I've done some readings on how tachometers (as in automobile tachometers used to measure engine RPM) works. Apparently modern tachometers drive the needle from the signal received from its signal wire; which is a series of square wave pulses. If I'm not mistaken the frequency determines what RPM the engine is running. So as a holiday project I want
I need to generate a square waveform with 30% duty cycle having +/-5volt peak voltages by using a ttl circuits
Apart from detail questions of signal waveform (I assume a digital square wave for simplicity), a PLL can do it for rational frequency ratios. 13:2 would be sufficiently accurate (+ 0.3 %) I think. It can be achieved with a CD4046 PLL and additional logic. A modern solution would use a small microprocessor and do everything in so
I can't draw a schematic at the moment but connect one comparator input to the signal and instead of connecting the other input to a fixed threshold voltage, also connect it to the signal but through a resistor. From this input also add a capacitor to ground. The signal through the RC network will be slightly delayed with respect to the direct one
Each DTMF tone contains two simultaneous sinewaves of different frequency and slightly different amplitude. You could program two of your microcontroller timers to generate square waves at those frequencies, and then design analog filters that remove the unwanted DC and harmonics from the square (...)
You can use 555 to generate 0.1s square wave which then will be didvided by 700 using frequecy divider from the following site: This divider is a universal divider with which you can divide frequencis by up to 999 times. It is based on 7490 counters, so if you choose to