wiki:ControlSystems/Electrical/Training/Arduino/Lesson2

Version 28 (modified by David Albert, 6 years ago) (diff)

--

Electricity

Why do I need to learn this?

Robots run on electricity. Mini-bots are small, safe, light, and uses penlight batteries, however the FRC robots you will build later this year weigh up to a couple of hundred pounds, use powerful motors, solenoids, and pneumatics, and run on batteries with enough energy to seriously hurt you. So you need to learn the basics of electricity and how to control it because:

  1. It's interesting and fun
  2. Ignorance is not bliss: so much of our modern world depends on electricity, everyone should have a basic understanding of what it is and how it works
  3. Safety: everyone who works on or with the FIRST robot must understand how to stay safe and keep the robot from hurting itself or others.

Objectives

By the end of the lesson you should understand:

Experiments

http://www.ladyada.net/images/pshield/miniproto_t.jpgYour kit includes a variety of electronic components that you can experiment with including connecting them to your Arduino computer. The kit also includes a solderless breadboard that lets you build electronic circuits quickly and easily without having to use a soldering iron. Please read the tutorial on how to use a breadboard and jumper wires to make circuits

Your kit also includes an Arduino protoshield: a circuit board with pass-through connectors that you can stack onto your Arduino computer to power and control your electrical circuits. Please read the protoshield tutorial on how to use your protoshield and solderless breadboard to connect sensors and actuators to your Arduino computer.

  • Connect jumper wires to +5v and Gnd connections and measure the voltage with your multimeter
  • Connect +5v and Gnd through a 270-ohm series resistor and an LED to make it light up
  • Blink an LED: connect a 270-ohm series resistor and an LED between an Arduino digital pin and Gnd and make it blink
  • Multiple LEDs: connect a bunch of Arduino pins, resistors, and LEDs to make a festive light display
  • Using a multimeter, measure the voltage across a series resistor in a circuit and calculate the current being used by the circuit.

Attachments (1)

Download all attachments as: .zip