Manufacturing. Add sound sensor.

40
Robotics nxtasy Manufacturing Class exercises Lab work: Show bump exercise. Add sound. Combine sound & bump. Homework: postings (hints at topics). Combine sound, bump, timing…

Transcript of Manufacturing. Add sound sensor.

Page 1: Manufacturing. Add sound sensor.

Robotics

nxtasyManufacturing

Class exercisesLab work: Show bump exercise. Add sound. Combine

sound & bump.

Homework: postings (hints at topics). Combine sound, bump, timing…

Page 2: Manufacturing. Add sound sensor.

nxtasy.org

• Several Lego Mindstorms user groups

• respository, challenges– may be useful in deciding on a project

• Forum(s) especially good– Example on nxt buttons

Page 3: Manufacturing. Add sound sensor.

NXT-G

• There are wait blocks:– Wait for specific event to happen, such as

triggering sensor, clicking on button, receiving Blue tooth message

– Check value of sensor, button, message

• Which do you want? In more complex situations, such as waiting for one of the 3 buttons, makes sense to use checking block

Page 4: Manufacturing. Add sound sensor.

Cycles through checking if button pressed

Page 5: Manufacturing. Add sound sensor.

Parallel threadsSpecific application: checking timer.• This is a check for nothing happening. The

'active' thread resets the timer each iteration. The other thread exits the loop and issues a stop.

• Note: NXT-G provides 3 timers.• There is a separate wait until time passes block.• Note: loops using logic can loop until true or loop

until false.• timer block has several outputs. Make sure you

use the one you want, in this case, the results of the compare.

Page 6: Manufacturing. Add sound sensor.
Page 7: Manufacturing. Add sound sensor.

Other ways?

• I am sure there are other ways to do this.

Page 8: Manufacturing. Add sound sensor.

Manufacturing exercise

Look around the room (including what you are wearing and carrying around)

List

objects and type of manufacturing process

Page 9: Manufacturing. Add sound sensor.

Classes of manufacturing

• Custom

• Intermittent

• Continuous

May be outdated, or lines less definite.

Page 10: Manufacturing. Add sound sensor.

Types of processing

• Assembly– Putting things together

• Fabrication– Forming, casting, taking away, putting together, etc.– Chemical [type] processing.

IBM terms: process (semiconductor, chip) plants versus box plants

See Taxonomy of Manufacturing:http://en.wikipedia.org/wiki/

Taxonomy_of_manufacturing_processes

Page 11: Manufacturing. Add sound sensor.

Semiconductor manufacturing• Wafer of silicon (crystal needs to be grown and then sliced)• Circuitry ‘laid down’ using various techniques, including

lithography• Slice and dice into chips• Clean room

Moore’s Law: number of transistors in a circuit doubles every 18 months.

How long can this continue????

http://en.wikipedia.org/wiki/Semiconductor_fabricationOld news, but typicalhttp://www.macworld.com/news/2007/01/27/intel/index.phpApple iPadhttp://www.businessweek.com/news/2010-02-02/apple-s-jobs-spurns-intel-

qualcomm-with-a4-ipad-chip-update2-.html

Page 12: Manufacturing. Add sound sensor.

Automation

• Fixed automation

• Flexible automation– Machining…– Robotics

• Variant of flexible automation: – Data-driven, computer integrated

manufacturing…. Including robotics

Page 13: Manufacturing. Add sound sensor.

Painting cars, welding, etc.

• Robot [arms]

• Teach/playback system

• Economical because of health requirements – May not have always been the case

Page 14: Manufacturing. Add sound sensor.

Critical factors for automation (robotics)

• Air quality (e.g. painting cars)• Miniaturization: operation not at human scale.

True in much of computer manufacturing• Accuracy (precision)• Connection to data• Strength• Speed

• Repeatibility (drudgery)

Page 15: Manufacturing. Add sound sensor.

Manufacturing logistics

• Most manufacturing involves multiple steps (aka stages)

• Need to get parts & materials to stations• Need to test• Need to deliver finished products (aka

distribution)

• Issue of out-sourcing (of parts and materials, not people) to other companies and other sites for the same company

Page 16: Manufacturing. Add sound sensor.

Toyota problems

• Did expansion mean less controls on more suppliers?– Bad accelerator pad produced by US supplier– Note: small number of actual incidents,

though several were serious!

Page 17: Manufacturing. Add sound sensor.

Manufacturing methods

• Build to order– Customer orders specific car, computer, etc. This

prompts building of that item.• Build to stock

– Estimate (guess) what will be needed. Build those items.

Exercises:• What are advantages and disadvantages?• What products are typically built one way versus

the other?

Page 18: Manufacturing. Add sound sensor.

Comparison

• Build to order means little or no waste BUT probably less efficient. Need time to switch between products.

• Build to order may be [much] more efficient but may mean that products are produced that no one wants to buy.

Page 19: Manufacturing. Add sound sensor.

When?

• Mass production versus made-to-order.

• The iPod is a mass produced product that the customer customizes, makes very individual…

Page 20: Manufacturing. Add sound sensor.

Comments

• Company choice of products may or may not be important– Early IBM PC products were divided into

different types to give different manufacturing sites work to do. [To my knowledge at that time] PCs were not profitable.

– Sarong type dress example– ?

Page 21: Manufacturing. Add sound sensor.

Just in time manufacturing

• Don’t build product and don’t take delivery of parts until needed.

• Advantages: lower costs for storage, postpone payment, may even postpone ordering

• Disadvantage: no safety net of materials and parts, hard on suppliers.

Page 22: Manufacturing. Add sound sensor.

Quality

• Quality of final product• Quality of parts, materials, sub-assemblies• Shoe-tying: you can tie shoes with laces that are

somewhat frayed and somewhat unbalanced. • Good enough (within spec)

– Don’t pay in time, money, for higher quality than needed

versus • Continual improvement / 6 Sigma

– Aim for highly reliable process. Pays off.– Associated with Japanese manufacturing

Page 23: Manufacturing. Add sound sensor.

Six Sigma (trademark of Motorola!)

• Refers to normal distribution

• Sigma is a standard deviation

• Making a process be such that six sigma are within acceptable bounds means very little is outside…

Page 24: Manufacturing. Add sound sensor.

Preview

• Library research project.

• Propose topic (I will give approval or modification) for presentation– plus '1 pager': abstract + works cited + 1

picture

• Postings are possibilities (must use at least 3 sources)

Page 25: Manufacturing. Add sound sensor.

Posting ideas: [old] People

• Joseph Engelberger Unimation HelpMate• Rodney Brooks Helen Greiner iRobot RedOwl• Marvin Minsky

• Yasuo Kuniyoshi University of Tokyo• Makoto Shimojo University of Electro-Communications

• Ralph Hollis Carnegie Mellon• Russ Taylor Johns Hopkins• William Bargar University of California at Davis• Peter Will USC• Andre Sharon Boston University

Page 26: Manufacturing. Add sound sensor.

Posting ideas: fiction classicsRead story[ies] AND at least 1

review/analysis!• Karl Kapek: RUR• Isaac Asimov: I, Robot (laws of robotics)• Philip Dick: Do Androids Dream of Electric

Sheep (Bladerunner)• Arthur C. Clarke (others): 2001• Anne McCaffrey: The Ship Who Sang• other

Page 27: Manufacturing. Add sound sensor.

Posting ideas

• Big Dog

• Asimo

• Robot soccer (various types)

• Home / Health care– Companions– Versus smart house

• Military drones

• more

Page 28: Manufacturing. Add sound sensor.

Sound

…. is a vibration of a medium (say the air)

The vibration is characterized as a wave

Longitudinal wave: motion of medium in direction of motion of wave:see

http://en.wikipedia.org/wiki/Longitudinal_wave

Page 29: Manufacturing. Add sound sensor.

Characteristics of wave

• Amplitude: maximum disturbance of the field• Frequency: number of times [something]

happens per time unit– Measured in Hz: times/second

• Wavelength: length of one wave, measured from mid-point to mid-point– Equals speed / frequency

• Period: time between successive event– Inverse of frequency

• speed

Page 30: Manufacturing. Add sound sensor.

Sound attributes• Loudness related to amplitude

• Pitch related to frequency

• Most sounds are [very] complex waves– Flute, tuning fork simpler wave pattern than violin– Fourier transform (of fft) is a way to calculate how

sound can be defined as set of simple sine waves– Signal (what you are trying to measure) versus noise

(random, unwanted). Terminology refers to sound AND other signals.

Page 31: Manufacturing. Add sound sensor.

Lego Sound sensor

• Measures what ?????

• Build (add) sensor to base robot• Do NXT brick tests. • With robot connected, Tools/Calibrate

– This downloads program to run on robot.

• Program– Move unlimited until sound sensor tripped– Move with power dependent on sound

• What does sound sensor measure?

Page 32: Manufacturing. Add sound sensor.
Page 33: Manufacturing. Add sound sensor.
Page 34: Manufacturing. Add sound sensor.

Challenge

• Move until sound at some level.

• If sound at high level, turn one way else turn the other way.

Page 35: Manufacturing. Add sound sensor.
Page 36: Manufacturing. Add sound sensor.
Page 37: Manufacturing. Add sound sensor.

NXT-G control structures

• Loop– Until logical condition true or false– Count– Infinite– Sensor test

• If

• If (Switch): multiple values. Need to de-select flat view

Page 38: Manufacturing. Add sound sensor.

NXT-G

• Variables (suit case)– Typed: logic, number, text– Write block and Read block

• Arithmetic, comparison, logic

• Change number to text

• Random (dice) block

Page 39: Manufacturing. Add sound sensor.

Lab

• Show new exercise using bump.• Add sound sensor.• Program

– stop on sound– stop on sound and then turn one way or another

• Combine use of sound and bump sensors.– Include timer, if you like– Also, can include random effect

Page 40: Manufacturing. Add sound sensor.

Homework

• Postings– Manufacturing topics– military drones– health care / home care (smart house)– prosthetics– People– Fiction– ?OR

• Post question on nxtasy