Hii Everybody
I am trying to generate modulated waveform from arduno UNO .as below
20KHZ Square wave with 50% duty cycle and 200 KHZ square wave will be modulated in it .Modulation Phase angle will be control by the POT on A1 terminal ( 0 to 5 VDC)
Please find attached file so that everybody will clear the picture of waveform.
Can any body help/suggest some simplest way to do this
Thanks in advance
I'd suggest a 20KHz source digitally mixed with the 200KHz source with some simple logic gates.
Can program an arduino to output its 16 MHz output, divide it down externally to make 200 KHz and 40 KHz or 80 KHz, then a couple of logic gates with the slower signal allowing bursts of the faster signal. Will need some fast logic chips so the 5uS period of the 200 KHz doesn't get lost.
Thanks for your reply
But all can I generate these two signal and combine them by logic gate using only arduino uno?.Please suggest some coding
My perpose is to put the mixed signal at pin number 9 or may be other pin
Thanks
nehe_bhimaji:
But can I generate these two signal and combine them by logic gate using only arduino uno?
If you do this using code only, you will almost certainly not be able to do anything else including making decisions as to whether to alter or cease the process in any way. If you were to do this using a microprocessor, it would be more pragmatic to use one of the cheap eight pin devices, or cheaper overall to use the logic gates.
Thanks Sir
Now my aim is to generate it using arduno uno only for my prototype testing.after that i will make my own PCB and all that .But the point i stuck how to generate these signal using arduino.Please help if you have any sample code .that will be great help for me.
Thanks
To get the 16 MHz output, you burn one of the fuse bits:
9.9 Clock Output Buffer
The device can output the system clock on the CLKO pin. To enable the output, the CKOUT Fuse has to be programmed. This mode is suitable when the chip clock is used to drive other circuits on the system.
Run that thru some counters to get a 200 KHz, 80 KHz, 40KHz, 20KHz sources.
Then AND and OR together, with the resulting HIGH signal enabling the burst of 200 KHz out.
I'd skip the pot, and add 1 more layer of logic ANDing to select the phase that goes thru.
Thanks sir
I have got one idea.I may generate such wave forms using timer and some logic gates.My idea is attached here.Please suggest it will be correct.if yes please help for the arduino code.I am very new in the same
Thanks
Yes, similar idea I think. Resize your pic's, they are so big I can only see maybe 1/6 of it at a time. 960 x 720. Anything bigger requires too much panning around on a 15.5" screen.
Thanks for your reply
There is nothing in picture .I have done the anding of two wave forms .Now i have generated these two waveforms using Timer 1 20KHZ and Timer 2 , 200KHZ in Arduino UNO .but stuck how to and its output as shown in above diagram.Please help
Thanks
Do you have any logic gates? Need like
74AHC08
and 74HAC32
Dear sir
I do not want to use any external logic gates hardware .I want to achive the same using controller logic gates and so I am searching for codes for the same .I will ready to sacrify the pins that is used by both timer .Using logic gates I have to mix the signal and connect it to another pin . So please help for the code
Thanks
First, figure out how to create 200 KHz PWM.
Then, learn how to use "blink with out delay" (its included as an example in the IDE)
and create the timing you want to turn PWM on & off,
on for 12.5uS, off for 37.5 (25%)
on for 25uS, off for 25uS, (50%)
on for 37.5uS, off for 12.5uS, (75%)
and lastly on for 49uS, off for 1 (98%).
I don't know how to achieve those times without digging into assembly code to precisely control the timing.



