IISER Workshop Part1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

yteCake

w w w. b y t e c a ke . c om

Arduino Robotics Workshop


IISER PUNE
5th October 2019
Ramandeep Singh

Eshan Singh

Ritvik Jain
Puja Bhattad

Parivesh Kurmi
Rinkesh Chhetia

Volt
What even
is an
Ard-oo-
whino?
aka, this question is still
hard to answer despite 8
years since I got into
this stuff
Arduino Level 1 – Getting Started
By the way…

https://tiny.cc/ardcreate
Go here and follow the instructions to install
a small piece of necessary software.

(Alternate: https://tiny.cc/ardide)
Most of these pins can be used for
both outputs and inputs.

Analog output pins are marked by the


~ (tilde) symbol.

Analog input pins are the 5 AX pins


on the left side.

How does analog work here? We’ll


get to that in a little bit.
Baby’s First Arduino Program
In the Arduino Create Editor, type up this program with the two basic functions, without
the comments:

We’ll use this structure for every single one


of our programs, no matter how complex
they may become.

First, we’ll start with something that


requires no circuitry: Blinking the inbuilt
LED on the Arduino.
First Program Code

The important function!


The Breadboard
Now we can get an external LED…

Resistor. 220 Ω: limits the flow of


current to the LED – it might burn
out otherwise.
Another LED!

Exercise:

Adjust the program from


earlier to blink both of
these LEDs alternatively!

I know, terribly exciting!


Solution
Another LED - Delay

Now try this:

The delay number is in


milliseconds. Try adjusting
it to smaller and smaller
values – below 1, to the
decimals.
Pulse Width Modulation

You can’t use digital pins to directly


supply say 2.5V, but can pulse the
output on and off extremely quickly to
produce the same effect.

The on-off pulsing happens so


quickly, the connected output device
“sees” the result as a reduction in the
voltage.
s
Introducing… analogWrite!

Go to the Fade example:

The important
function!
Where do I get this stuff
Arduino UNO Compatible: Rs 350 to 450
https://www.amazon.in/Uno-ATmega328P-Compatible-ATMEGA16U2-
Arduino/dp/B015C7SC5U
Arduino UNO Starter Kit: Rs 2500 onwards
https://www.amazon.in/Quad-Store-TM-Starter-
Beginners/dp/B01KNR581U

https://robokits.co.in/
Gandhinagar, Gujrat http://buyrobo.in/
Aundh, Pune
http://www.mgsuperlabs.co.in/estore/

Nagpur

Bhudwar Peth

Sadashiv Peth

You might also like