by rouan · 13y ago · 0 comments
To get started download and run http://processing.org/
Paste in this code and click run. Start messing around and start learning if, while, functions etc.
--------------------------------------------
void setup() {
size(640,480);
background(15, 25, 25);
}void draw() {
stroke(255,255,125, 55); //RED, GREEN, BLUE, ALPHA 0-255
line(320,240,mouseX, mouseY);
}--------------------------------------------
Then with arduino, very similar environment. About $20 for a board. You can start blinking LEDs etc. Get an UNO board to start off with. File > Examples > ..
With an LED in pin 11 and Ground. Upload this code and rejoice.
--------------------------------------------
void setup() {
pinMode(11, OUTPUT); //sets 11 to output power instead of read in
}void loop() {
// put your main code here, to run repeatedly:
digitalWrite(11, HIGH); //switches on 5Volt
delay(200); //waits for 0.2sec
digitalWrite(11, LOW); //switches off gnd
delay(100); //waits for 0.1sec
}--------------------------------------------
After this I would recommend starting on nodejs/html/css since you can use processingjs to draw in your browser, nodejs can connect to arduino and allow for internet of things.
To back up this claim I am making, here is an arduino 3D printer I've developed from scratch. I mean we milled the parts we needed based off a reprap frame, I couldnt get the idiotic firmwares and code available to work so I started with an arduino and a stepper motor and figured it out.
https://github.com/fluentart/arrowprint I'm a self taught artist that got interested in code so I don't claim to be good at it, as I really have no base to compare my quality of code to others except for the end result and the process of it for me personally.
Please tell me how a pic would be better? I am eager to learn.