background preloader

Arduino

Facebook Twitter

Codebender. The Absolute Beginner's Guide to Arduino. Over the Christmas break from work I wanted to learn something new. I’ve been eyeing up Arduino for some time now, and for Christmas I got an Arduino UNO R3 board. What is Arduino? Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. Microcontroller Arduino is a microcontroller on a circuit board which makes it easy to receive inputs and drive outputs.

A microcontroller is a integrated computer on a chip. Inputs Some examples of inputs would be a temperature sensor, a motion sensor, a distance sensor, a switch and so forth. Outputs Some examples of outputs would be a light, a screen, a motor and so forth. Arduino is a small computer that you can program to read and control electrical components connected to it. Obtaining an Arduino Board There are several online distributors that stock Arduino boards. Programming Arduino. Learn the basics. Installing an Arduino Library. What's a Library?

Arduino libraries take a complex task and boil it down to simple to use functions. Arduino users have written lots of exciting add-ons for Arduino. For example, capacitive sensing takes difficult timing and pulsing of digital pins. We can write the code from scratch, or we can stand on the shoulders of great people who are smarter than we are. Capacitive touch sensing is a very popular interface. The CapacitiveSensor library takes care of everything so that we don’t have to write code like this: *sOut &= ~sBit; // set Send Pin Register low *rReg &= ~rBit; // set receivePin to input *rOut &= ~rBit; // set receivePin Register low to make sure pullups are off *rReg |= rBit; // set pin to OUTPUT - pin is now LOW AND OUTPUT *rReg &= ~rBit; // set pin to INPUT *sOut |= sBit; // set send Pin High interrupts(); // enable interrupts while ( !

All that code can be replaced with a much easier to use and understand statement such as: senseReading = myCapPad.capacitiveSensor(30); Wait. Alternative Arduino Interfaces. Overviewing the Options Arduino is awesome! It’s our go-to electronics education platform, and it’s our top choice for rapid prototyping, but it isn’t for everyone. Maybe it’s the cryptic language, or the Java-based IDE, or maybe it’s just the teal window border – regardless of your reasoning, if you’re trying to escape the Arduino IDE, here are a few alternatives we’d like to share.

The Arduino alternatives covered in this tutorial range from simple, introductory graphical programming to web-based Arduino interfaces for your web browser. Here’s a quick overview of each interface covered, we’ll go into further detail later on: ArduBlock – A Visual Programming Arduino Extension ArduBlock is a graphical programming add-on to the default Arduino IDE. ArduBlock is a perfect interface if you’re just getting into programming, electronics, or Arduino. Minibloq – Visual Programming Standalone Software Check out the Minibloq section of this tutorial for an introduction to the interface. …and Beyond. Fundamentals of C++ Programming. Top 40 Arduino Projects of the Web. Arduino Projects. The World Famous Index of Arduino & Freeduino Knowledge.