Hardware Reference
In-Depth Information
THINK YOU'VE GOT fast fingers? Find out in this chapter as you take your first steps in
hardware interfacing to build a reaction timer. You'll program the Raspberry Pi to wait a
random time before turning on a light and starting a timer. The timer will stop when you
press a button.
Welcome to the Embedded World!
For some people the idea that computers aren't always big black or beige boxes on desks is a
surprise, but in reality the majority of computers in the world are embedded in devices.
Think about your washing machine - to wash your clothes it needs to coordinate turning the
water on, keeping it heated to the right temperature, agitating your clothes by periodically
spinning the drum, and emptying the water. It might repeat some of these steps multiple
times during a wash, and has different cycles for different types of fabric. You might not have
realised it's a computer program. It takes inputs from switches to select the wash and
sensors that measure water temperature, and has outputs that heat the water and lock the
door shut, and motors to turn the drum and open and close valves to let water in and out.
Take a moment to consider the number of appliances and gadgets that need to measure
inputs, do some processing to reach a decision and then control an output in response.
YOUR TURN!
A modern kitchen is crammed with computers that watch over and automate our appliances
to save us effort. Computers aren't just embedded in practical products either; they're in
electronic toys and entertainment devices. After working through this chapter and the other
examples in this topic you'll be on your way to designing your own embedded systems to
make your life easier, or entertain you.
Before you get too carried away connecting things up it's worth considering a couple of
warnings that will protect you and your electronic components.
Good Practice
Electricity can be dangerous, so it is important to use it safely. The muscles in your body are
controlled by tiny electrical signals, and these can be affected if electricity flows through your
body. Your heart is a muscle that can be stopped by an electric shock.
 
Search WWH ::




Custom Search