2015 Generation of sine wave
Author: Rakesh Email id:
[email protected]
What is Gnu radio?
GNU Radio is a software library, which can be used to develop complete applications for radio engineering and signal processing. Introduction
GNU Radio is a free and open-source software development toolkit that provides signal processing blocks to implement software radios. It can be used with readilyavailable low-cost eternal R! hardware to create software-defined radios, or without hardware in a simulation-like environment. GNU Radio is licensed under the GNU General "ublic #icense $G"#% version &. 'll of the code is copyright of the !ree (oftware !oundation. )hile all the applications are implemented using python language while critical signal processing path is done using *++ language. Idea behind GNURADIO
he goal is to give ordinary software people the ability to hack the electromagnetic spectrum, i.e. to understand the radio spectrum and think of clever ways to use it. Why GNURADIO
Instead of purchasing multiple epensive radios, a single generic radio can be imple implemen mented ted using using GNU Radio Radio softwa software re and with with suppor supportt of minim minimal al hardwa hardware re to receive and transmit processed signal at reuired freuencies and any data type can be passed from one block to another i.e.it can be in bits, bytes, vectors, bursts or more comple data types (ince the performanc performancee critical critical blocks are implemented implemented in *++ using processor processor floating point etensions the developers are able to implement real-time, high-throughput radio systems in a simple-to-use, rapid-application-development environment.
/01&, (hree #akshmi *omple, 2nd !loor, 3pp. o 4ivekananda "ark, Girinagar, 5angalore - 678896. "h. No: 898-27;22;27, )ebsite: www.tenettech.com www.tenettech.com,,
3ne can use it to write applications to receive data out of digital streams or to send data into digital streams, which is then transmitted using hardware. GNU Radio has filters, channel codes, synchronisation elements, euali>ers, demodulators, vocoders, decoders, and many other elements which are called as blocks that are typically found in radio systems. !eatures he main features of GNU Radio are flexibility and configurability <tending GNU Radio is also uite easy, if you find a specific block that is missing you can uickly create and add it.
/01&, (hree #akshmi *omple, 2nd !loor, 3pp. o 4ivekananda "ark, Girinagar, 5angalore - 678896. "h. No: 898-27;22;27, )ebsite: www.tenettech.com www.tenettech.com,,
What is sine wave?
' curve curve repres represent enting ing period periodic ic oscil oscillat lation ionss of consta constant nt amplit amplitude ude as given given by a sine sine function. he sine wave or sinusoid sinusoid is a mathematic mathematical al curve that that descri describes bes a smooth smooth repeti repetiti tive ve oscillation. oscillation. It is named after the function sine, of sine, of which it is the graph. graph. It occurs often in pure and applied mathematics, mathematics, as well as physics as physics,, engineering, engineering, signal processing processing and and many other fields. his wave pattern wave pattern occurs often in nature, including ocean waves, waves, sound waves, and light waves. he human ear can can recogni>e single sine waves as sounding clear because sine waves are representations of a single freuency single freuency with with no harmonics? harmonics? some sounds that approimate a pure sine wave are whistling, whistling, a crystal glass set to vibrate by running a wet finger around its rim, and the sound made by a tuning fork . he GNU Radio *ompanion $GR*% is always a good choice to create flow graphs, provided that all the blocks you need are available in GR*. !irst, launch GR* by typing GNU Radio-companion on a terminal or command line. his will launch the GR* graphical environment. @eres an eample of how GR* can be used to create a simulation environment. he following following flow graph uses graphical graphical sinks to generate generate sine wave and display display it on the output screen. In the following tutorial on can vary the amplitude and freuency of sine wave and study its characteristics.
/01&, (hree #akshmi *omple, 2nd !loor, 3pp. o 4ivekananda "ark, Girinagar, 5angalore - 678896. "h. No: 898-27;22;27, )ebsite: www.tenettech.com www.tenettech.com,,
A% Generation Generation of sine wave using only software software he GNU Radio *ompanion with basic blocks $3ptions block and 4ariable ariable block%
defines the IB, itle and Bescription of the eperiment. O!tions bloc" defines
/01&, (hree #akshmi *omple, 2nd !loor, 3pp. o 4ivekananda "ark, Girinagar, 5angalore - 678896. "h. No: 898-27;22;27, )ebsite: www.tenettech.com www.tenettech.com,,
defines to declare variables globally. his block maps a value to a uniue #ariable #ariable $loc" defines variable. his variable block has no graphical representation. he v ariable can be referenced $by IB% from other blocks in the flowgraph. IB C sampDrate o 4alue C &2888@> o
%igna %ignall sourc source& e& signal source which is used to generate a sine wave of some pre-defined freuency and amplitude.
/01&, (hree #akshmi *omple, 2nd !loor, 3pp. o 4ivekananda "ark, Girinagar, 5angalore - 678896. "h. No: 898-27;22;27, )ebsite: www.tenettech.com www.tenettech.com,,
IB:analogDsigDsourceDD8 3utput type: float )aveform: sine !re: A888 'mpl:A
W' GUI sco!e sin"& he )E GUI (cope sink is the destination block of the flow chart. his block is used to view the time domain representation of the output. he simulation output of the received signal is seen with this block.
/01&, (hree #akshmi *omple, 2nd !loor, 3pp. o 4ivekananda "ark, Girinagar, 5angalore - 678896. "h. No: 898-27;22;27, )ebsite: www.tenettech.com www.tenettech.com,,
IB: wguiDscopesink2D8 ype: float Num input: A
(he )o*!lete bloc" re!resentation
/01&, (hree #akshmi *omple, 2nd !loor, 3pp. o 4ivekananda "ark, Girinagar, 5angalore - 678896. "h. No: 898-27;22;27, )ebsite: www.tenettech.com www.tenettech.com,,
Genrated sine wave +out!ut,
/01&, (hree #akshmi *omple, 2nd !loor, 3pp. o 4ivekananda "ark, Girinagar, 5angalore - 678896. "h. No: 898-27;22;27, )ebsite: www.tenettech.com www.tenettech.com,,