noise

Arduino programming

Arduino programming

Posts on arduino – sketches, schematics, tutorials, etc. So far, managed to successfully build ant test just one project. Other projects are in test phase. Personally, I stuck on Manchester code for telemetry. Just investigating weather “VirtualWire” may help in such situation when need some digital data transmit/receive. More Arduino projects will be available here and on GitHub. I am new on GitHub, so please bear with me – I am bit slow due to headaches I have past days. Thank you for understanding.

Arduino

Vertical speed indicator, or simply: Vario-meter

Original Variometer by Rolf R. Bakke

Arduino programming is not hard. It is much easier than programming (for example) PIC micro-controller. Out there are “zillion” examples and free codes. Any code you found here, you may use as you wish, as long as it is not in commercial purpose. You are free to share this codes, but please respect author.

Copyright notice

Usually all codes are in public domain, but maybe out there exist some copyrighted codes, don’t know.  Usually it is i form of text message as “//this code is made by…” or similar.  If you change something, improve code and/or functionality, then you can call it your code (it will be good to consult GitHub community to get right answer I currently haven’t). I think some 30% of the code should be changed (by some convention, not sure where i did read it), so that you can call it your project. Even if you change just 1%, and code works better, it is fair idea to put name of original author name next to yours; for example of Arduino Variometer made by Rolf R. Bake (it is not my project, so please do not include my name in between him and your changes). And if you changed something, then you may put something like this: “Original code made by Rolf R. Bakke…, improved by _________”.  It is also good idea to include exact date of your last change on code; this way, anyone can track which code is better.

The most popular Arduino code

No, it is not fancy program for anything – the most popular, and most used code is “Blink LED”:

/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the Uno and
  Leonardo, it is attached to digital pin 13. If you're unsure what
  pin the on-board LED is connected to on your Arduino model, check
  the documentation at http://www.arduino.cc

  This example code is in the public domain.

  modified 8 May 2014
  by Scott Fitzgerald
 */


// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

But, this code is part of Arduino IDE (Integrated Development Environment) as an example.  This is important code for everyone who just unpacked their version of Arduino board, and want to start program, but don’t know from where to start, and whether it will works.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Science and more

%d bloggers like this: