Zilogic Systems 1 Device Interfacing with Python and ZIO Zilogic Systems.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

EMS1EP Lecture 8 Pulse Width Modulation (PWM)
Robotics Club, Snt Council2 The 3 Schools of Robotics: Mechanical Design – Types of motors – Material selection –
IRS2980 Buck LED Driver Peter Green Under embargo until 10/25/11.
Module 4: Analog programming blocks. Module Objectives Analyze a control task that uses analog inputs. Connect a potentiometer to LOGO! controller and.
SENIOR DESIGN 10/16.
Discovery Lab School of Computing & Information System Florida International University.
Digital I/O Connecting to the Outside World
Introduction.
Embedded Programming and Robotics
Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)
Write a program that will automatically control the brightness of a light based on the surrounding light level. Automatic Night Light.
Module 4: Analog programming blocks. Module Objectives Analyze a control task that uses analog inputs. Connect a potentiometer to LOGO! controller and.
RC CAR CONTROLLER BASED ON INTEL GALILEO SOC PLATFORM Nadav Shiloach Sagi Sabag Supervisor: Idan Shmuel Spring 2014 One Semester Project PROJECT’S ENDING.
Question ONE What is the name of this component?.
RomoRobot Feras Khateeb Yousef Azem supervisors Dr.Raed Al-Qade Dr.Lui Malhis.
Company Confidential Our Experiences with Phidgets Lloyd SpencerKevin Sikorski Monthly SRS Meeting November 18, 2006.
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
The energy change in a thermocouple is : 1.E E to E H 2.E S to E E 3.E L to E E 4.E H to E E :20.
Resistive Transducers Sensors Used in Electronics.
Unconventional User Interface // // Mood Based Navigation Sheo // 1Haring, Naderer, Zachhuber Arduino  Open Source Project (HW u. SW)  Analog.
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.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
Data Acquisition Device (DAQ) A DAQ is a cool little device that allows you to interface hardware to a computer. Here is what we will do:  Create a square.
Smart Lens Robot William McCombie IMDL Spring 2007.
18240 Element two - Components INPUTS OUTPUTS PURPOSE TYPICAL USE.
Potential Dividers and their application as sensors Electricity Lesson 9.
ELECTRONICS – Input Transducers Engineering Science – National 5.
BLDC Motor Speed Control with RPM Display. Introduction BLDC Motor Speed Control with RPM Display  The main objective of this.
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.
Arduino Application: Speed control of small DC Motors
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Zilogic Systems 1 Device Interfacing with Python and ZIO Zilogic Systems.
Smart Parking System (SPS) Prepared by: Ma’ali Hasan. Noora Dmedi.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
Chapter 7 Input Modules. Objectives (1 of 2) Explain the differences between positive and negative logic and sinking and sourcing. Describe the available.
Lesson 1 PLC BASICS. PLC Definition  Programmable Logic Controllers are industrial computers that control machine and other applications.  PLC have.
Arduino.
FRC Robot Electronics.
Solar Energy Generator: Design Rendering Description
Scrolling LCD using Arduino.
Direct current circuits
Connect 4 Change the terms in the following template to customize Connect 4 for any topic. You will need to copy one copy of one of the two templates.
ARDUINO BASED AUTOMATIC TEMPERATURE BASED FAN SPEED CONTROLLER
Device Interfacing with Python and ZIO
LOCKERBIE ACADEMY PHYSICS DEPT
Electronic Components
Potential Divider Aims What is a potential divider
Principles & Applications and Simple Interfacing
“Innovative Peripheral Interfacing System and Peripheral Learning Platform for Embedded System-Hardware Approach”
How to avoid catching things on fire.
Analog Input through POT
PWM? K. A. Connor Mobile Studio Project
Arduino and Grove LET’S START.
Electronics – Learning Outcomes
Transistor & Voltage Divider
Pulse Width Modulation (PWM)
Vibration Energy Harvesting Circuit to Power Wireless Sensor Nodes
Potential Dividers Electric Circuits ☞.
Presentation of Robotics (3)
Sensors and actuators Sensors Resistive sensors
ACOE347 – Data Acquisition and Automation Systems
LOCKERBIE ACADEMY PHYSICS DEPT
Robotics System Lecture 11_12: DC Motor
Describe the action of thermistors and light- dependent resistors and show understanding of their use as input transducers Thermistor A transducer is an.
Arduino and Grove LET’S START.
Requirements Overview
05 | Integrating Advanced Sensors and Shields
Presentation transcript:

Zilogic Systems 1 Device Interfacing with Python and ZIO Zilogic Systems

2 Overview ● ZIO Architecture ● ZIO Ports ● LED ● Switch ● Light Sensor ● DC Motor ● Temp Sensor ● TV Remote Receiver ● Color Sensor ● Light Bulb

Zilogic Systems 3 ZIO Architecture PC – The Universal Platform API to communicate with ZIO USB based IO board ● Digital I/O ● Analog Input ● PWM Output ● I 2 C Bus ● SPI Bus Sensors Transistors Relays LEDs Switches I 2 C Devices DC Motors IR receivers...

Zilogic Systems 4 Ports ● GPIO – LEDs, Relays, Switches, MOSFETs, Optocouplers,... ● Sensor – Tempature, Potentiometer, Light, Pressure, Humidity,... ● PWM – DC Motor, Servo Motor, LED Brightness Control,... ● I2C/SPI – RTCs, LCDs, IR Receivers, Sensors, Phone Line Interface...

Zilogic Systems 5 LED ● Simple output devices ● Used for status indication, displays, lighting...

Zilogic Systems 6 LED (Contd.)

Zilogic Systems 7 Interface LED to ZIO ● GPIO Port ● Signals – 2 Outputs, 2 Inputs – +5V Supply, GND ● Setting Output to True, outputs 0V ● Setting Output to False, outputs 5V

Zilogic Systems 8 Interface LED to ZIO (Contd.) ● GPIO outputs have a built-in series resistor ● Eliminates series resistors on external circuit

Zilogic Systems 9 Interface LED to ZIO (Contd.) from zio import * agent = Agent(“/dev/ttyUSB0”) gpio = GPIO(agent) gpio.write_output_pin(0, True) gpio.write_output_pin(0, False)

Zilogic Systems 10 Voltage Divider

Zilogic Systems 11 Switch ● Simple input device ● Switch is closed – Vout = 0V ● Switch is open – Vout = 5V ● Switch state can be determined, by measuring Vout.

Zilogic Systems 12 Interface Switch to ZIO ● GPIO Input signals can test for a 0V or 5V. ● Input > 2V – Read as True ● Input < 0.8V – Read as False

Zilogic Systems 13 Interface Switch to ZIO (Contd.) ● GPIO inputs have built-in pull-ups resistors ● Eliminates pull-ups on external circuits

Zilogic Systems 14 Interface Switch to ZIO (Contd.) import time from zio import * agent = Agent(“/dev/ttyUSB0”) gpio = GPIO(agent) while True: print gpio.read_input_pin(0) time.sleep(1)

Zilogic Systems 15 Light Sensor (LDR) ● LDR – Light Dependent Resistor ● Resistance decreases with increase in light intensity ● Voltage Vout decreases with increase in light intensity

Zilogic Systems 16 Interface LDR to ZIO ● Sensor port – measure voltages between 0 – 3V ● Signals – +5V, GND – 2 Sensor Inputs ● Read the voltage at Sensor 0

Zilogic Systems 17 Interface LDR to ZIO (Contd.) ● Sensor inputs have built-in pull-up resistors ● Eliminates pull-ups on external circuits ● Pull-ups connected to 3V, the max voltage that can be measured by sensor port.

Zilogic Systems 18 Interface LDR to ZIO (Contd.) import time from zio import * agent = Agent(“/dev/ttyUSB0”) sensor = Sensor(agent) while True: print sensor.read_pin(0) time.sleep(1)

Zilogic Systems 19 DC Motor ● Examples – CPU Fan – Wheels of a Robot – CDROM drives – Printers ● DC motor controlled by a human operated switch

Zilogic Systems 20 DC Motor (Contd.) ● Replace switch by a MOSFET ● Vcontrol = 5V – Motor turns ON ● Vcontrol = 0V – Motor turns OFF

Zilogic Systems 21 DC Motor (Contd.) ● GPIO port - motor ON and OFF ● Motor speed can be controlled ● DC motor speed is propotional to the supply voltage ● Speed control can be acheived by varying the averaging voltage delivered to the motor

Zilogic Systems 22 DC Motor (Contd.) ● Rapidly turn motor on and off ● Duty cycle – (ON time / Period) * 100 ● Duty cycle 100% – Average voltage - 12V ● Duty cycle 50% – Average voltage - 6V

Zilogic Systems 23 Interface DC Motor to ZIO pwm = PWM(agent) pwm.set_freq([0], 25) pwm.set_duty([0], 100) pwm.start([0]) pwm.set_duty([0], 50) pwm.set_duty([0], 25)

Zilogic Systems 24 Temperature Sensor ● Temperature Sensors – Resistive Sensors – Non-ratiometric Sensors – I2C / SPI Sensors ● I2C – kind of very simplified USB – connect devices to CPU – EEPROMs, RTCs, Accelerometers, Sensors...

Zilogic Systems 25 I2C Bus

Zilogic Systems 26 Temperature Sensor i2c = I2C(agent) i2c.config(100) while True: temp = i2c.read(0x10, 1) print temp[0]

Zilogic Systems 27 Demo Projects ● TV Remote Receiver ● Light Bulb ● Color Sensor