Showing posts with label Week 2. Show all posts
UPDATE - Week 2
By : xThe following activities were conducted to get familiar with Arduino:
- Researching on Arudino -->(Basic Insight by Ho Wang Lam)
- Setting up the development environment --> (Tutorial by Ashish Shrestha)
- Writing up some fun script --> (SOS signal by Xingyu Huang)
Tag :
Week 2,
Weekly Update,
Arduino !!
By : Lam Ho Wang
Arduino official website:
“ARDUINO IS AN OPEN-SOURCE ELECTRONICS PROTOTYPING PLATFORM
BASED ON FLEXIBLE, EASY-TO-USE HARDWARE AND SOFTWARE. IT'S INTENDED FOR
ARTISTS, DESIGNERS, HOBBYISTS AND ANYONE INTERESTED IN CREATING INTERACTIVE
OBJECTS OR ENVIRONMENTS.“
Feature:
1 It is a circuit design platform base on CC open source
2 The software is free to download, and open to everyone
3 Arduino allow to use ICSP to load bootloader on the IC
chip
4 Provide USB hub and DC 5V
5 Support a lot of program such as: Adobe Flash, Max/MSP,
VVVV, Pure Data, C, ect….
Why Arduino?
Arduino simplify a lot of process of working with microcontroller,
the advantage of it are:
1.
Inexpensive – Arduino is relatively inexpensive
compared to other circuit. The cost can be lower than 50$
2.
Cross platform – Arduino support Window, Mac OSX
and Linux
3.
Extensible software
Extensible hardware-Arduino is based on Amel’s ATMEGA8 and ATMEGA168 microcontrollers.
Making a SOS signal
By : Noctis KingMaking a SOS signal
The Arduino program is basic on C++, so it is to learn and program. I make a SOS signal program by using the LED which on the Arduino board.
int led = 13; //set the LED connected to pin 13
void setup() {
pinMode(led, OUTPUT); //set the pin as output
}
//The signal of SOS is three short, three long,
//and three more short flashes of light, so that is
//the LED action. Using loop to loop this process.
void loop() {
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
digitalWrite(led, HIGH);
delay(3000);
digitalWrite(led, LOW);
delay(1000);
digitalWrite(led, HIGH);
delay(3000);
digitalWrite(led, LOW);
delay(1000);
digitalWrite(led, HIGH);
delay(3000);
digitalWrite(led, LOW);
delay(1000);
digitalWrite(led, HIGH);
delay(500);
digitalWrite(led, LOW);
delay(1000);
digitalWrite(led, HIGH);
delay(500);
digitalWrite(led, LOW);
delay(1000);
digitalWrite(led, HIGH);
delay(500);
digitalWrite(led, LOW);
delay(1000);
}
Getting Started with Arduino
By : x
This tutorial is a beginners guide to setting up Arduino development environment. We will be using Arduino Uno for this project. To follow the official getting started with Arduino tutorial click here.
- Getting the hardware: You can obtain the Arduino board from the official store or through Amazon, and also other vendors.
- Getting the software: Download the required software (development environment) to program the Arduino board. The supported operating system as of now are Windows, Linux and MacOS.
- Connecting to Arduino: After installing the software,
- Connect the Arduino board to the computer with the provided USB cable.
- Now go to Tools>Board and select Arduino Uno.
- In the Tools>Serial Port select the associated COM port.(You can find this by unplugging the USB cable. The COM port that disappeared is the one.)
- Uploading your first program: Several example scripts are provided. For this tutorial we will be using a simple script that makes the LED 13 on the board blink.
- Go to File>Examples>1.Basics and open ‘Blink’. This will load the Blink script.
- Now click ‘Upload’ button on the development environment.
- If uploading is successful than you should see LED 13 blinking. If it failed make sure that the Arduino is connected and associated COM port is selected.