This is a good way of thinking about computers.

On the left, things that sense what's happening, (like Switches, Buttons, Mice, Thermometers, Motion Sensors, etc., ETC! ) are connected to INPUTS so that the computer can know about them.

On the right, things that can make stuff happen (Like Lights, Motors, Beepers, Relay Switches, etc., ETC! ) are connected to OUTPUTS so the computer can control them.

NEXT: Let's look at an example:

Now, you might say, "That's pretty Dumb! Why not just connect the switch to the light??"

OK, But WhatIf you want to do this??


IF (the switch is ON) (turn the light OFF)


or...


IF (the switch is ON) (BLINK the light)


or...


IF (the switch is ON) (turn the light ON)

BUT (IF the switch is ON for > 5 Minutes) (BLINK the light)


or...


IF (the switch is ON) (turn the light ON)

BUT (IF the switch is ON for > 1 Hour)

(turn the light OFF)

(turn the Beeper ON) [Like my new refrigerator ! ]

(send me an SMS)


OK, This kind of thing is easy to do in SOFTWARE with a microcomputer, and you will DO it next. (Except for the SMS, which can be done, but later!)

In the pictures above, Where is the software?

... In the middle, inside the Arduino!

In the pictures above, Where is the hardware?

... On the right and left. Input Devices and Output Devices are hardware.

Note: In big companies, software is often used to fix problems in hardware or add new features to a product. [update site example] They say, "Fix it in the software ! ! "

NEXT:Real Stuff!(CLICK NEXT)

COMMENTS? SUGGESTIONS! Please Email Terry King, Webmaster ©2010 Terry King