Changes between Version 3 and Version 4 of ControlSystems/Electrical/Training/Arduino/Lesson8


Ignore:
Timestamp:
Sep 29, 2015, 2:47:03 PM (10 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/Electrical/Training/Arduino/Lesson8

    v3 v4  
    11= Smorgasbord =
    22
    3 * Stepper motors
    4 * IR proximity sensors
     3== Stepper motors ==
     4[[Image(http://cdn.instructables.com/F65/M3G8/HMMF4YRG/F65M3G8HMMF4YRG.MEDIUM.jpg, align=right, width=128)]]Stepper motors move in small, discrete steps and are useful for a wide range of precision positioning. They used to be used in mechanical disk drives (soooo 1990s) to position the disk's head at the desired track.  3D printers use stepper motors to position their extrusion heads and platforms accurately.  The team has a number of BYJ48 (small 5v 4-phase) stepper motors with ULN2003 driver boards for you to experiment with.  Each step is 1/64th of a rotation.
     5
     6**Exercise**: follow [http://www.instructables.com/id/BYJ48-Stepper-Motor/ this instructable] to connect a stepper motor to your Arduino and control it.
     7
     8
     9== IR Proximity Sensors ==
     10[[Image(http://s3.electrodragon.com/wp-content/uploads/2013/05/InfraredIR-Obstacle-Avoidance-Sensor-ModuleAdjust-Distance-350x350.jpg, align=right, width=128)]]
     11* [http://blog.whatgeek.com.pt/arduino/keyesir-obstacle-avoidance-sensor/ IR proximity sensors] provide a very inexpensive way to detect objects at a fixed distance.  You configure the sensing distance with a potentiometer.  The module then outputs a 1 if an object is closer than that or a 0 if not.  IR sensors are useful because they are very inexpensive and require very little processing power (no distance calculation is needed).
     12
     13  **Exercise**: Ask a mentor for an IR proximity sensor and connect it to your Arduino.  Use the IR sensor as a proximity warning (e.g. to keep your robot away from walls)
     14
     15== Serial Communications ==
    516* [https://www.arduino.cc/en/Reference/Serial Serial communications] note: requires a [http://www.gearbest.com/development-boards/pp_139898.htm TTL-to-RS-232 adapter] - ask a mentor.
    617    * [https://www.arduino.cc/en/Tutorial/SoftwareSerialExample Software Serial] (aka bit-banging) [[Image(https://hackadaycom.files.wordpress.com/2009/09/officespace.jpg?w=270, align=right, title=wrong way to bit-bang)]]
     18   - Serial interfaces use a small number of wires (usually 3) to carry information between devices.  The information is encoded as a sequence of digital bits (high or low voltages) sent sequentially at a fixed, mutually agreed rate.   Your Arduino has a hardware serial interface that can be used to send information to your desktop computer and receive information from it.  You can, for example, display debug output or give your Arduino a command prompt.
     19
     20   **Exercise**: send information (e.g. distance as measured by an ultrasonic rangefinder) to your desktop computer using a TTL-to-RS232 serial converter and software on your PC such as PuTTY.
     21
     22== LCD Displays ==
     23For low power portable information output, it's hard to beat LCD displays.
     24
    725* LEDs and speakers for input
    826   * Speaker as microphone [http://www.circuitstoday.com/speaker-to-microphone-converter-circuit transistor preamp]
    927* !OpAmps 101
    1028* Capacitors, Inductors, and Resonance
    11 * LCD displays
    1229* LIDAR
    1330* 6 or 9DOF sensors