0% found this document useful (0 votes)
17 views13 pages

Documentation

Uploaded by

bassel.2123018
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views13 pages

Documentation

Uploaded by

bassel.2123018
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Documentation -week 1

Ohm's law is a formula used to


calculate the relationship between
voltage, current and resistance in
an electrical circuit.

Electrons flow from the negative terminal to the positive.


Conventional currentor simply current, behaves as if
positive charge carriers cause current flow. Conventional
current flows from the positive terminal to the negative.
LED:

You just need to connect positive terminal of LED with


the one end of resistor and then connect another end of
resistor with the positive terminal of Battery. Then
connect the negative terminal of LED with the negative
terminal of Battery. This Negative Terminal of Battery is
also referred as the Ground. It works at 2.3 to 2.9 v.
Resistor: is an electrical component that limits or
regulates the flow of electrical current in an electronic
circuit. Resistors can also be used to provide a specific
voltage for an active device such as a transistor.
Series vs parallel circuit:

Ammeter vs Voltmeter vs Multimeter vs Ohmmeter


Jumpers:

Jumper wires are used for making connections between


items on your breadboard and your Arduino's header
pins.

- Microprocessor consists of only a Central Processing


Unit, whereas Micro Controller contains a CPU,
Memory, I/O all integrated into one chip.
What is Arduino?
Arduino is an open-source programmable circuit board
that can be integrated into a wide variety of makerspace
projects both simple and complex. This board contains a
microcontroller which can be programmed to sense and
control objects in the physical world. By responding to
sensors and inputs, the Arduino can interact with a large
array of outputs such as LEDs, motors and displays.

Uno ( Main )

Mega

Nano

Mini

Lilypad

Boarduino
Why Arduino UNO??!
One of the most popular Arduino boards out there is the
Arduino Uno. While it was not actually the first board to
be released, it remains to be the most actively used and
most widely documented on the market. Because of its
extreme popularity, the Arduino Uno has a ton of project
tutorials and forums around the web that can help you
get started or out of a jam. We’re big fans of the Uno
because of it’s great features and ease of use. A small
electronic circuit used in the programming of a
microcontroller from the company Atmel ATmega328.
This circuit provides ports to connect the electronic
components directly to the controller through 13 digital
input/output pins (out of which 6 can be used as PWM
outputs) and 6 analog input pins.
Arduino UNO:
1. Reset Button : This will restart any code that is
loaded to the Arduino board
2. AREF : Stands for “Analog Reference” and is used to
set an external reference voltage
3. Ground Pin : There are a few ground pins on the
Arduino and they all work the same
4. Digital Input/Output : Pins 0-13 can be used for
digital input or output
5. PWM : The pins marked with the (~) symbol can
simulate analog output
6. USB Connection : Used for powering up your
Arduino and uploading sketches
7. TX/RX : Transmit and receive data indication LEDs
8. AT mega Microcontroller : This is the brains and is
where the programs are stored
9. Power LED Indicator : This LED lights up anytime the
board is plugged in a power source
10. Voltage Regulator : This controls the amount of
voltage going into the Arduino board
11. DC Power Barrel Jack : This is used for powering
your Arduino with a power supply
12. 3.3V Pin : This pin supplies 3.3 volts of power to
your projects
13. 5V Pin : This pin supplies 5 volts with 50mA of
power to your projects
14. Ground Pins : There are a few ground pins on
the Arduino and they all work the same
15. Analog Pins : These pins can read the signal from
an analog sensor and convert it to digital
Arduino IDE The tool used to write code in the Arduino C
language and then convert it into an executable form
that can be placed on the microcontroller.
1. Menu Bar: Gives you access to the tools needed for
creating and saving Arduino sketches.
2. Verify Button: Compiles your code and checks for
errors in spelling or syntax.
3. Upload Button: Sends the code to the board that’s
connected such as Arduino Uno in this case. Lights
on the board will blink rapidly when uploading.
4. New Sketch: Opens up a new window containing a
blank sketch.
5. Sketch Name: When the sketch is saved, the name
of the sketch is displayed here.
6. Open Existing Sketch: Allows you to open a saved
sketch or one from the stored examples.
7. Save Sketch: This saves the sketch you currently
have open.
8. Serial Monitor: When the board is connected, this
will display the serial information of your Arduino
9. Code Area: This area is where you compose the code
of the sketch that tells the board what to do.
10. Message Area: This area tells you the status on
saving, code compiling, errors and more.
11. Text Console: Shows the details of an error
messages, size of the program that was compiled
and additional info.
12. Board and Serial Port: Tells you what board is
being used and what serial port it’s connected to.
Setup code
• Is code in Setup ()
Function
• Executed right after
power-up or reset
• Executed only one time
• Used to initialize
variables, pin modes,
start using libraries
Loop Code
• Is code in loop () function
• Executed right after
setup code
• Executed repeatedly
(infinitely)
• Used to do the main task
Delay
ofand
theSerial:
application
delay(): Pauses the program for time (in milliseconds).
Serial.begin(9600): sets serial port for communication.
9600 is the baud rate
Serial.print(“”): Prints a value or a “string” in the serial
monitor.
Serial.println(“”): same as “Serial.print(“”)” but starts a
new line after the String is finished.

Finished

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy