Arduino Workshop Notes: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
(Created page with 'arduino class topics 1-electronics 2-arduino 3-programming 1. open circuit vs closed circuit vs short circuit. short circuits are easy to do and not notice, it just breaks yo…')
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
arduino class
==Thursday, August 19 2010==
 
===Agenda===
Basic: Intro to Electronics; Intro to Microcontrollers; Install and run Arduino IDE; Intro to Arduino 
Advanced topic: Counters and timers
 
===Intro to Electronics===
closed/open circuits; schematic; switch; transistor
 
===Intro to Microcontrollers===
Miniature computer with special features: transistors attached to pins (Digital Outputs) that you can control in your program
 
 
===Intro to Microcontrollers===
 
==First workshop==


topics
topics
Line 5: Line 20:
2-arduino
2-arduino
3-programming
3-programming
 
----
 
1.
1.
open circuit vs closed circuit vs short circuit.  short circuits are easy to do and not notice, it just breaks your components.
open circuit vs closed circuit vs short circuit.  short circuits are easy to do and not notice, it just breaks your components.


electricity - mechanical controls of electricity
electricity - mechanical controls of electricity
electronics - electrical control of electricity
electronics - electrical control of electricity


transistor - an electronic switch
transistor - an electronic switch


Electric current means, depending on the context, a flow of electric charge (a phenomenon) or the rate of flow of electric charge (a quantity). -wikipedia
Electric current is the flow of electrical charge through a conductor
 
voltage - analogous to water pressure
current - analogous to water flow rate (e.g. gallons per minute)
resistance - somewhat analogous to a blockage in a water pipe, reducing the rate of flow


voltage - like water pressure
---
current - like water flow speed


2.
2.
0-13 transistors/pins, each is output OR input
digital pins 0-13: each can be either output OR input. When output, each pin corresponds to an individual transistor which is under your control (via your program)
DIP-name of type of chip, with 2 parallel rows of legs


DIP-name of type of chip, with 2 parallel rows of legs (DIP = Dual Inline Package)


----


3.
3.
software environment - file-examples-
software environment - file-examples-
/*multiline notes*/
 
//short notes at end of line
/*multiline comments*/
 
//short comments at end of line


2 things minimum to make a program
2 things minimum to make a program


void setup () {entire function}
void setup () {entire function}
void loop () {entire function}
void loop () {entire function}


When used in the declaration of a pointer, void specifies that the pointer is "universal." -http://msdn.microsoft.com/en-us/library/fxky5d0w(VS.80).aspx
(don't worry about the "void" for now)


installing drivers: comes with the software kit


installing drivers
once installed tools/serial port menu gets clickable, choose your port.  then make sure you chose the right chip!!
comes with the software kit
once installed tools/serial port menu gets not greyed out, choose port.  then make sure you chose the right chip!!

Latest revision as of 13:47, 19 August 2010

Thursday, August 19 2010[edit]

Agenda[edit]

Basic: Intro to Electronics; Intro to Microcontrollers; Install and run Arduino IDE; Intro to Arduino Advanced topic: Counters and timers

Intro to Electronics[edit]

closed/open circuits; schematic; switch; transistor

Intro to Microcontrollers[edit]

Miniature computer with special features: transistors attached to pins (Digital Outputs) that you can control in your program


Intro to Microcontrollers[edit]

First workshop[edit]

topics 1-electronics 2-arduino 3-programming


1. open circuit vs closed circuit vs short circuit. short circuits are easy to do and not notice, it just breaks your components.

electricity - mechanical controls of electricity

electronics - electrical control of electricity

transistor - an electronic switch

Electric current is the flow of electrical charge through a conductor

voltage - analogous to water pressure current - analogous to water flow rate (e.g. gallons per minute) resistance - somewhat analogous to a blockage in a water pipe, reducing the rate of flow

---

2. digital pins 0-13: each can be either output OR input. When output, each pin corresponds to an individual transistor which is under your control (via your program)

DIP-name of type of chip, with 2 parallel rows of legs (DIP = Dual Inline Package)


3. software environment - file-examples-

/*multiline comments*/

//short comments at end of line

2 things minimum to make a program

void setup () {entire function}

void loop () {entire function}

(don't worry about the "void" for now)

installing drivers: comes with the software kit

once installed tools/serial port menu gets clickable, choose your port. then make sure you chose the right chip!!