User Tools

Site Tools


intro_to_im_09-14-16

Intro to IM

Place: Inside the teaching lab that is hidden somewhere deep in the Arts Center
Time: Wednesday, September 14, 2016, 2:40pm – 5:20pm


Forword

  • Checking attendance
  • Ars Electronica overview, Linz, Austria
  • Please add your code examples using the “Code Blocks” tool. It lets you post code snippets using the the Visual Editor or Text Editor. ⇒ quick demo
  • EDS Movie Night (tonight, 8pm): Metropolis in the Engineering Design Studio (A5, 015)

Power on

Todays lecture will be about Mapping, analog input

Variables using Arduino:

  • boolean – A boolean holds one of two values, true or false. Each boolean variable occupies one byte of memory.
  • byte – A byte stores an 8-bit unsigned number, from 0 to 255.
  • int – Integers are your primary data-type for number storage.
  • long – Long variables are extended size variables for number storage, and store 32 bits (4 bytes), from -2,147,483,648 to 2,147,483,647.
  • char – A data type that takes up 1 byte of memory that stores a character value. Character literals are written in single quotes, like this: 'A' (for multiple characters - strings - use double quotes: “ABC”).

Homework

Readings
Assignment
  1. From last week: Expanding on your initial switch, make a program with the Arduino that combines multiple digital inputs and outputs
  2. Get information from an analog sensor and use it to control an LED in an unexpected way.
intro_to_im_09-14-16.txt · Last modified: 2024/06/28 19:11 by 127.0.0.1