Aeroponic Engineering and Vertical Farming

Slides:



Advertisements
Similar presentations
Electrical team Arduino tutorial I BY: JOSHUA arduini
Advertisements

Lab7: Introduction to Arduino
Embedded Sumo 1T4 – 1T5 UTRA.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Embedded Programming and Robotics
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
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.
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
SAMI MAKERSPACE MAKE: AN ELECTRONICS WORKSHOP. ARDUINO BASICS Credit to: Sparkfun and Linz Craig, Nick Poole, Prashanta Aryal, Theo Simpson, Tai Johnson,
Arduino The Internet of Things: Using the Arduino to Teach Coding.
Arduino Training New Mexico Mathematics, Engineering, and Science Achievement (NM MESA) Getting Started.
Arduino libraries Datatekniker Udvidet hardware/software.
Microcontroller basics Embedded systems for mortals.
1 Introduction to Haptics Introduction to the Hapkit board Allison M. Okamura Stanford University.
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Introduction to Arduino A very basic intro to Arduino, the IDE and the Servos class.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Arduino Programming. THE ARDUINO IS A MICROCONTROLLER – A LOW COST, LOW PERFORMANCE COMPUTER.
Introducing the Arduino Uno Presented by Dave Mawdsley, DACS Member, Linux SIG Member (wiring, programming and running a cute traffic light simulation)
Prototyping with Microcontrollers and Sensors. Overview Objective Background Information Problem Statement Materials Procedure Assignment Closing.
The Internet of Things: Using the Arduino to Teach Coding
Having fun with code, using Arduino in a middle school CS classroom
Arduino - Introduction
Arduino.
Arduino Part 1 Topics: Microcontrollers
Embedded Systems Intro to the Arduino
Getting Started: Building & Programming
Application of Programming: Scratch & Arduino
Assist. Prof. Rassim Suliyev - SDU 2017
Prototyping with Microcontrollers and Sensors
Microcontroller basics
Val Manes Department of Math & Computer Science
Downloading Arduino FOR WINDOWS.
Microcontroller basics
UTA010 : Engineering Design – II
An Arduino Workshop A Microcontroller.
Welcome to Arduino A Microcontroller.
Get Your Project Started with Arduino
Scoutbotics Robot Testing
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Lecture 2-2: Arduino Programming
Arduino - Introduction
Introduction to Arduino Microcontrollers
Introduction to Arduino Microcontrollers
Roller Coaster Design Project
Roller Coaster Design Project
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.
Arduino 101 Credit(s):
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Welcome to Digital Electronics using the Arduino Board
Introducing the Arduino Uno
Programming Micro Controllers
Teacher’s Note (do not include in student packet/slide show)
Arduino Part 4 Let there be more light.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino Leonardo Setup
Lab #1: Getting Started.
Arduino Uno circuit basics
Setting up a basic program with Arduino
Introduction to arduino
Arduino程式範例.
Introduction to Arduino IDE and Software
Presentation transcript:

Aeroponic Engineering and Vertical Farming Optional Programming Activity

Programming Pin 13, the built-in LED light on the Arduino Basic layout of the board. Learn how to program Pin 13 the built-in LED light on the Arduino. Programming Pin 13, the built-in LED light on the Arduino

Download Arduino IDE HTTPS://WWW.ARDUINO.CC/EN/MAIN/SOFTWARE Download and install Arduino IDE. https://www.Arduino.cc/en/main/software If using a Chromebook….. Download Arduino IDE HTTPS://WWW.ARDUINO.CC/EN/MAIN/SOFTWARE

File > Examples > Basics > Blink

Blink is the name of the sketch or program Blink is the name of the sketch or program. This program is going to turn on an LED for one second and then off for one second. Let’s learn the basic pieces of every program.

This is an example of a multiple line comment /* This is an example of a multiple line comment */ // comment Anything in between /* */ and/or behind the // is a comment. Comments are used by the programmer to remind him or her what different parts of the program are doing.

Every Arduino program has two functions. void setup(){} & void loop(){} Anything in between /* */ and/or behind the // is a comment. Comments are used by the programmer to remind him or her what different parts of the program are doing.

void setup(){} Code that goes between the curly brackets of the setup function runs once

pinMode () OUTPUT pinMode is a built in function that tells the Arduino if the pin is an INPUT or OUTPUT You need to tell the Arduino if the pin is an INPUT or OUTPUT. We use a built-in “function” called pinMode() to make LED_BUILTIN a digital output. A semicolon must be used to end a statement. It will separate elements of the program.

void loop(){} Code that goes between the curly brackets of the loop function runs over and over until the Arduino is reset or powered off

digitalWrite() HIGH = output of 5 volt LOW = output of 0 volts digitalWrite ()function A function that “writes” a value of High(on) or Low(off) to a specific digital output pin. Writing a value of “High” to LED_BUILTIN will cause PIN 13 to turn on, and also cause the connected LED to turn on.

delay() 1s = 1000 ms delay() function A delay simply tells the device to wait for a specified amount of time before moving on to the next line of code. Time is measured in milliseconds (ms).

Verify the code Compile the code and check for errors. Do this by clicking on the “Verify” button. It looks like a checkmark.

Connect the microcontroller to the computer with the USB cable

Tools > Board > Arduino/Genuino UNO Select the type of board you are using

Tools > Port > your_serial_port Windows COM#(Arduino/Genuino (UNO) Mac /dev/cu.usbserialXXXXXXXX The power LED on the Arduino will light Which serial port is the right one? Depending on how many devices you have plugged into your computer, you may have several active serial ports. Make sure you are selecting the correct one. A simple way to determine this is to look at your list of serial ports. Unplug your RedBoard from your computer. Look at the list again. Whichever serial port has disappeared from the list is the one you want to select once you plug your board back into your computer.

Upload the program to the Arduino You should see blinking lights on the Arduino board. This shows that the program is being uploaded. Upload the program to the Arduino by clicking on the “Upload” button. It is an arrow pointing to the right. After the program uploads disconnect the Arduino from the computer.

Add jumper wires or alligator clip with pigtails to the Arduino board Add jumper wires or alligator clip with pigtails to the Arduino board. Connect the other end of the wire to the hen house. The wire in pin 13 will connect to the positive piece of copper tape and the wire coming out of GND (ground) or negative piece of copper tape. Add the 9v battery to the battery holder. Connect to the Arduino and watch your lights blink on and off.

Change the length of time the pump is on and off. Challenge! Change the length of time the pump is on and off. Turn the pump on for 5 seconds and off for 2 minutes.

Create a sketch of your own. File > New Apply what you have learned a create a program of your own. File>New opens a new sketch or program.

New sketch Add comments…

Variables Define variables. A variable is a placeholder for values that may change in your code. You must introduce, or “declare,” variables before you use them. Variable names are case-sensitive!

Connect the microcontroller to the computer Upload the program – disconnect the USB Connect the hen house with a pigtail to the breadboard Add the 9v battery to the battery holder Power up the bank of lights

Connect the microcontroller to the computer Upload the program – disconnect the USB Connect the hen house with a pigtail to the breadboard Add the 9v battery to the battery holder Power up the bank of lights

Learn more at…. https://www.arduino.cc/en/Guide/ArduinoUno https://learn.sparkfun.com/tutorials/redboard-hookup-guide https://learn.adafruit.com/adafruit-arduino-lesson-1-blink