1 of 16

Intro to Arduino

WeHack November Workshop

2 of 16

Our Team

Yagnika Choppadandi

Sreeja Amaresam

3 of 16

What is WEHack?

    • Women and other minorities focused hackathon at UT Dallas
    • A space to learn, build, and connect with other students
    • Open to students of all experience levels
    • No prior hackathon experience needed
    • Meet other students interested in technology and innovation

4 of 16

What is an Arduino?

    • A small, programmable circuit board that reads inputs and controls outputs
    • Beginner-friendly, cheap, and used by hobbyists and engineers
    • Example projects:
      • Automatic plant waterer
      • Line-following robot
      • Smart lights
      • Wearable tech

5 of 16

Setup

    • Arduino board
    • IDE
    • Code

OR

Use Tinkercad to access all three

6 of 16

Meet the Board

The main components that you will interface with:

    • USB Port - power + upload code
    • Power jack - external power
    • Digital pins 0-13 - on/off
    • Analog pins A0-A5 - read a range of values
    • 5V/GND - power and ground
    • Reset button - restarts your program

7 of 16

The Microcontroller

    • The brain of the Arduino
    • Converts code into logic
    • Based on GPIO pins:
      • Can be set as input or output
      • Used to control things or read values

8 of 16

The Pins

Reachable via Pin Headers

    • Allows temporary connections

​

Digital pins (0-13):

    • Reads/outputs binary values (HIGH and LOW)

Pin 0 (RX) & Pin 1 (TX) - USB communication

Pins with ~ symbol: capable of PWM

    • PWM - alternates voltage (HIGH and LOW) on specified frequency
    • good for controlling motors, setting RGB value for LED.

​

Analog pins (A0 - A5) - reads analog values from sensors

​

9 of 16

Power

Multiple ways to power system:

    • USB port - power from computer
    • DC Barrel Jack - batteries or outlet
    • Vin - external power source

​

3.3V and 5V - power sources at different volatages

GND - ground source for circuits

10 of 16

Anatomy of a Sketch

    • Very similar to C code
    • Allows variables - int, double, bool, byte, long
    • setup() - runs once at the start
    • loop() - repeats forevery

11 of 16

Setup()

    • pinMode(PIN_NUM, INPUT/OUTPUT) - configure a pin to input or output
    • Serial.begin(BAUD_RATE) - begin serial communication at a baud rate (speed of communication; like frequency on radio)

12 of 16

Loop()

    • digitalWrite(DIG_PIN, HIGH/LOW) - write values to pins to turn on or off
    • digitalRead(DIG_PIN) - read values, usually sensors
    • analogWrite() and analogRead() - similar but for analog pins
    • Serial.println() - write to serial
    • delay(NUM) - add delay between next command or iteration

13 of 16

Electronics Basics

    • Builds circuits with no soldering
      • Holes in each row are connected
      • The side rails carry power (+) and ground (-)
      • Allows for more sensors - Arduino only has a few voltage source and ground pins

​

    • Only work one way
      • Long leg = positive (+)
      • Short leg = negative (-)
    • Always use a resistor (220Ω) with an LED so it doesn’t burn out

Breadboard

LEDs

14 of 16

DEMO!!!

15 of 16

Feedback form

https://forms.gle/grZtJmT6ZV2Fur1SA

16 of 16

Thank You