This document provides an overview of microprocessors and the Arduino development environment. It begins with definitions of a microprocessor as a tiny, inexpensive computer that can interact with the physical world through sensors and actuators. It then discusses what an Arduino is and provides instructions for a basic "blink" example project using an LED. The document covers Arduino software, hardware, and programming concepts like inputs, outputs, variables, and functions. It also explores modifying and debugging code and connecting additional hardware like buttons, sensors, and stepper motors.
The introduction to Arduino labs at Malmö University. These slides have been handed down since the beginning of Arduino. They have more authors then i can remember and should by no means be considered mine.
The introduction to Arduino labs at Malmö University. These slides have been handed down since the beginning of Arduino. They have more authors then i can remember and should by no means be considered mine.
Embedded system course projects - Arduino CourseElaf A.Saeed
• Arduino IDE.
• P1-Arduino with led.
• P2-Arduino with push button.
• P3-Arduino with potentiometer.
• P4-Arduino with PWM.
• P5-Arduino with LCD.
• P6-Arduino with PIR.
• P7-Arduino with DHT11
• P8-Arduino with LM35.
• P9-Arduino with gas sensor.
• P10-Arduino with dc motor.
• P11-Arduino with Servo Motor.
• P12-Arduino with Bluetooth.
• P13-Arduino with ultrasonic.
• P14-Arduino with IR sensor.
--------------------------------------------------------
Email: elafe1888@gmail.com
linkden: www.linkedin.com/in/elaf-a-saeed-97bbb6150
facebook: https://www.facebook.com/profile.php?id=100004305557442
github: https://github.com/ElafAhmedSaeed
youtube: https://youtube.com/channel/UCE_RiXkyqREUdLAiZcbBqSg
slideshare: https://www.slideshare.net/ElafASaeed
Slideplayer: https://slideplayer.com/search/?q=Elaf+A.Saeed
Google Scholar: https://scholar.google.com/citations?user=VIpVZKkAAAAJ&hl=ar&gmla=AJsN-F7PIgAjWJ44Hzb18fwPqJaaUmG0XzbLdzx09
The introduction to Arduino labs at Malmö University. These slides have been handed down since the beginning of Arduino. They have more authors then i can remember and should by no means be considered mine.
Arduino is an open- source computer hardware and software company, project and user community that designs and manufactures microcontroller-based kits for building systems consisting of digital devices, interactive objects that can sense and control in the physical world.
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )Jikrul Sayeed
Name of the project: Logic Gate Tester for DELD EE3114
1.1Abstract:
Performing various types of logic operation we need to use logic gates and in integrated circuit there are more than one gates fabricated in a single IC. Before using gates for various purposes we need to check logic gates including all logic
combination considering in Binary (Logic 1 & 0) needs to implement. It is a time consuming task to check all the input combinations, thus the sole purpose of this project to make it automatic to check all the logic .
Biggest online megastore for buying arduino zero, buy arduino zero online, arduino zero india, arduino zero india online at best buy prices, arduino zero at affordable price in india, good quality arduino zero ndia by robomart, arduino zero online india by robomart, get arduino zero online at robomart
URL:https://www.robomart.com/arduino-uno-online-india
How to measure frequency and duty cycle using arduinoSagar Srivastav
Source - http://www.engineersgarage.com
Arduino has several applications. We may find its application in many different fields and areas. It can be used in measurement field also to measure electrical quantities (like voltage, current, power etc) or physical quantities (like temperature, moisture, light intensity, humidity etc) or electronic component values etc.
Embedded system course projects - Arduino CourseElaf A.Saeed
• Arduino IDE.
• P1-Arduino with led.
• P2-Arduino with push button.
• P3-Arduino with potentiometer.
• P4-Arduino with PWM.
• P5-Arduino with LCD.
• P6-Arduino with PIR.
• P7-Arduino with DHT11
• P8-Arduino with LM35.
• P9-Arduino with gas sensor.
• P10-Arduino with dc motor.
• P11-Arduino with Servo Motor.
• P12-Arduino with Bluetooth.
• P13-Arduino with ultrasonic.
• P14-Arduino with IR sensor.
--------------------------------------------------------
Email: elafe1888@gmail.com
linkden: www.linkedin.com/in/elaf-a-saeed-97bbb6150
facebook: https://www.facebook.com/profile.php?id=100004305557442
github: https://github.com/ElafAhmedSaeed
youtube: https://youtube.com/channel/UCE_RiXkyqREUdLAiZcbBqSg
slideshare: https://www.slideshare.net/ElafASaeed
Slideplayer: https://slideplayer.com/search/?q=Elaf+A.Saeed
Google Scholar: https://scholar.google.com/citations?user=VIpVZKkAAAAJ&hl=ar&gmla=AJsN-F7PIgAjWJ44Hzb18fwPqJaaUmG0XzbLdzx09
The introduction to Arduino labs at Malmö University. These slides have been handed down since the beginning of Arduino. They have more authors then i can remember and should by no means be considered mine.
Arduino is an open- source computer hardware and software company, project and user community that designs and manufactures microcontroller-based kits for building systems consisting of digital devices, interactive objects that can sense and control in the physical world.
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )Jikrul Sayeed
Name of the project: Logic Gate Tester for DELD EE3114
1.1Abstract:
Performing various types of logic operation we need to use logic gates and in integrated circuit there are more than one gates fabricated in a single IC. Before using gates for various purposes we need to check logic gates including all logic
combination considering in Binary (Logic 1 & 0) needs to implement. It is a time consuming task to check all the input combinations, thus the sole purpose of this project to make it automatic to check all the logic .
Biggest online megastore for buying arduino zero, buy arduino zero online, arduino zero india, arduino zero india online at best buy prices, arduino zero at affordable price in india, good quality arduino zero ndia by robomart, arduino zero online india by robomart, get arduino zero online at robomart
URL:https://www.robomart.com/arduino-uno-online-india
How to measure frequency and duty cycle using arduinoSagar Srivastav
Source - http://www.engineersgarage.com
Arduino has several applications. We may find its application in many different fields and areas. It can be used in measurement field also to measure electrical quantities (like voltage, current, power etc) or physical quantities (like temperature, moisture, light intensity, humidity etc) or electronic component values etc.
Este comic, editable por otra parte es un documento imprescindible para todos los arduinomaniacos y sobretodo para quienes nos dedicamos a divulgar a todo tipo de públicos. Su autor JODY CULKIN, de la que me declaro mega fan desde ya.
What is a "microcontroller"?
This slideshow is an introduction to the concept of a micro, an overview of several types and finally, a focused intro to Arduino and how to program one.
It covers several topics: basics, drivers and shields, GPIO, compilers and IDEs, hradware protocols I2C, SPI, UART. The presentation also provides several examples: DC motor control, stepper motor control, reading analog data ADC, what is DMA and a music equalizer (both software and hardware).
6th International Conference on Machine Learning & Applications (CMLA 2024)ClaraZara1
6th International Conference on Machine Learning & Applications (CMLA 2024) will provide an excellent international forum for sharing knowledge and results in theory, methodology and applications of on Machine Learning & Applications.
Literature Review Basics and Understanding Reference Management.pptxDr Ramhari Poudyal
Three-day training on academic research focuses on analytical tools at United Technical College, supported by the University Grant Commission, Nepal. 24-26 May 2024
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsVictor Morales
K8sGPT is a tool that analyzes and diagnoses Kubernetes clusters. This presentation was used to share the requirements and dependencies to deploy K8sGPT in a local environment.
Understanding Inductive Bias in Machine LearningSUTEJAS
This presentation explores the concept of inductive bias in machine learning. It explains how algorithms come with built-in assumptions and preferences that guide the learning process. You'll learn about the different types of inductive bias and how they can impact the performance and generalizability of machine learning models.
The presentation also covers the positive and negative aspects of inductive bias, along with strategies for mitigating potential drawbacks. We'll explore examples of how bias manifests in algorithms like neural networks and decision trees.
By understanding inductive bias, you can gain valuable insights into how machine learning models work and make informed decisions when building and deploying them.
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTjpsjournal1
The rivalry between prominent international actors for dominance over Central Asia's hydrocarbon
reserves and the ancient silk trade route, along with China's diplomatic endeavours in the area, has been
referred to as the "New Great Game." This research centres on the power struggle, considering
geopolitical, geostrategic, and geoeconomic variables. Topics including trade, political hegemony, oil
politics, and conventional and nontraditional security are all explored and explained by the researcher.
Using Mackinder's Heartland, Spykman Rimland, and Hegemonic Stability theories, examines China's role
in Central Asia. This study adheres to the empirical epistemological method and has taken care of
objectivity. This study analyze primary and secondary research documents critically to elaborate role of
china’s geo economic outreach in central Asian countries and its future prospect. China is thriving in trade,
pipeline politics, and winning states, according to this study, thanks to important instruments like the
Shanghai Cooperation Organisation and the Belt and Road Economic Initiative. According to this study,
China is seeing significant success in commerce, pipeline politics, and gaining influence on other
governments. This success may be attributed to the effective utilisation of key tools such as the Shanghai
Cooperation Organisation and the Belt and Road Economic Initiative.
2. what is a microchip? tiny, inexpensive, computer which can
interact with the physical world
feedback
sensors
microphone
infrared sensor
C02 sensor
compass
motor
LED
valve
speaker
actuators
μ chip
brain
=
programmed
behavior
7. 1. download arduino software (https://www.arduino.cc/en/Main/Software)
blink: software
2. plug in arduino to laptop with USB cable
5. select board > Arduino Genuino / UNO
3. run Arduino software
6. select COM Port > COMXX (windows) or dev/...Arduino Uno (Mac)
*Windows Device Driver install (Device Manager > Update Driver >
select Arduino/Drivers folder)
4. file > examples > basic > blink
8. syntax
functionName (argument 1, argument 2)
{
do something
between curly
brackets
}
semicolons for most line endings;
// comments after double slashes
/* comments
between
star slashes */
9. asked to choose a sketch folder name: this is where your Arduino sketch
will be stored. Name it Blinking_LED and click OK. Then, type the following
text (Example 01) into the Arduino sketch editor (the main window of
the Arduino IDE). You can also download it from www.makezine.com/
getstartedarduino. It should appear as shown in Figure 4-3.
// Example 01 : Blinking LED
#define LED 13 // LED connected to
// digital pin 13
void setup()
{
pinMode(LED, OUTPUT); // sets the digital
// pin as output
}
void loop()
{
digitalWrite(LED, HIGH); // turns the LED on
delay(1000); // waits for a second
digitalWrite(LED, LOW); // turns the LED off
delay(1000); // waits for a second
}
blink: software
comment
(for humans)
part of code
where we define
input/output pins
Required in every
Arduino sketch
main code which
will be repeated
over and over.
Required in every
Arduino sketch
do nothing for
1000 milliseconds
(one second)
do nothing for
1000 milliseconds
replace “LED”
with “13”
when compiled
set pin 13 to
OUTPUT
sets pin 13
to 5V
sets pin 13
to GND
*HIGH = 5V
LOW = 0V
14. specialized pins
needs power (+)
can convert
analog to digital
can compare
voltages
Can talk to computers
has a clock
has reconfigurable
sensing and
actuating pins
can “interrupt”
itself
15. blink: hardware Arduino must be plugged in...
...to your computer,
in order to download
the code.
after being programmed:
(USB cable also supplies 5V)
can be battery powered
or plugged into wall
adapter (no longer needs
computer).
23. microchips operate
faster than human
sensory apparatuses
human eyes can detect:
<60-90 Hz
human ears can detect:
20 - 20,000Hz
our microchip
runs at
16 MHz!!
blink: Thresholds of human perception
26. Debugging Tips:
-the compile button
-display line numbers (File > Preferences)
-the serial monitor and serial printing (make sure same baud rate)
-isolate, test one thing at a time.
-metal connections are exposed on the bottom of
the board, beware of stray bits of metal or metal
tables.
-if your arduino is turning off right after turning
on, it’s probably shorting (ground and power are
connected).
27. diagnostic tools: mulitmeter & oscilloscope
measures voltage and current
at single location and time
multimeter oscilloscope
measures voltage and current
at multiple locations and times
30. // Example 03A: Turn on LED when the button is pressed
// and keep it on after it is released
#define LED 13 // the pin for the LED
#define BUTTON 7 // the input pin where the
// pushbutton is connected
int val = 0; // val will be used to store the state
// of the input pin
int state = 0; // 0 = LED off while 1 = LED on
void setup() {
pinMode(LED, OUTPUT); // tell Arduino LED is an output
pinMode(BUTTON, INPUT); // and BUTTON is an input
}
void loop() {
val = digitalRead(BUTTON); // read input value and store it
// check if the input is HIGH (button pressed)
// and change the state
if (val == HIGH) {
state = 1 - state;
}
if (state == 1) {
digitalWrite(LED, HIGH); // turn LED ON
} else {
digitalWrite(LED, LOW);
}
}
Now go test this code. You will notice that it works . . . somewhat. You’ll
declare an
INPUT too
if statement
checks a
condition and
executes the
proceeding
statement if the
condition is
“true”
*1 = TRUE
0 = FALSE
button: software
variable =
box for storage
32. introduce
multiple readings
taken at different
times to solve
the bouncing
probem
debounce: software
// Example 03B: Turn on LED when the button is pressed
// and keep it on after it is released
// Now with a new and improved formula!
#define LED 13 // the pin for the LED
#define BUTTON 7 // the input pin where the
// pushbutton is connected
int val = 0; // val will be used to store the state
// of the input pin
int old_val = 0; // this variable stores the previous
// value of "val"
int state = 0; // 0 = LED off and 1 = LED on
void setup() {
pinMode(LED, OUTPUT); // tell Arduino LED is an output
pinMode(BUTTON, INPUT); // and BUTTON is an input
}
void loop(){
val = digitalRead(BUTTON); // read input value and store it
// yum, fresh
// check if there was a transition
if ((val == HIGH) && (old_val == LOW)){
state = 1 - state;
}
old_val = val; // val is now old, let's store it
if (state == 1) {
digitalWrite(LED, HIGH); // turn LED ON
} else {
digitalWrite(LED, LOW);
}
}
36. reuse existing code!
find code online and use it
if you’re a beginner, don’t bother
making anything from scratch just yet.
(The more popular the sensor/actuator
the easier this will be to find online)
37. Libraries
premade packages of software
procedures which save you time.
libraries provide extra
functionality for use in sketches,
e.g. working with hardware or
manipulating data.
38. 1. Find thing you want to talk to
2. Find and download the library
3. Get experimenting!
eg. radio transmitter/reciever
Libraries