Changes between Version 2 and Version 3 of SoftwareOverviewIntermediate


Ignore:
Timestamp:
Oct 2, 2017, 11:06:40 PM (8 years ago)
Author:
cdelgigante
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SoftwareOverviewIntermediate

    v2 v3  
    1 Good Evening.
     1Good Evening!
    22
    3 Welcome to the Control Systems Team!  Now the fun can begin.  This page will start to teach you Java, the programming language that the team uses.
     3Welcome to the Control Systems Team!  Now the fun can begin.  This page will start to teach you a little bit of Java, and how make your programs interact with the outside world.  This is the basic idea of robotics:  Make programs that control things like motors and sensors to do things.
    44
    5 Java is a programming language with lots of parts.  People spend years learning it, take whole classes in it, and do all sort of things with it.
    6 We're going to teach you some of the basics here so you can control the robots, but to get really good at it you're going to have to do some studying on your own.
     5Like the Python language we showed you previously, Java is a programming language too.  It has lots of parts.  People spend years learning it, take whole classes in it, and do all sort of things with it.  We're going to teach you some of the basics here so you can control the robots, but to get really good at it you're going to have to do some studying on your own.
    76
    87Lets start out simple.
    98
     9==Introducing the Zebra Zero Environment==
     10For this level of exercise, we're going to be using a training platform called the Zebra Zero.   It consists of a Raspberry Pi Zero W microcomputer, and a breadboard.
     11
     12===What is a Raspberry Pi Zero W?===
     13A Raspberry Pi Zero W is a tiny $10 computer.  It has usb ports, a video connector, wifi, and a GPIO (General Purpose Input/Output) connector to interface to the outside world.  The pins on this GPIO connector perform a variety of functions such as power, ground, input, and output.   The pins can programed to behave in different ways.  We'll be connecting to the Pi and running Java programs on it which control the GPIO connector and the world outside of the Pi.
     14
     15===What is a Breadboard?===
     16A breadboard is an tool to quickly build circuits.   It looks like this:
     17
     18The lines of dots are all electrically connected to one another so wires can be slipped in and connected without any soldering.   Look hear to learn more: [link]
     19
     20
     21
     22
     23
     24 
    1025Recall that we said in a prior activity that Python is a programming language.   Its a language with syntax (nouns, verbs, etc).   Java is the same.  This is a java program:
    1126
    12 '''public class HelloWorld{
     27public class HelloWorld{
    1328   pubic static void main(String[] args) {
    1429      System.out.println("Hello World");
    1530   }
    16 }'''
     31}
    1732
    1833If we tell the computer to run this code, it will print, you guessed it, 'Hello World'. The {} curly brackets are used to create blocks of code, the same thing was done in Python with indenting.  HelloWorld is a class aka a container, and when you run it java knows to automatically run whatever is in the main, which is to print something.   You try it [[https://www.tutorialspoint.com/compile_java8_online.php here] (Hint: Click execute to run the program)
     
    2035That's the last dull program you'll write here.  Lets do something more fun.
    2136
    22 ==Introducing the Zebra Zero Environment==
    23 For this level of exercise, we're going to be using the Zebra Zero Breadboard platform.   It consists of a Raspberry Pi Zero W, and a breadboard.
    24 
    25 What is a Raspberry Pi Zero W?
    26 
    27 A Raspberry Pi Zero W is a tiny $10 computer.  It has usb ports, a video connector, wifi, and a GPIO (General Purpose Input/Output) connector to interface to the outside world.  The pins on this GPIO connector perform a variety of functions such as power, ground, input, and output.   The pins can be set in code to behave in different ways.  We'll be connecting to the Pi and running Java programs on it which control the GPIO connector and the world outside of the Pi.
    28 
    29 What is a Breadboard?
    30 
    31 A breadboard is an tool to quickly build circuits.   It looks like this:
    32 
    33 The lines of dots are all electrically connected to one another so wires can be slipped in and connected without any soldering.   Look hear to learn more: [link]
    34 
    35    
    36