Sunday, September 29, 2013

Processing 2 example: pushMatrix() and popMatrix()

Example of using pushMatrix() and popMatrix() of Processing 2:



void setup() {  // setup() runs once
  size(400, 300);
  background(255);
}

void draw() {
  
  pushMatrix();
  translate(200, 50);
  ellipse(50, 50, 100, 100);
  popMatrix();
  ellipse(50, 50, 100, 100);
}


Processing 2 example: translate()

Example of using translate(x, y) of Processing 2:

Processing 2 example: translate()
Processing 2 example: translate()


void setup() {  // setup() runs once
  size(400, 300);
  background(255);
}

void draw() {
  rect(50, 50, 100, 100);
  translate(200, 50);
  rect(50, 50, 100, 100);
}


Saturday, September 28, 2013

Arduino Projects For Dummies

Arduino Projects For Dummies
Arduino Projects For Dummies

Discover all the amazing things you can do with Arduino

Arduino is a programmable circuit board that is being used by everyone from scientists, programmers, and hardware hackers to artists, designers, hobbyists, and engineers in order to add interactivity to objects and projects and experiment with programming and electronics. This easy-to-understand book is an ideal place to start if you are interested in learning more about Arduino's vast capabilities. Featuring an array of cool projects, this Arduino beginner guide walks you through every step of each of the featured projects so that you can acquire a clear understanding of the different aspects of the Arduino board.
  • Introduces Arduino basics to provide you with a solid foundation of understanding before you tackle your first project
  • Features a variety of fun projects that show you how to do everything from automating your garden's watering system to constructing a keypad entry system, installing a tweeting cat flap, building a robot car, and much more
  • Provides an easy, hands-on approach to learning more about electronics, programming, and interaction design for Makers of all ages
Arduino Projects For Dummies is your guide to turning everyday electronics and plain old projects into incredible innovations.

Get Connected! To find out more about Brock Craft and his recent Arduino creations, visit www.facebook.com/ArduinoProjectsForDummies

June 4, 2013  1118551478  978-1118551479 1


Friday, September 27, 2013

Getting started with Arduino Yún

Getting started with Arduino Yún - tutorial

The Arduino Yún is a microcontroller board based on the ATmega32u4 (datasheet) and the Atheros AR9331. The Atheros processor supports a Linux distribution based on OpenWRT named Linino. The board has built-in Ethernet and WiFi support, a USB-A port, micro-SD card slot, 20 digital input/output pins (of which 7 can be used as PWM outputs and 12 as analog inputs), a 16 MHz crystal oscillator, a micro USB connection, an ICSP header, and a 3 reset buttons.

More info
http://blog.arduino.cc/2013/09/10/its-time-to-enjoy-the-arduino-yun-now-available-for-purchase/

Tuesday, September 24, 2013

Arduino 1.5.4 beta with Arduino Yun supported

If you have the new Yún or Due Board you must download the 1.5.4 version. Read release notes.

Download the Arduino Software.

Arduino 1.5.4 beta
Arduino 1.5.4 beta



Sunday, September 22, 2013

Arduino Community Logo is up

Arduino Community Logo
Arduino Community Logo
You can use the Arduino Community Logo as it is or adding the name of your group. Visit http://arduino.cc/en/Trademark/CommunityLogo to know more about Arduino Community Logo, download, and how to use it.

Tuesday, September 17, 2013

Zero to Maker: Learn (Just Enough) to Make (Just About) Anything

Zero to Maker: Learn (Just Enough) to Make (Just About) Anything
Zero to Maker: Learn (Just Enough) to Make (Just About) Anything
Zero to Maker: Learn (Just Enough) to Make (Just About) Anything
Are you possessed by the urge to invent, design, and make something that others enjoy, but don’t know how to plug into the Maker movement? In this book, you’ll follow author David Lang’s headfirst dive into the Maker world and how he grew to be a successful entrepreneur. You’ll discover how to navigate this new community, and find the best resources for learning the tools and skills you need to be a dynamic maker in your own right.
Lang reveals how he became a pro maker after losing his job, and how the experience helped him start OpenROV—a DIY community and product line focused on open source undersea exploration. It all happened once he became an active member of the Maker culture. Ready to take the plunge into the next Industrial Revolution? This guide provides a clear and inspiring roadmap.
  • Take an eye-opening journey from unskilled observer to engaged maker-entrepreneur
  • Enter the Maker community to connect with experts and pick up new skills
  • Use a template for building a maker-based entrepreneurial lifestyle
  • Learn from the organizer of the first-ever Maker Startup Weekend
  • Be prepared for exciting careers of the future


Saturday, September 7, 2013

Set frame rate of draw()

This example set frame rate (2 frames per second) by calling frameRate() in setup(). Also display the duration between draw() called. After frame rate set, draw() will be called in around 500ms.

Set frame rate of draw()
Set frame rate of draw()


long lastTime;

void setup() {
  size(300, 200);
  lastTime = System.currentTimeMillis() - lastTime;
  
  frameRate(2);  //set 2 frames/sec
}

void draw() { 
  long curTime = System.currentTimeMillis();
  long duration = curTime - lastTime;
  lastTime = curTime;
  println(duration);
}

Atmel and Arduino Inspiring the Maker Movement

Atmel - Atmel and Arduino Inspiring the Maker Movement

Bob Martin, Atmel MCU Applications Manager, discusses Atmel's unique relationship with Arduino, Maker Faire and the Maker Movement.

Atmel® has been inspiring the Maker Movement, also known as the maker culture, since 2005. Atmel microcontrollers (MCUs) have been powering almost every Arduino board on the market today. Our easy-to-use 8- and 32-bit MCUs are powering the worldwide Maker communities.

Atmel attributes the success of Arduino to its easy-to-use, free cross-platform toolchain, and its simple do-it-yourself packages with Atmel's MCUs. These factors helped initially steer the Arduino team to choose our AVR microcontrollers—and today, both our AVR® and ARM®-based MCUs.

For more information, please visit http://www.atmel.com/atmel-makes/default.aspx

Friday, September 6, 2013

Get the time of the program has run

The following code get the number of milliseconds a program has run using millis(), then print to the text area of the Processing environment's console using println().

void setup() {
  size(300, 200);
}

void draw() { 
  int t = int(millis());
  println(t);
}

Print the time of the program has run
Print the time of the program has run, in millisecond.

Wednesday, September 4, 2013

ArduinoDroid - Arduino IDE on Android


ArduinoDroid - Arduino IDE for Android

Features:
* open/edit arduino sketches
* example sketches and libraries included
* configurable code syntax highlighting
* compile sketches (no root required)
* upload sketches (FTDI-based board and Arduino Uno are supported at this time only, android devices with USB-host support required)
* works offline (internet connection is not required)

On first launch ArduinoDroid downloads and extracts SDK (about 30Mb), so about 100Mb of internal storage space is required.

Monday, September 2, 2013

Arduino Audio Circuits

Arduino Audio Circuits
Arduino Audio Circuits
Arduino Audio Circuits
August 31, 2013  1430245786  978-1430245780 1

Let's say you have an LED display, and you want it to indicate volume from your TV, MP3 player, or other sound source. How do you make it work? With Discover Audio with Arduino, you'll learn exactly that.

You will build simple to intermediate volume unit (VU) meters using LEDs, analog
meters & circuits, LCDs, and the Arduino. You'll also build simple amplifier circuits to enhance monitoring sound of radios, TVs, and MP3 players. You'll even learn how to use he online simulation tool CircuitLab to analyze simple amplifier circuits for VU projects and experiments.

What you’ll learn

  • How to combine sound and LED displays
  • How to do sound experiments with Arduino
  • How to test amplifier circuits with CircuitLab
  • How to build an Arduino-based volume unit meter

Who this book is for

Arduino and electronics hobbyists who want to learn more about working with audio displays and volume monitoring.


Arduino Software 1.5.3 BETA released

If you have the new Due Board you must download the 1.5.3 version. Once you get the software follow this instruction to get started with the Arduino Due.

WARNING: This software is a beta version, you may encounter bugs or unexpected behaviours. Please discuss any issues in the Due forum.

Release note

Download Arduino Software.