Reading / Writing analogue devices LED + Game-controller

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

V Avon High School Tech Club Agenda Old Business –Executive Committee –LCCUG meeting volunteer(s) –Reward Points Program New Business –Weekly.
Potentiometer Electric circuit Cell or Battery Resistor Switch Bulb Earth/Ground LED.
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
DC-DC Converters Convert a fixed DC Source into a Variable DC Source
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
PWM (Pulse Width Modulation)
Servo Control Using Analog Signal Obtain “analog” input using analogRead().
Micromouse Meeting #3 Lecture #2 Power Motors Encoders.
Microprocessors Tutorial 2: Arduino Robotics
Embedded Programming and Robotics Lesson 12 Introducing the Raspberry Pi Intro to Raspberry Pi1.
Coding By: Katie XXXXXX. Agenda Programming Languages Hardware Coding Example 1: Hello World Coding Example 2: Fibonacci Sequence Coding Example 3: Balloon.
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
Development Environments Raspberry Pi ® Saman Amighi 04/2014 ® Raspberry Pi Foundation.
PWM Circuit Based on the 555 Timer. Introduction In applications LED Brightness Control we may want to vary voltage given to it. Most often we use a variable.
Electronic transmissions Main controls Shift timing is computer controlled Line pressure is computer controlled which controls shift feel Computer can.
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
Embedded Programming and Robotics
Pulse Width Modulation (PWM). 100% Pulse Width Modulation (PWM) 0% On the chipKIT there are 490 periods per second. Use analogWrite(pin, value) to control.
4A How often Unit 1 Hobbies. 4A Unit 1 How often We use how often to ask about the frequency that something happens.
oPEN Simulation Environment PENSE PENSE PENSE is a simulation framework written in C++ using fully object oriented design patterns and it's designed.
Microprocessors Tutorial 2: Arduino Robotics. Agenda 1. Robot Anatomy 2. Sensor Review 3. PWM 4. MAKE: Fade 5. Motors 6. H Bridge 7. Robot Control library.
DPNM Lab., POSTECH 1/8 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
DMX 3CH 650mA LED Driver wiring diagram DMX IN DMX OUT
Welcome to Week 4 at the Summer Computer Club Raspberry Pi (contd)
Python for intel Galileo GEN2 TYWu. Software Download/Setup "Bigger" Linux Image Download the Arduino IDE for Galileo –
PWM: Pulse Width Modulation © 2014 Project Lead The Way, Inc.Digital Electronics.
Analog Output Materials: animatronic head Processing Quiz HW: code links.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
Module 8 Tutorial  An 8086 system is used for controlling the speed of a motor. The motor can operate at 5 different speeds (1- 5).  The speed.
-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon
Embedded Software Design Week III Processor Basics Raspberry Pi -> Blinking LEDs & pushing buttons.
Raspberry pi GPIO Basic’s Lecturer: Reza Arjmandi Summer 2016 Preface: This chapter contains some basic recipes for setting up and using the Raspberry.
Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C.
Zilogic Systems 1 Device Interfacing with Python and ZIO Zilogic Systems.
Zilogic Systems 1 Device Interfacing with Python and ZIO Zilogic Systems.
RASPBERRY PI WORKSHOP.
TOPIC:PWM LED DIMMER/BRIGHTNESS CONTROL BY 555 TIMER
Nicholas Reich Ethan Plummer R. Alex Kibler
Device Interfacing with Python and ZIO
LED Driving Basics (for non-CCC type displays)
Chapter A - The Raspberry Pi Computer
1 Button 2 Buttons Light Emitting Diodes LED and Buttons
The Raspberry Pi Initiative
Intro to the Arduino Created by
Dimming Function – Pulse-width Modulation (PWM)
Exploring more with LED’s and Arduino
WORKSHOP LED CONTROL.
RASPBERRY PI WORKSHOP.
Building Raspberry Pi Controllers with Python
Session 3 DIY Moderate Project
Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder
Lighting LEDs with a RASPBERRY PI
Raspberry Pi Pi 2 Model B.
CS-4540 Robotics Lab 00 - Introduction and OHM's law.
Internet-of-Things (IoT)
Building Raspberry Pi Controllers with Python
Raspberry Pi: External Inputs & Outputs
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.
UNIT 19 PWM 로봇 SW 교육원 조용수.
Raspberry Pi 2/3 GPIO - LED, Button
RPi 2/3 GPIO + Web(Flask)
Sensors and actuators Sensors Resistive sensors
Dr. Unnikrishnan P.C. Professor, EEE
Controlling LED with PWM
Toy Train Safety Control System
Chapter 7 IoT Physical Devices and Endpoints
Presentation transcript:

Reading / Writing analogue devices LED + Game-controller Iot Reading / Writing analogue devices LED + Game-controller

Recapitulation Start up the Raspberry Pi Burn the image to SD-card See / get access to the R-Pi – some problems to make the windows update DNS https://github.com/adafruit/Adafruit-Pi-Finder Try the Linux environment Start of the Python programming Simple GPIO access Remember to use Pyhon3

LED light (RGB)

LED controls Set RGB to on|off (True | False ) GPIO.setmode(GPIO.BCM)   GPIO.setup(14, GPIO.OUT) GPIO.setup(15, GPIO.OUT) GPIO.setup(18, GPIO.OUT) GPIO.output(14, GPIO.LOW) GPIO.output(15, GPIO.HIGH) GPIO.output(18, GPIO.HIGH) Set RGB to different level PWM Pulse-Width Modulation Could also be useful when working with motors

Pulse-Width Modulation “Do you remember when you were a kid, how you sometimes flicked the light switch on and off repeatedly, really quickly, to see what would happen? And you were told not to do it in case something bad happened (and it never did)? That was crude PWM.” raspi.tv

Pulse-Width Modulation Frequency Duty Cycle

PWM Python example GPIO.setup(25, GPIO.OUT) ← set the pin to be output p = GPIO.PWM(25, 50) ← activate PWM at 50 hertz (frequency) p.start(50) ← start PWM with a 50% Duty Cycle p.ChangeFrequency(100) ← Change frequency p.ChangeDutyCycle(20) ← Set the Duty Cycle to 20% p.stop()

Recapitulation Start up the Raspberry Pi Burn the image to SD-card See / get access to the R-Pi – some problems to make the windows update DNS https://github.com/adafruit/Adafruit-Pi-Finder Try the Linux environment Start of the Python programming Simple CPIO access Remember to use Pyhon3

NOW Your turn to work