CTY SAR FCPS Vedant mathur, Juliana schalkwyk

Slides:



Advertisements
Similar presentations
Lab7: Introduction to Arduino
Advertisements

ARDUINO FRAMEWORK.
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
How to use Arduino By: Andrew Hoffmaster.
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
Intro to Programming and Microcontrollers. Activity Group into pairs and sit back-to-back. Pick one person who is going to draw. The other person will.
Lesson 4: Breathing Monitors. Breathing Monitors In the past 3 classes, we’ve learned – How to write to a digital pin – How to read the value of a digital.
Embedded Programming and Robotics Lesson 9 Keypad and LCD Display 1.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Embedded Programming and Robotics
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Digital Outputs LCD Display
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
Practical Electronics & Programming
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Tweaking Your Simon Adding a photoresistor and changing code Instruction by Pete Lewis and Linz Craig.
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
:Blink Blink: Er. Sahil Khanna
Arduino Programming Part 6: LCD Panel Output ME 121 Portland State University.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Infrared Proximity Sensors & Liquid Crystal Display Instructor Dr Matthew Khin Yi Kyaw.
Prototyping with Microcontrollers and Sensors. Overview Objective Background Information Problem Statement Materials Procedure Assignment Closing.
Using a SparkFun™ serial LCD with an Arduino
Arduino.
Arduino Part 1 Topics: Microcontrollers
Getting Started: Building & Programming
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
European Robotic LABoratory
Scrolling LCD using Arduino.
Prototyping with Microcontrollers and Sensors
Lab 2: Arduino Sensors Topics: Arduino Sensor Reading, Display
Val Manes Department of Math & Computer Science
CS4101 Introduction to Embedded Systems Lab 10: Tasks and Scheduling
Introduction to the Arduino
LCD.
Liquid Crystal Display Arduino
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
3.0 ARDUINO WORKSHOP PRESENTATION FOR STUDENTS IN 4º DEGREE OF COMPULSORY SECONDARY EDUCATION 3.0.
‘SONAR’ using Arduino & ultrasonic distance sensor
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Continuing with LED’s and Arduino
IoT Programming the Particle Photon.
Using Photoresistors with an Arduino
CSCI1600: Embedded and Real Time Software
Arduino: For Loops.
Arduino programs Arduino toolchain Cross-compilation Arduino sketches
CSCI1600: Embedded and Real Time Software
CTY SAR FCPS Shawn Lupoli, Elliot Tan
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino Motor Lab Inspired by NYU ITP project
CTY SAR FCPS Shawn Lupoli, Elliot Tan
LCD (LIQUID CRISTAL DISPLAY) SCREENS
Arduino 7 Segment Display Lab
Aeroponic Engineering and Vertical Farming
Arduino Leonardo Setup
Lab #1: Getting Started.
Arduino Uno circuit basics
Setting up a basic program with Arduino
UNIT 1 First programs.
Arduino程式範例.
Introduction to Arduino IDE and Software
Interrupts.
LCD.
CTY SAR FCPS Alexander Velikanov
Presentation transcript:

CTY SAR FCPS Vedant mathur, Juliana schalkwyk Arduino Project CTY SAR FCPS Vedant mathur, Juliana schalkwyk

Goal To get our LCD to display and update the time properly. To allow the knock circuit to detect knocks and accordingly perform demonstrations with the LEDs. Allow the LEDs to perform a given sequence of lighting.

Programming Time on LCD

Utility Project Part 1 Include all necessary libraries #include <LiquidCrystal.h> #include <Time.h> Initializing global variables The LCD itself needs to initialized as a LiquidCrystal object “LiquidCrystal lcd(12, 11, 5, 3, 2)” LED pin constants Knock sensor pin reference Knock sensor storage integer Threshold Increment Index Setup() lcd.begin(cols, rows) – initializes interface to LCD screen, then specifies the dimensions of the display lcd.print(“Hello, World”) – prints text to the LCD

Utility Project Part 2 Setup() Loop() Begin LCD Set time Set pinModes print time information run knock circuit function

CODE

Code Explanation The code began with the necessary include statements to the external libraries. We incorporated the LiquidCrystal library and the Time.h library to our project. Following that came the declaration of our global variables. We implemented specific pin references for our 3 LEDs and set the analog pin for the Knock sensor. The "incrementIndex" variable was an integer that would keep track of the knock sensor's inputs. After that, we began the development of the setup() function. That function included the initialization of the LCD and the pinMode declarations. We then created two functions, printTime() and knockCircuit(), to complete the program. The printTime() function formatted the given time from the Time library and printed it out in a viewable manner. The knockCircuit function performed the scanning tasks of the knock sensor and accordingly ran the LEDs through their multiple sequences. These functions were then called in the loop() function.

Building the circuit

Diagram of LED Circuit

Building the circuit For the circuit's development, we initially created two separate circuits and joined them together, connecting the pins to the Arduino.

Putting it All Together UPLOAD! Remember to check for the flashing RX and TX lights, and a “Successful upload” message in your console Understanding the process LCD RS pin to digital pin 12 LCD Enable pin to digital pin 11 LCD D4 pin to digital pin 5 LCD D5 pin to digital pin 4 LCD D6 pin to digital pin 3 LCD D7 pin to digital pin 2 LCD R/W pin to ground Knock sensor to A0 and GND

Thank You!