Fill in Order Details

  • Submit paper details for free using our simple order form

Make Payment Securely

  • Add funds to your account. There are no upfront payments. The writer will only be paid once you have approved your paper

Writing Process

  • The best qualified expert writer is assigned to work on your order
  • Your paper is written to standard and delivered as per your instructions

Download your paper

  • Download the completed paper from your online account or your email
  • You can request a plagiarism and quality report along with your paper

lab report number (The purpose was to project all the waves on oscilloscope provide by the code teacher) Net Duino

LAB REPORT #2Name

Date

Course Code

Table of contents

AbstractPage 3

Introduction

Sin Wave Generator Page 4

Square Wave GeneratorPage 5-6

Saw tooth Wave GeneratorPage 7

ConclusionPage 8

Abstract

The experiment detailed herein was done in classroom. The purpose was to project all the waves on oscilloscope provide by the code teacher. The teacher had explained and showed us Square Wave, Sine Wave and Triangle/Saw tooth Wave. Through C#, the code was embedded into the Net Duino. The circuit that had been made earlier was connected to the Oscilloscope. The three waves were seen in the attacked oscilloscope.

Introduction

The lab report commences by the introduction of the three above mentioned waves. All the waves were generated using the same voltages. The oscilloscope helps to take screen shot of the waves. Additionally, each wave was represented using a code. The Waves are presented as show through the code placed in NetDuino.

Sine Wave Generator

using System;

using System.Net;

using System.Net.Sockets;

using System.Threading;

using Microsoft.SPOT;

using Microsoft.SPOT.Hardware;

using SecretLabs.NETMF.Hardware;

using SecretLabs.NETMF.Hardware.NetduinoPlus;

// Gives a PWM output that, its duty cycle varies as a function of a sine wave.

//It is like DAC. To see a Sine wave on scope pass the output through a low pass RC filter.

//Also if you connect the output to a LED its intensity varies like a sine wave.

namespace NetduinoPlusPWM_SineWave{

public class Program

{

public static void Main()

{

int value = 0;

int degree = 0;

//PWM pwm = new PWM(Pins.GPIO_PIN_D5);

PWM pwm = new PWM(Cpu.PWMChannel.PWM_3, 500, 0.5, false);//PIN D10

while (true)

{

degree += 1; // lets go from 0 to 360 degree over and over

degree %= 360; //remainder of 0-359

// sin() function returns an integer from -1000 to 1000. We need to shift it up by a 1000 to become positive

value = 1000 + Microsoft.SPOT.Math.Sin(degree); // value is between 0 and 2000

uint nValue = (uint)((value) / 20); // lets scale value from 0-2000 to 0-100. The percent duty cycle is nValue pwm.DutyCycle = (((float)(nValue))/100); // set the duty-cycle to a specific nvalue //Thread.Sleep(10);

// Debug.Print(degree.ToString());

// Debug.Print(value.ToString());

// Debug.Print(nValue.ToString());

}

}

}

-27622516383000 }

Description

In this starting wave generator which is Sine wave, the section of the law indicates the real code of the wave and also a screen shot as obtained from Oscilloscope.

Square Wave Generator

using System;

using System.Net;

using System.Net.Sockets;

using System.Threading;

using Microsoft.SPOT;

using Microsoft.SPOT.Hardware;

using SecretLabs.NETMF.Hardware;

using SecretLabs.NETMF.Hardware.NetduinoPlus;

namespace NetduinoPlusApplication1

{

public class Program

{

static long DelayTicks;

static long ticks;

//long DelayTicks = 500*10; //#ticks for 500us

static void delay(long duration)

{

DelayTicks = duration * 10; //period and measured in microseconds

ticks = Utility.GetMachineTime().Ticks; // capture current time and put it in ticks

while ((Utility.GetMachineTime().Ticks – ticks) < DelayTicks) ;

}

public static void Main()

{

// Make ramp wave

OutputPort led = new OutputPort(Pins.GPIO_PIN_D0, false);

long period = 1000; //1=1usec

long lowTime=0;

while (true)

{

lowTime+=20; //increase the low time part of the pulse

if (lowTime >= period)

// turn LED ON

led.Write(true);

// let it be ON

delay(period – lowTime); //high time is period – lowTime

// turn LED OFF and let it stay OFF

led.Write(false);

delay(lowTime);

lowTime = 0;

}

}

}

}

033274000

Description

In this second wave generator, the real code of Sine waves and the screen shot obtained from oscilloscope is shown.

Saw Tooth Wave Generator

using System;

using System.Net;

using System.Net.Sockets;

using System.Threading;

using Microsoft.SPOT;

using Microsoft.SPOT.Hardware;

using SecretLabs.NETMF.Hardware;

using SecretLabs.NETMF.Hardware.NetduinoPlus;

namespace NetduinoPlusApplication1

{

public class Program

{

public static void Main()

{ //uses hardware pwm. LED is connected to PIN D10 (PWM_3) and a grounded resisior of 220

double dutyCycle = 0;

//at port PWM3, freq=1000hz, duty cycle=0.5 and output not inverted.

var pwm = new PWM(Cpu.PWMChannel.PWM_3, 1000, 0.5, false);//PIN D10

var button = new InputPort(Pins.ONBOARD_SW1, false, Port.ResistorMode.Disabled);

pwm.Start();

while (true) //keep polling

{

if (button.Read() == true) //if button pressed

{

if (dutyCycle < 1)

dutyCycle = dutyCycle + .05; //as long as the button pressed increment the duty cycle

else dutyCycle = 0;

pwm.DutyCycle = dutyCycle;

Thread.Sleep(300); //to avoid multiple read of the key pressed

}

}

}

}

}

Description

In the last and third section, Saw tooth wave is shown. This section of the experiment shows the actual Saw tooth wave code and screen shot as indicated through Oscilloscope.

Conclusion

At the end of the experiment the conclusion was that regardless of similar voltages across all the three waves, suppose there is a change in frequencies of the waves, the way waves are presented in oscilloscope can differ. Also, I observed that minus having the correct code into the NetDuino. The projection and the circuit would not be accurate as would be expected.

WHAT OUR CURRENT CUSTOMERS SAY

  • Google
  • Sitejabber
  • Trustpilot
Zahraa S
Zahraa S
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.
Stuart L
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!
Mindi D
Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.
Samuel Y
Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.
Cindy L
Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Got an A and plagiarism percent was less than 10%! Thanks!

ORDER NOW

CategoriesUncategorized

Consider Your Assignments Done

“All my friends and I are getting help from eliteacademicresearch. It’s every college student’s best kept secret!”

Jermaine Byrant
BSN

“I was apprehensive at first. But I must say it was a great experience and well worth the price. I got an A!”

Nicole Johnson
Finance & Economics

Our Top Experts

See Why Our Clients Hire Us Again And Again!


OVER

10.3k
Reviews

RATING
4.89/5
Average

YEARS
13
Mastery

Success Guarantee

When you order form the best, some of your greatest problems as a student are solved!

Reliable

Professional

Affordable

Quick

Using this writing service is legal and is not prohibited by any law, university or college policies. Services of Elite Academic Research are provided for research and study purposes only with the intent to help students improve their writing and academic experience. We do not condone or encourage cheating, academic dishonesty, or any form of plagiarism. Our original, plagiarism-free, zero-AI expert samples should only be used as references. It is your responsibility to cite any outside sources appropriately. This service will be useful for students looking for quick, reliable, and efficient online class-help on a variety of topics.