Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

arduino_intro

No description
by

ASWIN P K

on 22 August 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of arduino_intro

delay(time in ms)
HOW DOES AN ARDUINO LOOK?
ARDUINO IDE
WHAT IS
ARDUINO
?
WHY ARDUINO?
1........Takes a lot of complications away -



custom
bootloader, IDE, language (based on C/C++)
2.........Lots of different models

3.........Open source
(Hardware & Software)
HOW TO BEGIN.....???
setup()
* runs only once

*initialises settings
loop()
* called repeatedly
BASIC FUNCTIONS
pinMode(pin , mode)
digitalWrite(pin , HIGH/LOW)
analog functions
*analogRead()

*analogWrite()

Lets light an led using arduino....
So...
What all do we need?
What is PWM??
-> A digital square wave
-> Constant frequency
-> The fraction of time it remains ON
varies -- 0-100%
|
>
_
DUTY CYCLE
Calculating Duty cycle
In arduino....
pwm(analog) value= duty cycle x 255
LED Fade
LED BLINK
SERIAL COMMUNICATION
->
To correct errors
(Debugging)
->
Visual interface b/w microcontroller and PC
Serial functions
* Serial.available()
* Serial.read()
* Serial.print()
-> Serial monitor
-> Serial port
NOW YOU ARE ON YOUR OWN....
led
resistor
Breadboard
arduino
USB A to B cable
eg: pinMode(9,OUTPUT);
eg: digitalWrite(9,HIGH);
eg: delay(2000);
* Serial.begin(baud rate)
eg: variable=analogRead(A1);
eg: analogWrite(9,pwm value);
Full transcript