New Human Computer Interfaces Amnon Dekel HUJI – CSE, Spring 2006 Class 5 May 9 2006.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

Lab7: Introduction to Arduino
Microprocessor Motor Control Spring Introduction  Stamp projects Robots  Sensors  Motor control  Logic Rocketry  Reading acceleration (“g”
Servos The material presented is taken from a variety of sources including:
EML 2023 – Motor Control Lecture 4 – DAQ and Motor Controller.
Wiring the new control system MVRT 2010 – 2011 Season.
Unit 4 Sensors and Actuators
Servos The material presented is taken from a variety of sources including:
1 Sensors, Actuators, Signals, and Computers Part D Ping Hsu, Winncy Du, Ken Youssefi.
1 EECS 373 Design of Microprocessor-Based Systems Student Presentations Tianhua Zheng and Jason Shintani Motor control November 27 th, 2012.
L.
Electronics and Networks: Week 3: Dumb things with Wires (II) Sensors and Motors Jonah Brucker-Cohen Matthew Karau Monday 10am - 12pm Trinity College Dublin.
New Human Computer Interfaces Amnon Dekel HUJI – CSE, Spring 2007 Class 3 March
New Human Computer Interfaces Amnon Dekel HUJI – CSE, Spring 2007 Class ? May
SENIOR DESIGN 10/16.
“Power Supply” Controls Voltage Difference in Voltage is set Output Current is “as requested” by attached device.
Digital I/O Connecting to the Outside World
Introduction.
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
ELECTRONIC THROTTLE CONTROL SYSTEM
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
1 Motors & Motor Controllers ECE AC or DC Motors AC –Few robots use AC except in factories –Most of those that use AC first convert to DC DC –Dominates.
Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)
Applied Control Systems Robotics & Robotic Control
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
RC CAR CONTROLLER BASED ON INTEL GALILEO SOC PLATFORM Nadav Shiloach Sagi Sabag Supervisor: Idan Shmuel Spring 2014 One Semester Project PROJECT’S ENDING.
Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a.
1  Actuators are used in order to produce mechanical movement in robots.
1 L Fall 2003 – Introductory Digital Systems Laboratory Motors and Position Determination.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi. Objectives 1. Control the rotation of standard servo motor  A standard servo motor is limited in its rotation.
HL Sample Question Applied Control Systems Underlying Principles.
The basics The most crucial components that I will be looking at are the batteries, the motor, the gears and the springs that allow the mechanism to function.
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
Measurement and Control. Control Systems A control system usually consists of a processor, a control program, interfaces and a device under the processor's.
Servos The material presented is taken from a variety of sources including:
July 18, UCSD - R.A. de Callafon Short Intro to Micro Processors and I/O functions of our Kinetic Sculpture Control Box Raymond de Callafon.
Servo Motor Control.
Arms, Legs, Wheels, Tracks, and What Really Drives Them Effectors and Actuators.
AAPT workshop W03 July 26, 2014 Saint Cloud State University, MN, USA
INTRODUCTION TO ROBOTICS Part 3: Propulsion System Robotics and Automation Copyright © Texas Education Agency, All rights reserved. 1.
Feedback Systems and Driving Clinton Matney AT Workshop 2016.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Pick N Place Robot. Pick N Place Robot Introduction:  Pick and Place robot is the one which is used to pick up an object and.
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
CNC FEED DRIVES.
Motors & Motor Controllers
Arduino.
Mechatronics – a design process that includes
SNS COLLEGE OF ENGINEERING
Introduction to Motors, servos and steppers
INTRODUCTION TO ELECTRONIC INSTRUMENTATION
ELECTRONIC THROTTLE CONTROL SYSTEM
Group members MUHAMAAD DANISH 2015MC05 USMAN ALI JAT 2015MC14 MUREED SULTAN 2015MC18 AZAN ASHRAF 2015MC19 AYMEN.
Servos The material presented is taken from a variety of sources including:
Arduino - Introduction
Servos The material presented is taken from a variety of sources including:
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Servos The material presented is taken from a variety of sources including:
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi.
NC,CNC machines and Control Programming.
Controlling YOUR ROBOT
Applied Control Systems Underlying Principles
CSCI1600: Embedded and Real Time Software
NC and CNC machines and Control Programming
Sensors and actuators Sensors Resistive sensors
UNIT 11: RC-SERVOMOTOR CONTROL
Lab #1: Getting Started.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Presentation transcript:

New Human Computer Interfaces Amnon Dekel HUJI – CSE, Spring 2006 Class 5 May

New Human Computer Interfaces - HUJI - Spring On the Menu Group Exercise Review Serial Port: –Board2Board –Board2PC –PC2Board Some more sensors Changing the world: Actuators Projects

New Human Computer Interfaces - HUJI - Spring Exercise Review View the exercise projects Problems and Difficulties? What Have You Learned?

New Human Computer Interfaces - HUJI - Spring Serial Communications The OpenBoard can communicated with other devices in the world using the Serial Communications Protocol You can use this to have a board Send data to another board and receive data from another board. You can also use this to have the board communicate with a workstation (Why?)

New Human Computer Interfaces - HUJI - Spring Board to Board Call soft-serial-on once at the beginning of the program. Sending Values: –Sending is done from Pin C0. –the command: send1 value i.e. send1 100 Receiving Values: –You can receive on 4 ports: B0, B1, B2, B3 –To receive you need to do 2 things: check if a new value has been received on the pin. newin1? will check B0 (newin2? will check B1, newin3? will check B2, newin4? will check B3). The code: loop [ if newin1? [do something with in1] ] –Oren comments: to use in1 best to set it into a different variable, like: settemp in1 if temp = 100 [do something else]

New Human Computer Interfaces - HUJI - Spring Board to PC Use the regular programming cable configuration Sending to the PC: Use the send command (not send1). Anything sent this way will be sent to the PC serial port. send value Reading the data on the PC 1.Make sure the PC is in fact receiving the data. Use a terminal program for this (like Hyperterm) 2.If all is well- write a program (in Java, C, whatever you like) to read the serial port. Sending data to the Board from the PC: You use the following primitives in your code on the board: enable-recc (to enable receiving of serial data) recc? (check if a value is waiting in the serial buffer) recc (the value itself, so you can set into another variable) To send serial data to the board, use the send command from the programming environment. To send serial data from a different application on your PC, it should work just by sending numbers to the serial line, so enable the serial line and send an integer.

Some More About Sensors

New Human Computer Interfaces - HUJI - Spring Push buttonSlide switch Toggle switch Rocker switch Types of Input Switches

New Human Computer Interfaces - HUJI - Spring Sensitive Switches Hair trigger/whisker switch Roller switch Mercury/Tilt switch Magnetic/Reed switch

New Human Computer Interfaces - HUJI - Spring Analog Sensors Force Sensitive Resistor (FSR)Pressure sensors

New Human Computer Interfaces - HUJI - Spring Analog Sensors PhotocellTemperature Sensor/Thermistor

New Human Computer Interfaces - HUJI - Spring AccelerometersFlex Sensor And more … And more: Capacitance sensors Piezoelectric sensors More info: ITP Sensor Workshop ReportITP Sensor Workshop Report

Changing the World: Actuators

New Human Computer Interfaces - HUJI - Spring Examples

New Human Computer Interfaces - HUJI - Spring Actuators Pneumatic –Air Pressure causing movement Hydraulic –Liquid Pressure causing movement Electronic –Electro-magnetic movement Motors (Kinetic) Speakers (Audio) Lights (Visual) More Info

New Human Computer Interfaces - HUJI - Spring Linear vs. Rotary movement Torque Gear Motors

New Human Computer Interfaces - HUJI - Spring Speed (RPM) Movement – mechanics Controlling the Position Feedback about the position How much weight can it carry Torque How much power does it need Price Selecting a Motors

New Human Computer Interfaces - HUJI - Spring Speed (RPM) Movement – mechanics Controlling the Position Feedback about the position How much weight can it carry Torque How much power does it need Price Selecting a Motors 1. The moment of a force; the measure of a force's tendency to produce torsion and rotation about an axis, equal to the vector product of the radius vector from the axis of rotation to the point of application of the force and the force vector. 2. A turning or twisting force.

New Human Computer Interfaces - HUJI - Spring Types of Motors Stepper DC servo DC

New Human Computer Interfaces - HUJI - Spring DC Motor: Cheap. Very easy to connect Minimum control Turns 360 degrees. Can add components for more control: –Speed: change the voltage using a POT –Direction: change the polarity –Position: can’t!  Add an H-Bridge circuit Motors

New Human Computer Interfaces - HUJI - Spring DC Servo: Expensive Very easy to connect Includes all components Turns 90 degrees to each side Full control: –Speed: change the voltage –Position: Needs CHECKING Motors Waiting for answer from Oren

New Human Computer Interfaces - HUJI - Spring DC Servo - Controlling the position: They rotate 0 to 180 degrees depending on the pulsewidth. About 1.5 sec to move 180 degrees. The DC Servo takes a pulse of between 1-2 ms every 20 ms. A pulse of 1 ms will turn the motor to 0 degrees; 1.5 MS will turn to 90 degrees, 2 ms will turn it to 180 degrees To keep a servo in its current position pulse it with the same pulse width every ms to keep it there. Controlling a Servo

New Human Computer Interfaces - HUJI - Spring Stepper: Cheap Usually 12V Hard to connect Need extra components Turns 360 degrees. Can stay still in one position Full control: –Position –Speed Motors

New Human Computer Interfaces - HUJI - Spring We want to control a few elements: Speed Strength Direction Position Controlling Motors

New Human Computer Interfaces - HUJI - Spring We want to control a few elements: Speed  power Strength  Current Direction  current direction/Pulse Position  Pulse Controlling Motors

New Human Computer Interfaces - HUJI - Spring Controlling the position: Controlling Motors DC Motor Controller בקר (H-Bridge) Encoder BS1 משובFeedback PWM

New Human Computer Interfaces - HUJI - Spring Using PWM to control the position: For each motor we know the RPM: in X Volt, how many rounds per minute. From this info we can calculate how many degrees a pulse moves in a certain time. When accuracy is important inertia should be taken into account (and gear to balance it) Controlling Motors

New Human Computer Interfaces - HUJI - Spring Where to get motors? חנויות טיסנים חנויות רובוטיקה חנויות אלקטרוניקה

PAUSE What have we been dealing with so far?

New Human Computer Interfaces - HUJI - Spring Vision SOUND Analog INPUT Digital Input  Sensing the world Controlling the world  Digital Output Analog Output Computing Communications MOVEMENT (Motors) Output to the PC Controlling 220V world Movement Position Change Pressure Temperature Audio Video

New Human Computer Interfaces - HUJI - Spring Projects What’s a good project? Process Milestones Presentations

New Human Computer Interfaces - HUJI - Spring What’s a Good Project Explores interesting, and preferably, novel scenarios Shows interesting use of the technology Exhibits a working prototype for at least one main part of the scenario. Explains how it fits into the wider scenario. Includes good documentation –Project explanation, process, problems, code, possible improvements –Project Poster

New Human Computer Interfaces - HUJI - Spring Project If we have time: –Class Discussion of Projects Home Work: –Prepare a Project Proposal: Intro – What problem am I trying to solve Research (what exists…) Concept Technology Milestones (7 weeks)