RASPBERRY PI WORKSHOP.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

Raspberry Pi The singing jelly baby.
V Avon High School Tech Club Agenda Old Business –Executive Committee –LCCUG meeting volunteer(s) –Reward Points Program New Business –Weekly.
Tony Yi 5/2/2015 CENG4480 TUTORIAL 3. ABOUT ME I am “the other” tutor of CENG4480 You can find me at Rm116 in SHB
Embedded Programming and Robotics Lesson 19 Raspberry Pi Programming in C 1.
Embedded Programming and Robotics
Controller, Sensors and Motors Ding Ke Tutorial 1, UGB 230N.
SINGLE BOARD COMPUTERS -KEVIN JOSE. WHY DO WE USE THEM? Good performance at low price GPIO capability to interact with the outside world Small form factor,
RASPBERRY PI IMPLEMENTING BINARY COUNTING Marlon Myers Computer Hardware Systems: EMT 2370 Instructor: Prof. Carranza.
Vehicle Collision Avoidance System
Automated Industrial Wind Tunnel Controller By Daniel Monahan and Nick DeTrempe Advised by Dr. Aleksander Malinowski.
Embedded Programming and Robotics
ECE 477 Final Presentation Team 12  Spring 2013 Xirong Ye Zongyang Zhu Chun Ta Huang Libo Dong.
Braille Printer An-Najah National University Faculty of Engineering Braille Printer Prepared by : Rbee waheeb Supervisor: Dr. Nidal Farahat May
DPNM Lab., POSTECH 1/8 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
Welcome to Week 4 at the Summer Computer Club Raspberry Pi (contd)
Introduction :  In the beginning, the calculator is the basic idea of computers out, then that arrived at the large computers.  in1980 or late seventies.
IN 1900 ICT Project Final Presentation. Group name : Code Squad.
Bonus EV3 Programming Lessons By Droids Robotics LEGO MINDSTORMS and Raspberry Pi IR Light controller.
Bonus EV3 Programming Lessons LEGO MINDSTORMS ev3dev and Raspberry Pi IR Light controller.
Designing a Control System Sayande Adekoye College of North West London.
Embedded Software Design Week V Advanced Python 7- segment Display.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
Electronic Craps Table. Objective Design a system to incorporate electronics into the game of craps to track bets and payouts while maintaining the interactive.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
CSE 341 Project : Ultrasonic Radar PRESENTED BY: NAME : AKIFA TASNEEM ID : SECTION: 02 1.
Raspberry pi GPIO Basic’s Lecturer: Reza Arjmandi Summer 2016 Preface: This chapter contains some basic recipes for setting up and using the Raspberry.
Zilogic Systems 1 Device Interfacing with Python and ZIO Zilogic Systems.
Class 1: Building a Raspberry Pi LED Flasher
RASPBERRY PI WORKSHOP.
RASPBERRY PI WORKSHOP.
Light Dependent Resistor
IoT 101 with Raspberry Pi and Azure
Peripherals – Keypad The Keypad provides a simple means of numerical data or control input. The keys can be attributed whatever data or control values.
Computer System Laboratory
Embedded Software Development with Python and the Raspberry Pi
Raspberry Pi Hands-on Seminars
Device Interfacing with Python and ZIO
Running your own web server
1 Button 2 Buttons Light Emitting Diodes LED and Buttons
UltraSonic Sensor VCC is the pin that powers the device, connect to 5V. Trigger is the pin that sends out the burst. Echo is the pin that outputs when.
Introduction To Programming with LEGO NXT 0
WORKSHOP LED CONTROL.
Building Raspberry Pi Controllers with Python
Session 3 DIY Moderate Project
‘SONAR’ using Arduino & ultrasonic distance sensor
Lighting LEDs with a RASPBERRY PI
Introduction to robotics
Arduino and Grove LET’S START.
Roller Coaster Design Project
Internet-of-Things (IoT)
Internet-of-Things (IoT)
Embedded Software Development with Python and the Raspberry Pi
Sensors and Logic Switches
Motion Controlled Servo Motor
What is a Raspberry Pi? The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard.
Networked Door Locking System
Reading / Writing analogue devices LED + Game-controller
DOMOTICA MAY MONTH Sander Claassen John Heesterbeek Ad van Berlo
Raspberry Pi – VNC Server Connection
Raspberry Pi 2/3 GPIO - LED, Button
Light Dependent Resistor
Passive Infrared Sensor
UNIT 11: RC-SERVOMOTOR CONTROL
Text Copyright (c) 2017 by Dr. E. Horvath
Controlling LED with PWM
Chapter 7 IoT Physical Devices and Endpoints
Setting up a Webcam on a Raspberry Pi
IoT System Development with Raspberry Pi and Django
Robot and Crickit HAT © Copyright 2019 by Dr. Elizabeth I. Horvath and Dr. Eva A. Horvath 1.
Presentation transcript:

RASPBERRY PI WORKSHOP

SENSOR WITH RASPBERRY PI A sensor is a device that detects and responds to some type of input from the physical environment. The specific input could be light, heat, motion, moisture, pressure, or any one of a great number of other environmental phenomena.

LCD with Raspberry Pi LCD (Liquid Crystal Display) is an electronic device that can be configured to display user defined characters. The LCD uses a parallel interface meaning that we will need many pins from our raspberry pi to control it.

CONNECTION OF LCD TO RASP PI

INSTALLING WIRING PI LIBRARY First check that wiringPi is not already installed. In a terminal, run: gpio -v cd git clone git:// git.drogon.net/wiringPi If you have already used the clone operation for the first time, then cd ~/wiringPi git pull origin To build/install there is a new simplified script: cd ~/wiringPi ./build

INSTALLING THE RPLCD LIBRARY The RPLCD library can be installed from the Python Package Index, or PIP. It might already be installed on your Pi, but if not, enter this at the command prompt to install it: After you get PIP installed, install the RPLCD library by entering: sudo apt-get install python-pip sudo pip install RPLCD

DISPLAY DATE AND TIME from RPLCD import CharLCD import time lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23]) while True: lcd.write_string("Time: %s" %time.strftime("%H:%M:%S")) lcd.cursor_pos = (1, 0) lcd.write_string("Date: %s" %time.strftime("%m/%d/%Y"))

SERVO A Servomotor, or servo, is a small device that has an output shaft. This shaft can be positioned to specific angular positions by sending the servo a coded signal. As long as the coded signal exists on the input line, the servo will maintain the angular position of the shaft. As the coded signal changes, the angular position of the shaft changes.

CONNECTION OF SERVO TO RASPBERRY PI

SERVO CODE import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(12, GPIO.OUT) p = GPIO.PWM(12, 50) p.start(7.5) try: while True: p.ChangeDutyCycle(7.5) # turn towards 90 degree time.sleep(1) # sleep 1 second p.ChangeDutyCycle(2.5) # turn towards 0 degree p.ChangeDutyCycle(12.5) # turn towards 180 degree except KeyboardInterrupt: p.stop() GPIO.cleanup()