Fabrication A Tangible Link Between Computer Science and 制造与计算机科学的有形的链接.pptVIP

  • 3
  • 0
  • 约5.85千字
  • 约 40页
  • 2018-06-24 发布于四川
  • 举报

Fabrication A Tangible Link Between Computer Science and 制造与计算机科学的有形的链接.ppt

Fabrication A Tangible Link Between Computer Science and 制造与计算机科学的有形的链接

* * * * Sensors There are many analog sensors that could be used in place of the photoresistor Check out our “theremin” demos created using other sensors Image credit: Tod Kurt Communication Between the Arduino and Your Computer Arduino Program Processing Program Arduino Board Your Computer Serial (TTL) Communication Processing Includes libraries supporting serial communication, video capture, audio processing… VERY IMPORTANT: enter the following command in the terminal window to update the serial library: ~brock/bin/serialfix Start Processing from the terminal window Activity 5 Hardware Needed: Resistor (10k Ohm) Breadboard Photoresistor Wire Don’t reassemble - this is the same schematic as Activity 4. Image credit: Tod Kurt Activity 5 Open SimpleWrite.pde into the Arduino IDE. Open SimpleRead.pde into Processing. Serial Communication in Arduino Serial Communication in Processing Clarifications SimpleWrite spends the first second sampling the photocell readings and setting limits. The Arduino program restarts when the Processing program starts. If the Processing program begins behaving badly, try pressing the restart button on the Arduino. Project 2 Project 2 * * * * * * * * * * * * * * * * * * * * * * * Using Arduino Material taken from Todbot blog Bionic Arduino What is the Arduino Arduino Duemilanove 13 digital input/output pins Including 6 with PWM for analog output 6 analog input pins USB connection For serial I/O and uploading board ATmega168 or ATmega328 processor 16k or 32k for program, 1k or 2k for data Arduino bootloader ~ $30 More Info Other Arduino Boards Arduino Mega Lots of I/O pins and lots (128k) of program space ~ $65 LilyPad For wearable applications ~ $20 Boarduino Fits within a breadboard ~ $20, but must be soldered! Activity 1 Start the Arduino IDE from the terminal window with the command: arduino Make sure to connect the PC to the Arduino using the USB cable. Designate the connection p

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档