Solar Power, Alternative Energy & Electronic Measurement Equipment

  • Home
  • Reviews
  • Tutorials
  • DIY
  • Store
  • About
  • Book Recommendations
  • Support
  • Forum
  • YouTube
  • Test and Measurement
  • Research and Data
  • Contact
Follow on Google+

Menu

Reveal Search Field

Please support MJLorton.com and our sponsors at Red Pitaya by turning off your ad-blocker

Thank you, Martin

RedPitaya sponsored link
  • Arduino Tutorial #3 – Functions, Return Values and Variables

    October 17, 2012 Posted in: Arduino

    A tutorial on sketch structure, functions, return values and variables.

    Tweet about this on TwitterShare on Google+Share on FacebookEmail this to someoneDigg thisShare on RedditShare on Tumblr
    • Placeholder image
  • Sketch / code used in tutorial: http://mjlorton.com/forum/index.php?t…
    Buy your Arduino kit here: http://astore.amazon.com/m0711-20?_en…

    Arduino Site: http://www.arduino.cc/
    Arduino software / IDE: http://arduino.cc/en/Main/Software
    Arduino forum: http://arduino.cc/forum/

    Items and topics covered in this video:

    * Local and global variables
    * Functions / procedures
    * Return values from functions
    * Sample sketch code that does Math / arithmetic and write to the terminal
    * Some commands used: Serial.print; Serial.println, if, else, void setup, void loop, return

    Arduino Uno R3 features:

    * ATmega328 micro controller
    * Input voltage – 7-12V
    * 14 Digital I/O Pins (6 PWM outputs)
    * 6 Analogue Inputs
    * 32k Flash Memory
    * 16Mhz Clock Speed

    Handy websites:
    http://www.toddfun.com/
    http://www.arduino.cc/
    http://tronixstuff.wordpress.com/
    http://www.timnolan.com
    http://www.timnolan.com/index.php?pag…
    http://www.ladyada.net/learn/arduino/…

  • Please support the creation of new video content on MJLorton.com by turning off your ad-blocker

    Thanks, Martin

    MJLorton Amazon Support Link
  • Please support MJLorton.com and our sponsors at Programming Electronics Academy by turning off your ad-blocker

    Thanks, Martin

    Kit-on-a-shield sponsored link
  • Please support MJLorton.com and our sponsors at Programming Electronics Academy by turning off your ad-blocker

    Thanks, Martin

    Learn to Use Arduino sponsored link
  • Please support MJLorton.com and our sponsors at Tektronix by turning off your ad-blocker

    Thanks, Martin

    Tektronix sponsored link

  • HDI PCB

    Bittele Electronics

  • Circuit Card Assembly

  • Please support MJLorton.com and our sponsors at Rheingold Heavy by turning off your ad-blocker

    Thanks, Martin

    Rheingold Heavy sponsored link
  • Please support MJLorton.com and our sponsors at Contextual Electronics by turning off your ad-blocker

    Thanks, Martin

    Contextual Electronics sponsored link
  • Please support MJLorton.com and our developer Steve Kirkby by turning off your ad-blocker

    Thanks, Martin

    Hire Steve Kirkby - freelance web developer sponsored link

Blog Links

Rheingold Heavy | The Amp Hour | Contextual Electronics | Ian Johnston | SDG Electronics | Proyectos LED

YouTube Channels

Gerry Sweeney | W2AEW | Jeri Ellsworth | Proyectos LED | Mike's Electric Stuff | Electrodacus | OSH Junkies | EEVBlog | The Signal Path Blog | Mike's Electric Stuff Website | Afrotechmods | The Burb Billy

Website by Steve Kirkby - Freelance Web Developer