Search Engine www.edaboard.com

105 Threads found on edaboard.com: Square Wave Pic
I'd like to control the temperature of my soldering iron with a pic micro and a solid state relay (DC input 5-30v ; AC out 220V,10A). I need some advice about the shape (raport/ratio) of square wave that I'll have to generate with the pic micro. :? :? :? Thanks!
Hi, it's so easy for example to creat 1khz square wave using ccs c compiler. We calcualte time duration T=1/1000Hz = 1 ms Then divide it by 2 ---> 1ms/2 = 500 us while (1) { output_high(PIN_A1); delay_us(500); output_low(PIN_A1); delay_us(500); } Bye
I want to calculate True RMS(Root Means square) of square wave in Assembly Language of pic 16F72. For a pure square wave: 1. square waves: Like sine waves, square waves are described in (...)
Greetings Im kindly and desperately looking for a code to count the pulses from a square wave using a pic 16f872. i want these pulses to be the basis of varying the turn on time of a heater connected to the pic and switcing being done by a triac driver and triac.
Hi. In the pic below I have a comparator circuit which I want to use to convert a sine wave into a square wave. As you can see, the circuit converts the sine wave and gives the resulting square wave the same frequency. But the square wave (...)
i need to design 11.0592Mhz square wave generator i need help in that thanks.
Can anyone pls tell me how to generate square wave using Timers rather than delay in pic microcontrollers (16F876). Im using CCS COMPILER. Regards.
oups sorry it's sinewave I gave you... by the way it's better than square wave... regards,
Hi every one I try to generate a square wave generators of 40 KHz, so i use a 18f4520 pic and write the following programmes : int y, yy; main() { do { portb=0x00; for(yy=0; yy<20; yy=yy+1) delay_us(1); portb = 0xff; for(yy=0; yy<20; yy=yy+1) (...)
Hi i am doing project on synchronous rectification for automotive alternator.... I am using pic16F72 for my project I am using CCS compiler..... First let me explain my project.... I am taking three phase voltage from the alternator and giving to comparator as input. The comparator here acts like zero crossing detector circuit...... For non-inverti
i want to convert a square wave with different period, the time that is sitting in 1 logic to be different and to belong to a combination of bits of code RC5, i know that is possible with pic 16f877 but i don t know how do it! thanks for help
A friend has a boat on which the rev counter reads very high since fitting a new alternator, it uses a feed from one of the coils to generate the display value. I'm thinking of a design to measure the frequency of the incoming sine wave, then generate a square wave of a lower frequency to drive the rev counter. In this case the ratio is (...)
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 curve fit to (...)
Hi all, I would like to design a pic microcontroller based UPS ( 230V, 500VA, square wave output). Kindly suggest a microcontroller from pic family for this design. If you have got any usefull links or any other information on this topic please share. Please note that I am new (...)
You will be using 12V or 24V DC in the primary section of your inverter and if you have access to a scope, you will be able to find 50 or 60hz noise pulses in the primary section. This noise is much higher and contains several multiples of harmonics of 50 or 60hz if your inverter output is square wave. You will need a good power supply filter to yo
This is normal practice to convert digital-to-analog: PWM output feeds a low-pass-filter cosisting of a resistors and a capacitor + a buffer. As you know a PWM is a square wave with differen pulse widths. This means that the duty cycle of a square wave is different, so is its average current: this average current (after LPF) (...)
we are a group trying to create a pic-Based Signal Generator ranging from 1Hz-1MHz that outputs both sine wave and square wave. we need help in producing a clean sine wave output. how can we produce a clean sine wave from a pic? need your help... thanks.
@thiliniv PWM is nothing but an pulses(square wave) with Width of Pulses modulated with information... if u like to Measure the width of pulses read content of above post .. use wikipedia to read more on PWM
Hello all I am not a prfect pic user, I used it one year ago in a project, but it took long time.. Now I want to do approximately simpler thing, but have no time indeed to waste in it.. I want to make a random number generator of variable bit rate I can discribe it in brief as follows: - It generates any random set of bits at one p
Initially I implemented a 4 MHz clock driving 2 pic micros, using 2 inverters, one of them as a buffer (74HC04). To avoid the waste of space (the other 4 gates do nothing) I tried a transistor oscillator and buffer from an ARRL book but couldn't have it working. In my implementation space is at a premium. Can anyone show me a really working circ
I think you expect alot from pics . Which sound do you mean ? With one output connected to the audio amplifier u create only square wave with different frequencies using PWM technic or software based technics . IF u try harder maybe you could play WAV files using external DACs or ladder Resistors, but about MP3 files I dont think so (...)
Complete design of square wave inverter with PWM and output voltage correction on step basis and battery charger available with HEX code to program pic16F72. 250watt to 5kw design Data include pic code Schematic and parts list PCB Files Anybody interested can contact me on Cost apply for data tran
To receive this signal on any TV set you need a TV modulator, as these circuits (including pic-based with 2-resistor D/A from your last post) generate baseband video signal .. The rason why some TVs may pick-up 'something' is that this signal has a lot of harmonics (as any square wave has) but the high-order harmonics are (...)
Hi, I wrote the following program for pic16f84A which outputs 2 offset square wave pulses on pins B0 and B1 at 22hz. I'm using an external osc at 32khz on both cases. I need to migrate this code to C8051F300 chip. I'm not very familiar with it yet, so any help is welcome. I'm guessing just a slight modification (headers) and some pin (...)
Obviously, yes! But can be square wave, triangular wave, sine wave, arbitrary....
Hello everyone! just wondering if anyone has any ideas and/or examples on how to output an adjustable square wave in the range of 6hz-800hz using a pic16f818 running 8Mhz with the internal clock... Im using assembly Thanks! -Ryan
Hi Everyone ! I am working on a project in which i have to connect a Smoke detector with a pic16F877, i don't want the smoke detector buzzer to sound but i want it to send the input signal to the pic when it detects smoke, i have tested the smoke detector and it is giving a 5V to -5V square wave, the sound buzzer has 3 (...)
For sinewave generation: MSLOSC from MSI For square wave generation: Linear Technology LTC6903 & LTC6904 All are small serially programmable chips.
can i use pic 16f877a to change the frequency on the output for square wave i need the user select the value of the frequency and diseply it on lcd :?::?::?:
ic'S for this are few and far. There is difficulty getting a stable oscillator. waht about pic to give square wave which yuo filter with opamp filter to a sine wave?...then amplify it to what ever amplitude you want
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 will get a sine (...)
It's true that using PWM or a DAC you can make almost any waveform but have you consider that the maximum voltage you can produce from a 16F877 is 5V and without other circuitry, the maximum power it can produce is less than 1 Watt. You don't have many options and none are very efficient unless you use a transformer: Generate a square (...)
Alright analog guru's I've got an issue. I need to take a 0 - 12v square wave of 50% duty cycle and varying frequency and produce a +/- 2.5v sine wave with 4 times the frequency of the square wave. I'd thought about using a pic to count the time between 2 incoming pulses, then on the third (...)
I'm trying to build a 110V,50Hz ,100VA sine wave inverter using a Boost section which delivers 170V and using this section for an H bridge driven by IR2110 ICs and finally an LC filter to create back the Sine wave.The controller im using is pic. My problem is the output LC filter design i went through the link
if you observe on the crystal, it will be a sine wave. the internal circuitry converts it into a square wave.
is it a DC-DC converter on this schematic Yes, when generating a suitable square wave at the port pins driving the voltage trippler circuit.
But for alarm sound you do not have to make a since wave, simple square wave will also do fine.
Hi dear all friends, I have an RC circuit, in which two parallel resistor and capacitor are connected in series with a capacitor. I want to measure dissipated power of this circuit, but I have some problem with measuring phase difference between voltage and current of voltage source (which is a square wave). Though it is so easy to find phase di
Hello everyone. I'm a high school student working on a photovore robot. It basically follows light. I've gotten 4 light to frequency converters and would like to be able to get the data from all 4 sensors. I don't exactly know how to implement this. I know the output from the sensors can be 120-600nm pulse duration pulse train with a frequency
Hi guys I am new to pic microcontrollers. I am measuring relative humidity in a room by using a resistive humidity sensor. The sensor uses an ac signal. I have generated the ac signal by using the PWM signal from a pic 4520( 1kHz 0-5V). I send this signal to an op amp and convert the signal to -1 to +1 V square wave. What I (...)
TSOP1738 ~ SM0038 May should not work because we generate continuous pulse of IR at 38kHz rather than bursts of square wave with gaps. See dataheet: The data signal should fulfill the following condition: Carrier frequency should be close to center frequency of the bandpass (e.g. 38kHz). Burst length should be
Hi Everyone, I am having some problems with an RF module: The scenario is this: I have an old custom power controller in the garage, it has remote a facility to monitor things and send an alarm signal if something goes wrong. I wish to build the receiver into
Greetings everyone, I am having an issue with a very basic circuit. I am trying to drive a PFET at 15kHz via PWM output from a pic. I have the PWM going into the base of a 3904 transistor, the collector is connected to the PFET gate and a 22K resistor is connected to the supply (27 - 32V.) The emitter is connected to ground. The PFET will turn on
Folks, I?d like to drive an H-bridge with 60Hz square waves with large dead time. This is for a DC to AC wonder. As long as pic's clock is no faster than 13.1Mhz, it should be possible to generate such slow waveform with ECCP. Right :?: Of course
16F has only one interrupt vector. But all interrupts jump to that vector. So, in the ISR, you can check which interrupt has occurred by checking the corresponding flag. Eg. If you're using INT0 for reading the square wave and TMR0 overflow, you can set the INT0IE and TMR0IE. In the ISR, check if INT0IF has been set. Also check if TMR0IF has bee
From the data sheet of pic18F452 ... i have found this - DC - 40 MHz osc./clock input can any body tell me how can i connect that 40Mhz crsytal.... in what configuration Hi, It does not say that - it can onyy use a crystal to a max of 25mhz using the HS config and connected as shown
I've dabbled a bit with microprocessors and even taught an online course in microprocessor interfacing (which is concerned more with peripherals than coding). However, I do not have any formal training or on the job training (or at home hobbyist training) in microprocessors such as the pic or HC12. I have written limited code for both in C and a
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
1. 220VAC/50HZ (square) >> HVDC >> 220V AC (sine)? I think very difficult, 220v RMS sine= 310v dc or above for losses etc. 3. Using sine oscillator? May be complex circuit. 2. Using LC Filter? Some thing reasonable. Use three pole RC/ LOW PASS FILTER with 1K resistance and 1uF cap in series of MCU
ur question is confusing. what r u exactly looking for? 1. if u want to find the period/frequency of sine wave. Simply convert the input sine wave to square wave by passing it thru internal comparator of 16f877a, then send the square wave to any CCP capture module to find the period of (...)