GRARA Meets Arduino

download GRARA Meets Arduino

of 49

description

Arduino

Transcript of GRARA Meets Arduino

  • 7/16/2019 GRARA Meets Arduino

    1/49

    Ham Radio ApplicationsHam Radio Applicationswith thewith the

    Arduino Micro-ControllerArduino Micro-Controller

    Michel Hill, W8DER Grand Rapids Amateur Radio Association

  • 7/16/2019 GRARA Meets Arduino

    2/49

    GRARA February MeetingGRARA February MeetingDemo of Drone Aircraft by Al, KC8OPUDemo of Drone Aircraft by Al, KC8OPU

  • 7/16/2019 GRARA Meets Arduino

    3/49

    GRARA February MeetingGRARA February MeetingDemo of Drone Aircraft by Al, KC8OPUDemo of Drone Aircraft by Al, KC8OPU

    Arduino Mega Controlled Flight Control SystemArduino Mega Controlled Flight Control System

  • 7/16/2019 GRARA Meets Arduino

    4/49

    Discovering the ArduinoDiscovering the Arduino

    ARRL Leadership Workshop -Detroit Clubs & Arduino Projects

    Looking for club DIY Projects

    Interest in a club fundraising products

    Looking cheaper microcontroller

    development system

    ArduinoMicro

    Controllers

    Looking for an easier way to developfox hunting microcontroller devices

  • 7/16/2019 GRARA Meets Arduino

    5/49

    What is a Micro-controller?What is a Micro-controller?

    A micro-controller is acomplete computer on a

    single chip.

    Atmega328

  • 7/16/2019 GRARA Meets Arduino

    6/49

    Central Processor Program Memory Scratchpad

    Memory EEProm Memory UART (Com Port) A to D Converters

    D to A Converters Interrupt Circuitry

    Control Logic Watchdog Circuitry Power up/down

    Circuitry I/O Pin setup cir-

    cuitry Master Clock Cir-

    cuitry Simple Serial Inter-

    face

    What's Inside a Micro-controller?What's Inside a Micro-controller?

  • 7/16/2019 GRARA Meets Arduino

    7/49

    Many Ham ApplicationsMany Ham Applications

    Remote station controls Fox hunting compass hdg Fox hunting GPS bearings Fox Transmitter Controller Code and SSB auto keyers Morse code reader/display Propagation beacon Controller Web server Remote Controls Wireless sensor networks Motor speed/direction controls Digital camera controller Tone Generator DDS Signal Generator Frequency Counter Controller Radio Control

    Data collection & logging APRS Controls Antenna switching and direc-

    tion controls Packet radio controller

    Antenna tuner control Data entry and display Repeater Controls GPS Loggers for balloon

    ham radio flights Satellite equipment control-

    lers and trackers Robotics Model Railroad Control

    Grandpa Apps: Robotics, Model Railroad Controls and Automation

  • 7/16/2019 GRARA Meets Arduino

    8/49

    Advantages of ArduinoAdvantages of Arduinooverover

    Commercial Micro-controller SystemsCommercial Micro-controller Systems

    Programming knowledge Electronics knowledge Computer architecture

    knowledge Expensive development

    software and equipment

    Very little experience tostart hard work is done

    Public domain HWD & SW Low cost hardware ~ $30 Free Software

    Concentrate on learningone area at a time Lots of resources on the

    web Expandability

    Readily available parts

    Commercial Development Arduino Development

  • 7/16/2019 GRARA Meets Arduino

    9/49

    The Arduino Development SystemThe Arduino Development System

    An open source hardware

    prototyping environment

    An open source softwareprogramming environment(http://www.arduino.cc)

    For micro-controller based devices

    A neat addition to the ham radio hobby

  • 7/16/2019 GRARA Meets Arduino

    10/49

    The Arduino OpenThe Arduino Open

    SourceSource SoftwareSoftwareProgrammingProgramming

    EnvironmentEnvironment

    Download: Windows Mac OS X Linux: 32 bit, 64 bit

    http://www.arduino.cc

    An extremely well simplified, yet powerful version of theC/C++ Programming Language.

    Perfect for learning by the hobbyist and experimenter.

  • 7/16/2019 GRARA Meets Arduino

    11/49

    The Arduino OpenThe Arduino Open

    SourceSource HardwareHardwarePrototypingPrototyping

    EnvironmentEnvironmentMicro-controller break-out boards, functional shield boards,

    prototype shield boards, Arduino sensors

    Most add-on circuitry comes with software examples andsoftware libraries where necessary.

  • 7/16/2019 GRARA Meets Arduino

    12/49

    Start on a shoestring....Start on a shoestring....

    Arduino is outrageously affordable

    Downoad Free Software from http://www.arduino.cc

  • 7/16/2019 GRARA Meets Arduino

    13/49

    Common Arduino BoardsCommon Arduino Boards

    The Arduino UNO R3The Arduino UNO R3

    Processor: Atmega328 Program Memory: 32K RAM Memory: 2K

    EEProm Memory: 1K Processor Speed: 16 Mhz Digital Input/Output: 14 PWM Outputs: 6 Analog Inputs: 6

    New Enhanced USB chip &3.3v output. Amazon Price: $21.95

  • 7/16/2019 GRARA Meets Arduino

    14/49

    Common Arduino BoardsCommon Arduino Boards

    The Arduino Duemilanove R3The Arduino Duemilanove R3

    Processor: Atmega328 Program Memory: 32K RAM Memory: 2K

    EEProm Memory: 1K Processor Speed: 16 Mhz Digital Input/Output: 14 PWM Outputs: 6 Analog Inputs: 6 Amazon Price: $19.95

  • 7/16/2019 GRARA Meets Arduino

    15/49

    Common Arduino BoardsCommon Arduino Boards

    The Arduino MegaThe Arduino Mega 25602560 R3R3

    Processor: Atmega2560 Program Memory: 256K RAM Memory: 8K

    EEProm Memory: 4K Processor Speed: 16 Mhz Digital Input/Output: 54 PWM Outputs: 15 Analog Inputs: 16 Amazon Price: $54.45

  • 7/16/2019 GRARA Meets Arduino

    16/49

    Common Arduino BoardsCommon Arduino Boards

    The Arduino Nano R3The Arduino Nano R3

    Processor: Atmega328 Program Memory: 32K RAM Memory: 2K

    EEProm Memory: 1K Processor Speed: 16 Mhz Digital Input/Output: 14 PWM Outputs: 6 Analog Inputs: 8 Amazon Price: $19.99

  • 7/16/2019 GRARA Meets Arduino

    17/49

    New! Released October 22, 2012New! Released October 22, 2012

    The Arduino Due 32-bit ControllerThe Arduino Due 32-bit Controller

    Processor: AT91SAM3X8E Program Memory: 512K RAM Memory: 96K EEProm Memory: ?K Processor Speed: 84 Mhz Digital Input/Output: 54 (6 PWM) Analog Outputs: 2 Analog Inputs: 12 Initial Price: $49.00 to $82.00 Debug Access connector Same Programming IDE

    Pronounced Doo-eh

  • 7/16/2019 GRARA Meets Arduino

    18/49

    The Arduino UNO Board LayoutThe Arduino UNO Board Layout

  • 7/16/2019 GRARA Meets Arduino

    19/49

    Shields Make I/OShields Make I/O ExpansionExpansion EasyEasy

    Stackable shields expandI/O interface. Hundreds ofshields available.

    Motor Control WiFi Network

    Ethernet Mesh networks Low cost point to point com Displays Sensors

    Memory Relays Many, many more. See http://www.shieldlist.org

    Sparkfun.comGPS Shield

    Packets are sentand received in

    AX.25 UI frames at1200 baud. This

    allows operation onthe VHF APRS

    network.

    APRS RadioShield

    A full GPSReceiverinterfaced to the

    Arduino UNO

  • 7/16/2019 GRARA Meets Arduino

    20/49

    Digital DisplaysDigital Displays

  • 7/16/2019 GRARA Meets Arduino

    21/49

    Shields MakeShields Make PrototypingPrototyping EasyEasy

    Photo: John Boxall

  • 7/16/2019 GRARA Meets Arduino

    22/49

    Relay Interface BoardsRelay Interface Boards

  • 7/16/2019 GRARA Meets Arduino

    23/49

    SensorsSensors

    Heat sensor Humidity sensor Gas sensors Shaft encoder Photo sensor Geiger sensor Photo/light sensor Fingerprint reader

    Infra red transmitter Infra red receiver Flex sensor Mag hdg sensor

  • 7/16/2019 GRARA Meets Arduino

    24/49

    The Arduino Micro-Controller BoardThe Arduino Micro-Controller BoardThe Open-Source Micro-Controller Prototyping Platform

  • 7/16/2019 GRARA Meets Arduino

    25/49

    Digital Inputs and OutputsDigital Inputs and Outputs

    Note: D0 13 are digital inputs by default, but can bechanged to digital outputs during setup.

  • 7/16/2019 GRARA Meets Arduino

    26/49

    The Analog InputsThe Analog Inputs

    Note: A0 A5 are analog inputs by default, but can bechanged to digital inputs and digital outputs during setup..

  • 7/16/2019 GRARA Meets Arduino

    27/49

    Fox hunting transmitter controller Display Shield, LCD Signal Generator Stepper Motor Pointer Morse Code from a PS2 Keyboard Remote Control Web Server Station Control Relay Board Mesh Networks for Home Use

    Sample ApplicationsSample Applications

    The Byonics PicConThe Byonics PicCon

  • 7/16/2019 GRARA Meets Arduino

    28/49

    The Byonics PicConThe Byonics PicCon

    Fox-Box ControllerFox-Box Controller

  • 7/16/2019 GRARA Meets Arduino

    29/49

    A Breadboard FoxBoxA Breadboard FoxBox

    ControllerController

    The Arduino Microcontroller Board

    DTMF Control/Interface Board

    A d i D ilA d i D il

  • 7/16/2019 GRARA Meets Arduino

    30/49

    Arduino DuemilanoveArduino Duemilanove

    with a Display/Keyboard Shieldwith a Display/Keyboard Shield

    A d i & DDS AD9650A d i & DDS AD9650

  • 7/16/2019 GRARA Meets Arduino

    31/49

    Arduino & DDS AD9650Arduino & DDS AD9650

    0 - 40 Mhz Signal Generator0 - 40 Mhz Signal Generator

    A d i D i i S

  • 7/16/2019 GRARA Meets Arduino

    32/49

    Arduino Driving a StepperArduino Driving a Stepper

    MotorMotor

    The Morse Code KeyboardThe Morse Code Keyboard

  • 7/16/2019 GRARA Meets Arduino

    33/49

    The Morse Code KeyboardThe Morse Code Keyboard(Put that old PS2 Keyboard to use)(Put that old PS2 Keyboard to use)

  • 7/16/2019 GRARA Meets Arduino

    34/49

    Remote Control Web ServerRemote Control Web Server

  • 7/16/2019 GRARA Meets Arduino

    35/49

    Remote Control Web ServerRemote Control Web Server

    PowerSwitch Tail IIPowerSwitch Tail II

    And the...

  • 7/16/2019 GRARA Meets Arduino

    36/49

    Remote Control Web ServerRemote Control Web Server

    Station Control Relay BoardStation Control Relay Board

  • 7/16/2019 GRARA Meets Arduino

    37/49

    Station Control Relay BoardStation Control Relay Boardwith the Arduinowith the ArduinoNanoNano Micro-ControllerMicro-Controller

    M h N k f A d iM h N t k f A d i

  • 7/16/2019 GRARA Meets Arduino

    38/49

    Mesh Networks of ArduinosMesh Networks of Arduinos

    Laptop Arduino Xbee Node

    Sensor Xbee NodeRouter Xbee Node

    RouterXBee Node

    SensorXBee Node

    ArduinoXBee Node

    Sensor

    XBee Node

    SensorXBee NodeArduino

    XBee Node

    Laptop

    The W8DER Bucket ListThe W8DER Bucket List

  • 7/16/2019 GRARA Meets Arduino

    39/49

    The W8DER Bucket ListThe W8DER Bucket List

    of Future Arduino Projectsof Future Arduino Projects

    #1

    The W8DER B cket ListThe W8DER Bucket List

  • 7/16/2019 GRARA Meets Arduino

    40/49

    The W8DER Bucket ListThe W8DER Bucket List

    of Future Arduino Projectsof Future Arduino Projects

    GPS enabled fox hunting antenna Arduino interface to digital camera Master/Slave fox box controls Digital logic synthesizer Infra-red controls - ham station Infra-red controls robotics

    Complete the home xBee network Raspberry-pi Graphical I/O Interface

    The Programming ProcessThe Programming Process

  • 7/16/2019 GRARA Meets Arduino

    41/49

    g g

    Compiler

    1001100101010011101000111000101110000000

    0001110100

    1001100101

    0100111010001110001011100000000001110100

    Bootloader

    CPU

    Pin 13

    USB Cable

    Laptop Computer Arduino Microcontroller

    Writing a SketchWriting a Sketch

    http://program%20files/Arduino/arduino-1.0.1/arduino.exehttp://program%20files/Arduino/arduino-1.0.1/arduino.exehttp://program%20files/Arduino/arduino-1.0.1/arduino.exe
  • 7/16/2019 GRARA Meets Arduino

    42/49

    Writing a SketchWriting a Sketch

    with thewith the

    Arduino IntegratedArduino IntegratedDevelopment EnvironmentDevelopment Environment

    (IDE)(IDE)

    G i S d Wi h B kG tti St t d With B k

    http://program%20files/Arduino/arduino-1.0.1/arduino.exehttp://program%20files/Arduino/arduino-1.0.1/arduino.exehttp://program%20files/Arduino/arduino-1.0.1/arduino.exehttp://program%20files/Arduino/arduino-1.0.1/arduino.exehttp://program%20files/Arduino/arduino-1.0.1/arduino.exehttp://program%20files/Arduino/arduino-1.0.1/arduino.exehttp://program%20files/Arduino/arduino-1.0.1/arduino.exehttp://program%20files/Arduino/arduino-1.0.1/arduino.exehttp://program%20files/Arduino/arduino-1.0.1/arduino.exehttp://program%20files/Arduino/arduino-1.0.1/arduino.exehttp://program%20files/Arduino/arduino-1.0.1/arduino.exe
  • 7/16/2019 GRARA Meets Arduino

    43/49

    Getting Started With BooksGetting Started With Books

    Reference BooksReference Books

  • 7/16/2019 GRARA Meets Arduino

    44/49

    Reference BooksReference Books

    Mechanical Interface ReferenceMechanical Interface Reference

  • 7/16/2019 GRARA Meets Arduino

    45/49

    Mechanical Interface ReferenceMechanical Interface Reference

    (Going Wild!)

    Arduino Web LinksArduino Web Links

  • 7/16/2019 GRARA Meets Arduino

    46/49

    Arduino Web LinksArduino Web Links

    Arduino Sites: http://www.arduino.cc http://wiring.org.co/learning/basics/

    http://www.shieldlist.org

    Arduino Discussion GroupsArduino Discussion Groups

    http://www.shieldlist.org/http://www.shieldlist.org/
  • 7/16/2019 GRARA Meets Arduino

    47/49

    Arduino Discussion GroupsArduino Discussion Groups

    Yahoo Groups: http://groups.yahoo.com/group/arduinohome http://groups.yahoo.com/group/arduino

    http://groups.yahoo.com/group/rc-arduino http://groups.yahoo.com/group/HEAP1

    Other Lists:

    http://arduinotronics.blogspot.com http://arduino.cc/forum/ http://www.cheat-sheets.org/saved-copy/Arduino-

    cheat-sheet-v02c.pdf

    Arduino SuppliersArduino Suppliers

    http://groups.yahoo.com/group/arduinohttp://groups.yahoo.com/group/rc-arduinohttp://groups.yahoo.com/group/HEAP1http://arduino.cc/forum/http://arduino.cc/forum/http://groups.yahoo.com/group/HEAP1http://groups.yahoo.com/group/rc-arduinohttp://groups.yahoo.com/group/arduino
  • 7/16/2019 GRARA Meets Arduino

    48/49

    Arduino SuppliersArduino Suppliers

    http://www.Amazon.com http://www.sparkfun.com http://www.sainsmart.com http://www.jameco.com

    http://www.adafruit.com http://www.mouser.com/arduino http://www.digikey.com/arduino Http://www.makershed.com

    Just Google Arduino Suppliers for many more.

    Got an idea?Got an idea?

    http://www.amazon.com/http://www.sparkfun.com/http://www.sainsmart.com/http://www.jameco.com/http://www.adafruit.com/http://www.mouser.com/arduinohttp://www.digikey.com/arduinohttp://www.digikey.com/arduinohttp://www.mouser.com/arduinohttp://www.adafruit.com/http://www.jameco.com/http://www.sainsmart.com/http://www.sparkfun.com/http://www.amazon.com/
  • 7/16/2019 GRARA Meets Arduino

    49/49

    Got an idea?Got an idea?

    Join thousands of other hamsJoin thousands of other hams

    who are developing Arduinowho are developing Arduino

    applications.applications.

    The BeginningThe Beginning