Monday, October 15, 2018

Oct 15 2018
Arduino BASICS
-Pin13 is the only one that already contains a resistor

void setup () {
-defines pins to use and rules for the loop.
-kinda like a style sheet from CSS

void loop () {
-Defines what we do with the pins we're using

-use "//" to make the rest of a line a comment that doesn't affect the script.
-use "/*" and end with "*/" to create an entire block of comments.
-Comments help you keep track of what piece of code does what.

type     variableName ;
type     variableName = value,      <-----can define what type of variable and its value at the same time

lowercaseUppercase <-----known as Camel Case

4 BIG TYPES: using correct type makes Arduino run much smoother and saves space

-A whole number from 0 to 255

-A positive or neg number from -32000 to 32000

-A positive or neg number that exists in a large range(from pos to neg billions)

-A value measured to the decimal point, either positive or negative

3 different types:
global - placing a declaration outside of setup and loop, allows it to be a rule that applies to all of the code.

function -

local - exists on the most specific level

Array-A list or collection that you can call on for different information.
-arrays have a type

int      myArray[]={val0, val1, val2,...}; <--- directly defining values in list

int      myArray2[5];   <-----says make room for a list of five integers, number in square brackets defines number of objects in list.

int      myArray2[5]; <----declared statement, would be located in setup
x=myArray2[2];  <------code finds 2nd value in list, x is an assignment, would be located in loop

color ranges are measured in bytes;
255,255,255 is white
0,0,0 is black

A fourloop is a mini function inside the loop that performs a list of functions in order.

void loop() {
for (int i=0; i<7; i++) {
  analogWrite(ledPin, flicker[i]);

i++ means move up a level

Monday, September 24, 2018

NOTES 9/28

Hertzian Tales

  • Dunn's Thesis
-Semiotics is the Study of Signs, signs ae made of the signified and the signifier.

Ethology- the study of behavior


Internet of Things (IOT)

Ambient Intelligence = Ubiquitous Computing

Dunne and Rabie

Sunday, September 9, 2018

Wetware Upgrade: Hyperlink

The Hyperlink is a small device implanted at the base of the neck that monitors and regulates the intensity of electrical currents in the human body. The Hyperlink pays attention to the movements of your body and uses basic principles of machine learning to direct synaptic pathways in the most efficient fashion. By exposing the connective tissue of your brain to heavier electrical workloads, the Hyperlink expedites the synaptic processes of your mind. This opens the door to a multitude of practical applications. Quicker thinking means faster learning and better memory, reducing the learning curve on many tasks significantly. The effects aren't only mental however, as the Hyperlink's regulation of electrical intensity also improves muscle response, resulting in quicker reflexes.

Wednesday, August 29, 2018

Simple LED Circuit Tutorial
Connect your battery terminal to the appropriate power rails.

Place one end of your resistor into any of the rows, and the other end into another row. The run a wire from the positive power rail to the same row as one end of your resistor.

Place the anode of your LED into the same row as the opposite end of the resistor from where you connected the power. Then place the cathode into an empty row. 

Connect the row containing the cathode of your LED to the negative power rail.

Connect your battery!

DAY 2 NOTES 8/29/18

Current moves from high potential to low potential

Circuit Diagram Symbols
Image result for circuit diagram symbol chart

Open Circuit - The loop is not closed, the circuit is not flowing.
Short Circuit - The power connects directly to ground.

XKCD <------ Great web comic

-Sandbox for circuit experimentation
-The holes in each row connect to one another, but the break in the middle separates each row.
-The holes in the columns on the side are called Power Rails and are connected all the way down, one column being our power source (positive +, usually coded red) and one column is the ground (negative -, usually coded black)

-Free electronic design software that allows you to design circuits both visually and schematically.
-You can even have circuits you've designed printed.

-Red/Yellow/Green are typically 3v and 20milliAmps
-All diodes are polar and control the direction of the current.

Monday, August 27, 2018

DAY 1 Notes 8/27/18

DAY 1 NOTES 8/27/18

2 types of current

  • Direct Current (DC) - Moves one direction
  • Alternating current (AC) - Alternates directions
Movement of electrons is a current.
All materials have resistance - friction as electrons move along.
Insulator- High resistance material (plastics, rubber, etc)
Conductors- Low resistance material (metals)

1 Amp of current - 6.25x10^18 per second
Resistance is lower in a thicker wire because theres more material to move along (ex. a wire pipe will move more water)
I(Amps)=V(Voltage)/R(Resistance) <-----Ohm's Law

Power never connects directly to ground.
There should always be a load on the circuit.

Circuit- A system that uses electricity to do some type of work.
Circuit Diagrams are also known as a Schematic.

Components - common part, manipulate current to do work.
Two common types:
  • Through hole(PHT)- older, uses legs that pass through holes
  • Surface Mount(SMT)- sit directly on the board.
Every component that is manufactured has a data sheet where you can view all the pertinent info for voltage, resistance, etc.

-a store of electrical potential
-supply DC
- come in a variety of voltages(V) and capacities known as Ampere-Hours(Ah)

-connect a section of circuit
-typical application is to connect the power
  • open- off position, not conducting
  • closed- on position, conducting
  • terms on data sheets are "normally open" (NO) and "Normally closed" (NC)
-controls currents
-common shape is a barrel with stripes denoting value of the resistor.
-measured in Ohms.
-use Omegas as symbol.
-common values/multipliers:
  • Kiloohm (thousands)
  • Megaohm (millions)
-There are apps to calculate the value of your resistor.

-common values:
  • picoFarads (trillionths)
  • nanoFarads (billionths)
  • microFarads (millionths)
-Light Emitting Diodes
-they have two polar legs:
  • Anode (positive)-longer leg, inside flag is smaller
  • Cathode (negative)-typically shorter leg, flag inside is larger
-integrated circuits
-typically two rows of legs, sometimes one row.
-kinda works like a lego brick, is a "process" that is commonly used enough to be packaged and utilized as a single component.
-each leg does a specific job, these are specified on the data sheet
-come in many different sizes.

Examples of Physical Computing projects:

  • EyeWriter
-used eye tracker to move a cursor around a field.
-made with a pair of glasses
-developed to assist a graffiti artist with ALS who could no longer move.

  • Text Rain
-people moving between a projection on the wall and a camera affect the movement of falling text on the projection.

  • Beatriz DaCosta's Pigeon Blog
-pidgeons wearing small sensors fly from a distant location to home, collecting information about air quality along the way.

  • Zap Away
-Anti-rape bra that zaps would-be assailants.

  • Mic Jammer
-emits an ultrasonic frequency that jams microphone recordings.

  • Touchy