Lab 6 Serial Communication

Exercise 5:

Working in pairs, exchange data between Processing and Arduino using serial communication. Make a Processing sketch that tells Arduino to do something, and make your Arduino tell Processing to do something as well. Document your work on the documentation blog.

One way to think about this is to send a char or a byte from Processing to the arduino but make sure you know which one you are sending. Also make sure you have the serial port number set correctly and the baud settings set on both Arduino and Processing.

 

 

 

Lab 4- Sensors

Exercise 4: 
Go to the IMA Equipment Website and check-out one of the following sensors that is not provided with your Arduino kits:
Attach it to your Arduino and use the data from your sensor to turn on and off an output (Servo motor, LEDs, Buzzer, etc.). Document your work on the documentation blog.

Here are some notes that can help you:

  • Moisture Sensors, Sharp IR Sensors, and Vibration Sensors use simple analog read.
    • In the case of Infrared Distance Sensors using map() can be helpful to map the analog readings from the sensor to the distance between the sensor and the object it is sensing — look at the bag of your sensor to know what is its distance range. For the Sharp Infrared Distance Sensor you can also download the Sharp IR library here. After downloading the library unzip the folder and move it to Documents —> Arduino —> Libraries folder. Then you will have to restart the IDE to make sure the new library is included. You can use the “SharpSensorCm” sample code.
  • In the case of Ultrasonic Range Distance Sensors we have three types of sensors: Grove Ultrasonic Range V 0.1, Grove Ultrasonic Range V 0.2, and HC-SR04.
    • For the HC-SR04 you can use the Ping example on your Arduino IDE — under Examples —> 0.6Sensors. In order to do that you will have to connect both Trig and Echo to the same Digital Pin in your Arduino.
    • For Grove Ultrasonic Range V 0.1 and V 0.2 you can download the Seed Studio library here. After downloading the library unzip the folder and move it to Documents —> Arduino —> Libraries folder. Then you will have to restart the IDE to make sure the new library is included. You can use the “UltrasonicDisplayOnTerm” sample code.
  • For Grove Accelerometer_ADXL345 you can download the Seed Studio library here. After downloading the library unzip the folder and move it to Documents —> Arduino —> Libraries folder. Then you will have to restart the IDE to make sure the new library is included. You can use the “ADXL345_demo_code” sample code.

Lab 2- Arduino Basics

Exercise 2:

Working in pairs:

We realize the documentation on your kits suggest you use the prototyping shield. We suggest you skip the shield and hook them up using this documentation. Remember you still need to program the arduino with example code from the DFRobot link

  1. Traffic lightScreen Shot 2017-02-14 at 5.06.53 PM copy(click to make bigger)
  2. Temperature Alarm Screen Shot 2017-02-13 at 12.54.00 PM
  3. Ambient LightScreen Shot 2017-02-13 at 12.53.33 PM copy
  4. RGB Light DimmerScreen Shot 2017-02-17 at 12.15.55 PM

 

Lab 1

Exercise 1:

  • Create a simple circuit based on one or more of the circuit diagrams below on a breadboard and document it on the documentation blog. The first circuit uses a voltage regulator, buzzer and a switch. The second circuit uses a voltage regulator, resistor, LED and switch. The third circuit uses a voltage regulator, resistor, potentiometer, LED and switch.
  • 1st lab interaction lab cheatsheet 

exercise1Don’t be this guy!

https://www.facebook.com/scott.westerman/videos/10154552731187316/