Wednesday, February 21, 2018

AND

OR

NOT

if( x > o && x < 5) {
   statement;
     }

if( x > 0 || y > 0 ) {
    statement;
      }

if ( !x > 0 ) {
   statement;
     }

relay lab

Blinky

A post shared by デム (M. Byers) (@chirinmon) on

Monday, February 19, 2018

relay lab

relay: switching device. allows you to use one circuit to turn on and off another circuit keeping both circuits electrically isolated.

close switch: on
open switch: off

JQF-3F (T73) Model currently being used for this lab


Wednesday, February 14, 2018

data types

bytes:  0 - 225
int: -32,767 - 32,768
long: -2.1 billion - 2.1 billion
float: decimal number.

arrays

essentially a list of data

int myArray[ ] = {2 , 14 , 145 , . . . }

int myArray2[5],
x = myArray2[3],

zero is your first value when counting numbers in code

--
constants


HIGH/LOW
TRUE/FALSE
INPUT/OUTPUT

--

if ( something ?? ) {
 do ?? something)
  }

x = analogRead(0)
if ( x < = 200 ){
digitalWrite(ledPin, HIGH),
}

else { digitalWrite (ledPin, LOW), }

--
NOISE

pull up

pull down
   resistor

"ignore everything until it's Really sending a signal"