Thứ Bảy, 31 tháng 3, 2018

Auto news on Youtube Mar 31 2018

Hey what's up welcome to MissTech I'm Falguni and I'll show you the coolest app of 2018

this is called the like APP to get this app need to go to the Play Store and type in like and enter

or you can get in through the link provided in the description of this video download

and install the app you can allow your location in order to find videos made by your nearby

people sign up with your phone number as I had an account I will simply login this app

is pretty much like a social media itself here you can post videos and you'll be ranked

in three sectors latest global popular according to the likes shares and comments

you get on your video you can shoot your very own video and put special effects like theirs

to do this click on this icon and grant all the permissions the app asks for now click

shoot fast and click here now you can record a normal fast slow or even a timelapse video

and its recording after you are done recording now you can add special effects like so you

see that?

now let me add another effect isn't this amazing but don't be so satisfied because this is

just the beginning of surprises here you can see an effect mix section this feature offers

mirror effect reveal effect and much more and in the Boom section here are some awesome

special effects like lightning missile and things you cannot imagine in an app now let's

indulge in the 4d Magic app create now and follow the instructions the app instructs

you I have already gone through the instructions and I will show it over here now it's done

you can add special effects in the same way you can even add background to your footage

use Touch Magic to use number of different test magic effects now let's check out the

superpower section download the features the app asks for and now you can add superpower

to your footage just click use and tap the record button now stand in the shift area

to show your full body to the camera like I do so and act as you like you can learn

how to pose for the superpower from here .Here is a made video from me as an example in

the stickers section you can find number of pretty stickers that are pretty much like

Snapchat filters this one looks cute on you you can take pictures on this filter using

this you can even record videos using this now I will show you the dialogue acting part

this is somewhat like kareoke the music and the dialogue lyrics will appear on your screen

with the background music and even the vocal all you need to do is just lip sync click

on the dialogue acting and you can choose from a lots and lots of Music as well as popular

movie dialogues I will choose the song and click here now this is a practice period if you

think you are ready you can start recording let me show you pineapple pen apple pen pine..

I have previously done the video for you and you can see it over here I have a pen I have

an apple ah apple pen I have a pen I have pineapple ah pineapple pen you see that? now

let's get into the Music Magic this is another part like dialogue acting in which you

can add frame like filters while recording but this is only for music

you can change to a desired music from here

so that's it for the video I hope you guys liked it if you did make sure to hit that thumbs up and write a common down below if you didn't like

the video make sure to hit the dislike button and subscribe to my channel because this is

just the beginning of a revolution

For more infomation >> Like app : How to use like app [Full Guide] - Duration: 5:38.

-------------------------------------------

A GUIDE TO ALL INSANES | Flood Escape 2 | The Wally (READ DESCRIPTION) - Duration: 9:11.

FLWQOPEJQIEHQGRW

For more infomation >> A GUIDE TO ALL INSANES | Flood Escape 2 | The Wally (READ DESCRIPTION) - Duration: 9:11.

-------------------------------------------

13 Essential Bucket List Trips to Make Before 30 | World Travel Guide - Duration: 14:48.

You've just finished school.

You want to travel the world.

But you don't have that much money.

You're young. You're broke.

But guess what? You're rich

with the most valuable resource of all: time.

However, once you turn thirty, your time is sucked up by

work and family commitments, and most people put off

big travel dreams until retirement,

by which time they are too old to enjoy the best things about travel.

It's a sad reality. I recently turned thirty,

and I can vouch..you do start to slow down;

you don't have as much energy,

and I realize there're certain trips you should take before you turn thirty.

Whether you're fresh out of school, in the depths of a quarter life crisis,

or like me believe that age is just a number,

this video will inspire you to get out and see the world while you still can.

And If you haven't already, hit that subscribe button.

Turn on notifications. Give this video a big thumbs-up,

and share it with your travel buddies if you haven't already.

These are thirteen trips you need to take before you turn thirty.

Let's do it. Let's go.

First up: backpacking through Europe with your best friends.

I know it's a little bit cliche, but trust us,

this really is an incredible experience.

We did it. I still remember my first backpacking trip with my best friends from high school.

It is a great experience for first-time travelers

because it's relatively easy to get around.

There's a lot of diversity in a small area,

and most passports have visa-free travel.

Most importantly, it's a great trip to take with your best friends

because as you get older, unfortunately life happens....

People get busy. Priorities come up,

and it gets harder and harder to dedicate time to go travel with friends.

But pretty much everyone dreams of going to Europe.

So, it's the perfect trip to take after graduation

before work, school, and life take everyone in different directions.

Travel by train using a Eurail Pass.

Make new friends in hostels, and learn to say"cheers" in as many

languages as your liver can handle. Trust me.

This will be a trip you're going to remember for decades to come.

In your twenties, you don't have a lot of cash,

but you do have a lot of time.

That's why it's important to take a big trip before you're thirty.

Sure. Europeans get to enjoy month- long holidays

throughout their entire career.

But in the United States, once you start working,

you're going to get two weeks of vacation time per year maximum for the rest of your working life.

That's why you should consider taking a month or two to travel before you really get focused on your career.

If you have student loans, we're not suggesting that you default on your creditors

and flee the country, never to return again.

But we are suggesting that you put this moment into perspective.

You might not know exactly what you want to do with your life,

but you're also freer than you'll ever be again.

In the U.K and Australia, it's quite common to take a "gap year,"

a year between school and life to

work and travel abroad.

If you want more information about how much it costs to travel the world for a full year,

click on this card to see the full video.

A gap year is not an option for most people.

But don't worry. A big trip does not have to take a full year or cost a lot of money.

The key to longterm travel on a budget is picking a part of the world

where you can get by on $25 to $50 a day-

places like Southeast Asia, Latin America, and

the cheapest country of all, India, where you can easily

get by on $1000 a month.

Do the big trip now because nobody on

a death bed ever wishes he had spent more time in the office.

But what if you can't convince your friends to come with you?

Then it's time for a solo trip.

There are few times in your life when no one is depending on you.....

when you don't have a job, a mortgage, and a family

all looking at you to pay the bills.

That's why of all these experiences on this list, traveling alone is

one of the most important ones to do in your twenties,

unless you get divorced and start trying to figure out the meaning of life again

and then go on an Eat Pray Love mission for a year,

because that could happen, too.

That definitely happens. No judgment there.

Traveling solo takes you away from the expectation of society,

a family, and even of your friends.

It allows you to discover who you are and what you truly like.

And most importantly, it teaches you to be comfortable being alone.

Southeast Asia is the ideal place for a solo trip.

It's cheap; there's plenty of other travelers around,

and sipping a beer on the Mekon River is the perfect way to figure out

what it is you want to do with your life

when it's time to settle down and get a real j-o-b.

Whoa....whoa...whoa.

Who said anything about getting a "real job" just yet?

Between school and a career there are plenty of opportunities

to work temporary jobs that allow you to continue to travel.

If you want to learn more about those, click on the card up there.

You could sail around the Mediterreanian(??) on a private yacht

and dine on fresh scallops.....

the leftover scallops from the yacht owner,

but nobody's counting.

You could teach English in Japan

or tend bar in a beach front cabana in Rio de Janeiro.

Rather than living to work, work to live, and see where it takes you.

For example, after I studied abroad in New Zealand,

I worked a season in Queenstown, basically doing odds and ends,

anything to pay the rent and buy my snowboard lift passes.

New Zealand and Australia are a great location for the working holiday visa.

There's more information about that in a video

that we're going to shoot soon.

So subscribe and turn on notifications, if you haven't already.

If you don't have a lot of savings and aren't ready for a 9 to 5,

consider a working holiday visa.

Working holiday visas are only valid for people under thirty years old.

So what are you waiting for?

Plus if you're worried about taking time off to travel

and how it's going to look on your resume`

just remember that most employers value life experience.

And going traveling gives you a ton of life experience.

At some point everyone should travel like a free spirit.....

no plans, no expectations, and not a lot of money to make it happen.

Your twenties is a time to read Thoreau and Kerouac.

To scrape together your meager savings,

pack your life into a backpack and

hit the road with thumb out-stretched.

Use Couchsurfing.org to find free places to stay

Woof.org to find farms where you can trade a day's labour for room and board,

and hitch hike from A to B.

If you travel like this, you really don't need much money at all.

This trip is important because it teaches you how to trust-

to trust yourself, to find a way forward,

to trust strangers to help you when you're in need,

and to trust life to give you what you need when you let go of your expectations.

Embrace serendipity. Say "yes" to life,

and enjoy the journey because if the destination

is marriage and a family, the time to take this journey is right now.

Good luck convincing your significant other to go hitch hiking and couch surfing.

But if you do find someone who's down for that,

you've got a keeper.

Unfortunately, when you hit thirty,

one of the first things to go is your energy..

that unbridled passion to just do stuff all the time.

Trust me.. I've just turned thirty, and all I want to do is just sit on the couch

in my pajamas, watch Netflix, and take baths with epsom salt.

That is why you should travel to a festival in your twenties.

The wilder, the better....

and ideally one that lasts for about a week.

Raise steins in October Fest in Munich.

Run with the bulls in Pamplona. Oh my god.

Or travel to the craziest carnival on your continent.

It could be Rio; could be New Orleans;

or it could be Venice, Italy.

Of course, music festivals count, too..

Glastonbury in the U.K., Coachella in California,

or if you're really going for it...Burning Man.

Just remember: be safe; stay hydrated,

and wear sunscreen, folks.

You're not going to be twenty forever.

Next up: travel for love.

Travel is one of the best ways to meet a potential lover.

If you meet on the road, chances are

you already have something in common....

that you like to travel.

Whether you believe in fate or not,

you'll never know what a chance encounter could be

unless you go for it.

Our parents met on a train in the 1970s (actually 1980) in Switzerland.

And if my mom hadn't asked my dad to see his map,

chances are we wouldn't be here.

So go visit that beautiful foreign exchange student you met in college,

and next time a handsome guy asks you if you want to go on an adventure,

say yes.

And if you're already in a relationship,

travel can be a great way

to find out how compatible you really are,

especially when things don't go smoothly.

If you are in a relationship and want some tips on how

to travel better as a couple, click that card.

Beyond traveling for who you love,

travel for what you love on a dirtbag trip.

A dirtbag trip is when you use all of your time and money

to pursue one of your favorite hobbies,

usually at the price of comfort.

The term originated with hardcore rock climbers who would camp out

in Yosemite Valley in California to climb

the face of El Capitan for months at a time.

Whether you rock climb, surf, snowboard, or scuba dive,

it's all about trying to spend time

doing what you love.

As you grow older, work and family take up more of your time,

and hobbies become vital for your well being.

So make them priorities now.

Your future self will be happier and healthier for it.

No matter what your preferred hobby,

everyone should spend some time backpacking in nature.

And everyone should use their own two feet

to climb a mountain, both metaphorically and literally.

Right now, you are in peak physical condition.

Climbing a mountain is not going to get an easier.

So find your nearest mountain and climb it.

Once you have the basic gear, camping is extremely cheap,

and it's a great way to travel and save money for bigger adventures

abroad, whether that's climbing Macchu Pichu,

Mount Kilimanjaro, or seeing the glaciers of Patagonia.

Speaking of glaciers, you should visit them while you can.

Warming waters are bleaching the Great Barrier Reef,

rising tides are swallowing Venice,

and glaciers are melting everywhere.

Who knows what these places will look like in ten years?

Visit them now.

See the impacts of climate change for yourself,

and learn what you can do to make a positive difference.

Share your firsthand experience with skeptical friends

and family members back home, and hopefully we can

all find the collective will to do something

and preserve these places so that our own children

can visit them in their twenties, as well.

Another essential experience is cultural immersion.

Travel almost always gives you perspective

because it shows you how other cultures do things.

But often times we're so eager to see

as much as we can that we move from place, to place,

to place, frantically snapping photos,

and in the end, you see nothing.

At least once in your twenties, stick around a place

long enough to get some cultural immersion.

The best way to immerse yourself is through language.

Use this opportunity to brush up on your high school Spanish

in Antigua, Guatemala, or learn French in Paris

or dive in the deep end and learn Mandarin in rural China.

If you're not a language person, don't worry.

Maybe just do a home stay or take a cooking course.

Or just stay around long enough to feel like a local,

whether it's a two week intensive course or two years

with the Peace Corps, taking the time to lose yourself in another

culture is very much worth it.

Still with us? Good.

We've discussed a lot of trips so far,

and chances are that even the most footloose traveler

can't check them all off before thirty.

As you approach the big 3-0,

you tend to learn how to prioritize things in your life.

Let's talk about your bucket list.

The bucket list is a list of things that you want to do before you kick the bucket...

that is before you die.

When you're twenty, you feel like you're invincible,

but the sad truth is that you are not.

Between Marko and me,

we've had nearly a dozen friends pass away

before they turned thirty.

We are not here forever.

It sounds morbid, but accepting that life

is going to come to an end really helps you prioritize

how you spend your time and your money.

The key is: dream like you'll live forever

and live like you'll die tomorrow.

Look at the ideas we've just given you.

Add in a couple of your own,

and ask yourself.....what is the one trip

that you really want to do before you die?

It can be big or it can be small,

but pick the dream that's closet to your heart,

and promise yourself you'll do whatever

it takes to make it happen

before you turn thirty.

Because if you tell yourself you'll do it when you retire,

it may never happen.

We're now at the end of our list.

Let's talk about the end of your twenties

and the importance of meaningful travel.

When you're young, it's natural to see travel as a

check list of countries to do and even as a way

of seeking status among your friends.

Once you've partied in Europe,

taken selfies in Rio

and collected a dozen passport stamps,

you might feel an odd emptiness.....

a feeling that it's not the world that is to be

conquered, but the self.

Enter the spiritual journey

using travel as a tool for personal growth,

whether it's a meditation retreat in Thailand,

volunteering at an orphanage in India,

or the most literal spiritual journey of all,

walking the pilgrimage of Camino de Santiago

in Northern Spain.

The spiritual journey is one that never ends,

and it helps you articulate that feeling

that you had the first time you traveled....

this idea of the non duality of nature

that despite our superficial cultural differences,

underneath we are all one.

Whoa... Far out.

You and I, the same thing.

All right ladies and gentlemen, Vagabuddies,

thank you for watching.

Those are our thirteen trips to take before you're thirty.

What is your travel bucket list?

Share it below in the comment section.

Also if you have any travel tips videos

that you'd like us to make,

make sure you share those down there, as well.

If we end up making the video,

you're getting a shout-out.

Okay guys, if you liked this video, you know what to do:

give it a big thumbs-up;

share it with your travel buddies and

subscribe to Vagabrothers and turn on those notifications, if you have not already.

And in the meantime, stay curious, keep exploring,

and we will see you on the road.

Peace.

For more infomation >> 13 Essential Bucket List Trips to Make Before 30 | World Travel Guide - Duration: 14:48.

-------------------------------------------

MSL Guide to Arduinos: Piezo Tone - Duration: 11:15.

Welcome to the Marston Science Library Guide to Arduinos.

Today, we will be working on the piezo tone tutorial.

Our goals: Learn how to translate from notes to frequency in Hertz, Learn to translate

simple sheet music to letters and durations, Learn how to include other files in your sketch,

and learn how to use the tone function to create simple melodies out of piezo.

Let's get started.

In this step, we will learn how to translate from notes to frequency in Hertz.

The basic formula for the frequencies of the notes of the equal tempered scale is given

by f sub n equals f sub zero times a to the nth power where f sub zero equals the frequency

of one fixed note which must be defined.

where n equals the number of half steps away from the fixed note you are, where f sub n

equals the frequency of the note n half steps away, and a equals 2 to the 1/12 power, the

twelfth root of 2 equals the number which when multiplied by itself 12 times equals 2

A common choice when translating notes to frequency is setting the A above middle C

or A4 at f sub zero equals 440 Hertz.

Using a scientific calculator, you have A equals 2 to the 1/12th power, which can be

calculated using the x root y function.

n is the number of notes away from A4, higher note: positive, lower note: negative.

So A to the n power can use the x to the y power function and f sub zero we will keep

constant at 440 Hertz.

For n, you have to include white and black keys.

Knowing that there are 12 steps per octave, and A4 equals 440, what should A3 equal?

Keep in mind that if you are at a higher note, n is positive; if you are on a lower note,

n is negative.

If f sub zero equals 440 times 2 to the 1/12th power, times n is -12, we have 2 to the negative

1st power, times 440, so we have 440 times 1/2 equals 220 Hertz.

So A3 would equal 220 Hertz.

What about for A5?

If we know that A5 is 12 steps away in the octave, we again know that the higher note

n is positive, so 440 times 2 to the 1/12th power to the 12th power equals 2 times 440,

equals 880 Hertz.

So A5 would equal 880 Hertz.

Now that you know how to calculate frequency, you want to make sure you use numbers the

Arduino can use, and round to the nearest whole number.

Luckily Arduino has created a library of all of the frequencies needed.

We will use this as our pitches.h library in our Arduino code.

To include libraries in your sketch, use #include.

Library files use the .h file type for the headers of library folders.

Navigate to the drop down arrow and add a new tab in your sketch in your Arduino integrated design

environment.

Name it pitches.h and hit OK.

User-generated libraries like pitches.h will go in the subdirectory with your sketch.

We're now going to paste the code we found before of all of the note frequencies

I will select all, and copy, and I will paste it here to our code

In this step, we will learn how to translate simple sheet music into notes and durations

We are reading to find which note we need on a scale of C1 to C8, including sharps and the duration of the note

For note type, 1/16th, our duration for the Arduino will be 16

For 1/4th, it will be 4

For 1/2, it will be 2 and for 1 it will be 1

In order to read sheet music, we must be able to read the notes.

On the treble clef, we can see the range goes from C4 to G5

C4 is on the line below the bottom most line of the 5 lines of our treble clef.

We have E4, G4, B4, D5, and F5 as our five lines

Our spaces include F4, A4, C5, and E5

In terms of note duration, the most commonly encountered note durations include

the whole note, the half note, the quarter note, the eighth note, and the sixteenth note.

The whole note is an open dot, the half note is an open dot with a stem

the quarter note is a closed dot with a stem

the eighth note is a closed dot with a stem and a flag

and the sixteenth note is a closed dot with a stem and two flags

In your code, be sure to first include your pitches.h library

#include "pitches.h"

Then declare your variables for your integer sensorReading to equal zero

Next, create and declare an integer array of your notes using the names referenced in pitches.h

Use empty straight brackets after an array name to indicate that data is to be added but no size is given

and curly brackets to fill in your data

Your for loop will access your arrays

Repeat step 3 by creating an array of your tempo or note durations

In your void loop, use a for statement

There are 3 parts to the for loop header

for and then in the parentheses your initialization

your condition, and your increment.

For initialization, declare an integer for the first note in your melody.

For condition, count how many notes are in your melody array

and have integer less than that number

For increment, use the compound operator ++ to increment from zero to your last note

This for loop plays the notes in succession

In order to determine how long each note should be played, declare an integer to store the duration of the note

Use the assignment operator, =, to set this integer equal to the length of a whole note

I used 1200 but you can use 1000 milliseconds

divided by your second array crossed with your first array

So we have note durations multiplied by our array thisNote

This aligns the order of the notes with the order of durations

Next, use the tone() function

There are three parts to the tone() function:

tone, and then in parentheses, your pin number, your frequency, and your duration.

First set your pin to digital 9 where piezo 2 is connected.

Second, set the frequency to your first array melody by the declared incremented thisNote

Third, set your duration to your newly declared integer, noteDuration.

Next, declare an integer for delay between notes and set it equal to the noteDuration multiplied by 1.3

Use the delay() function to set the time of delay between notes in milliseconds

Use the noTone() function to stop the tone from playing at the end

Since it is in the void loop() function

Check all semicolons and brackets

In order to run your code, you must first save the file File>Save

You will then click the checkmark to verify your code

If there are no errors in your code,

the sketch will compile using the loading bar

until it is done compiling

You can then plug in your Arduino into your computer using the USB cable

You will then want to go to Tools>

You will want to make sure that Board is selected at Arduino Uno

and Serial Port> has a connection

Mine is usbmodem411, yours may be something different

You will hit the right arrow > Upload

and watch it upload to your Arduino

In order to make the piezo tone, you will need to plug in the piezo

with the red wire to digital pin 8 and the black wire to ground

You will then need to upload your code to the board

[Gravity Falls Theme Song in digital sound]

For more infomation >> MSL Guide to Arduinos: Piezo Tone - Duration: 11:15.

-------------------------------------------

Nettoyage complet du foie: Un guide simple à suivre étape par étape ! - Duration: 3:36.

For more infomation >> Nettoyage complet du foie: Un guide simple à suivre étape par étape ! - Duration: 3:36.

-------------------------------------------

Blender Guide - Engrave Text and Images to a model - Duration: 8:21.

Hello, Hello Ciamar a tha sibh? It's Andy Gallacher her and welcome to another Blender Guide tutorial

In which today I'll be showing you how to engrave Text and Images into an Object

So I'll be using this default cube just to demonstrate

To Start off

Press "S" to scale on an "X" and just scale it up

And "S"again on the "Z" Axis and make it bigger

Use the Blue Arrow to move it up

And use the Green Arrow to move it back

So we want to start off by adding text by hitting Shift + A

Go down to Text

Tab into edit mode

And type in any text you want

I'm just going to use the word Test

So we want to Rotate it on the "X" Axis by Hitting

"R" to Rotate, on the "X" and 90 degrees and enter

Come over to your settings Tab here where it says the Letter "F"

Thats to edit

The Text

Come down to were it says "Extrude"

Increase that

To any size you want

For me I'll be using

Extrude Value of 0.070

"S" to scale

To make the text slightly bigger

No what we want to do is move it into place to where we want

"One" on the Numbpad to go to front view

"5" on the Numpad to go to Orthographic view

And just move it to where you want

Now come down to where it says Object

Transform

Origin to Geometry

Before we can

Engrave it we have to convert this Text into a Mesh

So before we do that make sure all your settings are correct in this Tab

Before you convert it as you will no longer have access to this Tab

To convert it

Right click on the text

Make sure it is selected

Alt + C

And select

Mesh from Curve, Meta, Surf, Text

Now you see it is completely different

And you can no longer

Edit the text

Now

G to Grab on the Y Axis

Move it to the object

Make sure it is

Where you want and Inside the wall like so

Now Right click on the wall

Or your Object

Come over to the Modifiers Tab

Add Modifier

And we want to add a Boolean

Come down to where it says Operation

Change the Intersect to Difference

Now in the Object

Section here

Left click and Select Text

Which is going to be this

It looks like nothing has happened but if you Right click on the Text and press H to hide

As you see

The text is Engraved into the wall

However, if you try to move it out Before

You accept the Modifier

There will be nothing there

Hit Apply

Once you remove the text

There is the engrave

Now to engrave an Image

You will need the file format of an SVG

You can download them from Google or you can convert it

In my Opinion, it will be better just to download it as an SVG from Google rather than trying to convert it

Once you have your SVG format

Come up to where it says File

Import

Scalable Vector Graphic (SVG)

Just find where

You have your SVG file

And Import

It will import very small

For me I am using the Overwatch Logo

B to Box select and select everything

And press S to scale

And make it bigger

Each one of them is a curve

So we need to convert this to a Mesh Also

Alt + C, Convert to Mesh

Make sure all of it is selected

B to select everything

To connect it all

If you tried to edit it it will just edit one piece

Ctrl + J to join

If you want a High Poly

Engrave

You keep all these fine details

Once you have it Press A to select everything

E to Extrude

And just extrude up

Press A twice to deselect and select everything

R to rotate on the X axis

By 90 degrees

Tab out of Edit Mode

Select Object, Transform

Origin to Geometry

And it is the same as the Text from here

Move up

One on the Numpad

Go to Front view

Move it in place. S to scale

And move it back

Push it inside the wall

Right click on the wall

Add modifier

Boolean

Select Intersect to Difference

And select the Object

To Curve

And Apply

And there we have it

And move it out

The image is now engraved on to the wall

To make it alot easier to see

Change the Material Colour

Make it Darker

Viewpoint Colour

As you see it is there

So I hope you enjoyed todays video

If you did Please leave a like

And if you are new

Please press that Subscribe button as It will allow my channel to grow

And bring you more content like this

So till next time

Have a goodnight

For more infomation >> Blender Guide - Engrave Text and Images to a model - Duration: 8:21.

-------------------------------------------

Take a glance to Most Advanced World Travel Guide - Duration: 3:33.

For more infomation >> Take a glance to Most Advanced World Travel Guide - Duration: 3:33.

-------------------------------------------

MSL Guide to Arduinos: Pseudo-Theremin - Duration: 6:32.

Hello, and welcome to the Marston Science Library Guide to Arduinos.

Today, we will be working on the pseudo theremin tutorial.

Our goals today are to learn:

how to use analogRead() function to detect the amount of light from a photocell

Learn about translating notes to frequency in Hertz

Learn how to use tone() to create simple sounds out of the piezo

and learn about the theremin and replicate this instrument

For this pseudo theremin tutorial, the electrical components you will need include

the Arduino Uno board, a breadboard, a piezo,

a photocell, and a resistor, as well as four jumper wires and the USB cable to connect to your computer

In the setup, imagine that we have two circuits: both start and end at the Arduino.

In the first, we take a wire from the 5 volt to the breadboard to provide power.

We then use the same row to connect our photocell to send current through it.

The second leg of the photocell of course will go on a separate row.

The current will then run from the second leg of the photocell to

A0 to send the analog data being collected from the photocell back to the Arduino

We'll use a separate wire to connect this leg back to analog pin 0

The same row needs one leg of the resistor, which is bi-directional,

and the resistor needs to bridge the breadboard to another row that can be grounded.

The grounding wire goes from that role in the breadboard, back to the ground pin on the Arduino

completing circuit one.

The Arduino now has the data it needs to determine how much light is shining.

So for output, we take a wire from the Arduino digital pin 8 to a new row on the breadboard.

This provides data and current.

On this same row is the red wire of the piezo.

The black wire of the piezo should be grounded in the same row as the resistor.

There is more than one correct way to build a circuit.

You could separately ground each circuit, but this is the setup will be using for now.

The first thing we want to do is copy and paste our Arduino code

from the website to the Arduino integrated design environment, also known as the app

I have now copied and pasted our code.

As you can see, int, void setup(), void loop(), analogRead(), and tone()

are all highlighted yellow, as these are functions that the Arduino code recognizes.

We next want to save our code. Go to File> Save

In our code, we will first declare our variables

Integer piezo will be mapped to digital pin 8

Our integer photocell will be mapped to analog pin 0

In our void loop() function, we will ask analogRead to read the value of photocell on analog 0 pin

and turn that into our integer light input.

We will then say that the integer frequency equals 200 plus light input divided by 4

And then we will ask the Arduino to produce a tone on our piezo pin

at the frequency that the light input has requested.

If you ever have any questions about code in the Arduino, please refer to the Arduino reference page:

arduino.cc/en/reference/HomePage

The Arduino sketch is actually really straightforward.

We simply take an analog reading from analog pin 0 to measure the light intensity

This value will be in the range of something like 0 to 700

We add 200 to this raw value to make 200 Hertz the lowest frequency

and simply add to the reading divided by 4 to this value to give us a range of around 200 Hertz to 370 Hertz

Now that we have compiled our code, we can upload to the board. We'll need to connect our USB and upload.

If any of your pins have become dislodged, you may need to fix it

We can now hear that the piezo is giving a certain tone

It changes depending on how much light the photocell is receiving.

And there you have it: a pseudo theremin.

Thanks for joining us!

Không có nhận xét nào:

Đăng nhận xét