3 ms·
I think you should learn processing and arduino, possibly before starting into web. There are already a lot of web developers, and not enough visual/electronic
by rouan 13y ago
I think you should learn processing and arduino, possibly before starting into web. There are already a lot of web developers, and not enough visual/electronic opensource devs.
To get started download and run http://processing.org/ 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 > ..
http://arduino.cc/en/ http://arduino.cc/en/
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.
- talmir 13y agoI would rather point him in the direction of a pic microcontroller, straight AVR (without the arduino middleman) or maybe even one of the cortex boards out there. Arduino has been made too "fool proof" with external libraries and hand-holding to be any more valuable for learning programming than the average hello world programming tutorial.
- rouan 13y agoI respect your view, and cannot compare it to PIC as I have no experience with it. You comment makes me angry though, because I've seen this view before from others and I think it is false. Arduino has been immensely empowering tool to learn, a joy to work with and the community is incredibly helpful and supportive. 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 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.