http://arduino.cc/en/Serial/Print
the word "byte" confuses me.
a "byte" sometime indicates
"A byte stores an 8-bit unsigned number, from 0 to 255."
but in a parentheses of Serial.print, "BYTE" indicates 2 bit.
http://arduino.cc/en/Serial/Print
the word "byte" confuses me.
a "byte" sometime indicates
"A byte stores an 8-bit unsigned number, from 0 to 255."
but in a parentheses of Serial.print, "BYTE" indicates 2 bit.
I made up a more easy way to connect Isadora and Arduino.
First I need to do is write a program for Arduino
------------------------------------------------
int digiPin = 3; // This number will decide the input digital pin
int val = 0; // just a variable for calculation
void setup()
{
Serial.begin(9600); // serial speed
}
void loop()
{
val = digitalRead(digiPin); // read the input pin
Serial.println(99,BYTE);
/*
99 = c It is ASCII Any world is fine as long as match with Isadora,
BYTE indicate 2-bit it seems critical, since other commend did not work.
*/
Serial.println(val); // actual data which will be sent
delay(1000); // control frequency
}
----------------------------------------------
The next step is to run Isadora
Prepare "serial in watcher binary"
Double click it and open a window
type in followings
---------------------------------------------
"c"
value_2 : integer = 2 digits
---------------------------------------------
c must be a small c not a large C
Any word is fine for "value_2"
Since this program deal with 2-bit, the number 2 before digits can be omitted.
Setup serial seed and port.
Make sure serial is enabled.
It should be OK
I finally succeed connecting Arduino and Isadora.
This is today's goal, so I am happy.
http://arduino.cc/en/Tutorial/Button
And then move to the Isadora and setup USB port.
make sure that the seep is set properly and choose right connection(in this case COM3).
Sometime Isadora can not find the USB connection since other software uses it.
In such case , most of the time Arduino programing software using the connection so just close it.
However, somehow it is still unstable, and Isadora was dead couple times.
More experiment result check video.
The sources are come from below link
I understand a way to connect Isadora and Arduino little bit.
I, actually, could send some data from Arduino to Isadora, but I could not control it since I did not have hardwares and my understanding of program and hardwares was not enough.
As long as I seeing a program for Arduino, it is very simple.
I think that I need to understand Isadora more to solve this issue.
I will hack the ready made program to understand more properly and to control Isadora well tomorrow.
Somehow, my computer had a problem, probably at my video card, while I am running the program on Arduino. It was bit scare me.
about variable
http://www.javadrive.jp/start/var/index4.html (Japanese)
The webpage is actually designed for Java but it works well.
about increment and decrement
http://www.javadrive.jp/start/ope/index6.html (Japanese)
"if"
http://www.javadrive.jp/start/if/index2.html (Japanese)
Arduino
void setup()
{
Serial.begin(9600);
Serial.println("Hellow world");
}
void loop()
{
}
Java
}
Both languages use "println" to display words. It makes easier to understand.
Also escape sequence is available such as , \n.
This circuit and program are control the LEDs. The green LED lits 0.1 second and 0.1 second later, the Red lits 0.6 second.
I know very very little bit about Java. Java developed from C and the Arduino has similarity with C. Therefore, I can understand the Arduino program little more easier.
I did a modification.
int nko =11;// LED connected to digital pin 11 which is yellow
digitalWrite(nko, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(nko, LOW); // set the LED off
delay(1000); // wait for a second
I finally find a proper power supply adapter.
From many webpage the voltage should be among 6~12 no more than them.
From arduino web page 6~20v
The below example is from one of a tutorial webpage.(Arduino has many varieties and I am not 100% sure whether this is suit to my board )
9V DC 100-500mA
P.S. it seems that as long as connecting the USB cable to a computer, USB cable can supply enough amount of electricity to the Arduino board.
Purchase(ed) material
Arduino
Arduino Starter Kit
Arduino Lilypad Deluxe-Kit(waiting)
X-bee wireless shield(waiting)
Arduino Motor Shield(waiting)
Arduino Ethernet Shield(waiting)
Arduino Sensor Kit(waiting)
Arduino 9V battery case(waiting)
Application
Touch OSC iphone app(waiting)
Environment
Workstation computer based on Dell precision 490
64bit Windows 7 /XP, Xeon 5355 x2, 8GB RAM, Quadro FX 5600, Approx. 1TB HDD.
Laptop Dell studio 1555
32bit Windows 7, C2D p8600, 4GB RAM, Radeon 4570, 500GB HDD.
Applications
PuTTy
PureData
processing
Arduino Software
TroikaTronix Isadora
Adobe Production Premium CS4
Autodesk Entertainment Creation 2010 + V ray for Maya
Java JDK
Other Hardwares
USB web-cam
Wacom Intuos 4 tablet
Creative USB sound card
ViewSonic projector
Nikon xD40
JVC video camera
Discuss about the 8 week project.
Assignment research about arduino, precedent artists, institutes(about art and technology), none- profitable grant, background.
Start to draw idea sketches.
Got a main board of Arduino.
Cleaned up my studio space and setup computers in my room for the research.
Next meeting schedule is June 9.