background preloader

Arduino Cheat Sheet

Arduino Cheat Sheet

Bionic Arduino – Introduction to Microcontrollers with Arduino Bionic Arduino is a set of four 3-hour classes in November 2007 hosted by Machine Project and taught by Tod E. Kurt. It is an introduction to microcontroller programming and interfacing with the real world using the Arduino physical computing platform. It focuses on building new physical senses and making motion with the building blocks of robotics, using Arduino as a platform. In the class, participants are shown and experiment with the Arduino’s capabilities and learn the basics of common microcontroller interfacing, such as: digital output to control lights and LEDs, digital input to read switches and buttons, analog output to control motor position or LED brightness, and analog input to read sensor inputs. The class assumes no previous electronics knowledge, though it does assume a little programming knowledge. Class description at Machine Project Class Notes Arduino Sketches Used in Class Processing Sketches Used in Class Parts Suppliers, New Parts Suppliers, Surplus

Arduino Shield List This is Wiring (and Arduino) The Wiring i/o board is a small, cheap standalone computer with many connection capabilities. It can be easily programmed in a variant of the Processing language, with a similar programming environment. The board can control all kinds of sensors and actuators. Sensors allow the board to acquire information from the surrounding environment (temperature sensors, light sensors, distance sensors, etc). Actuators are devices that allow the board to create changes in the physical world (lights, motors, heating devices, etc). Wiring is an open project initiated by Hernando Barragán (University of Los Andes, Architecture and Design School). Arduino was inpired by Wiring and is basically the same thing. One great thing about these i/o boards are the available libraries. This lecture introduces the Wiring and Arduino i/o boards to Media Technology students through simple examples that demonstrate how to connect and program the board.

Can you move over? The 74HC595 8 bit shift register OK, so say you have this crazy cool idea where you need to control a ton of LEDs (I know, I know… LEDs). You looked at the multiplexer article, and that was great, but this idea is so cool, you need individual control of each LED, and turning them on one at a time just won’t do. Well again, we are here to help, and now it’s time to introduce you to the Shift Register. Not just any shift register, the super cheap, incredibly awesome 74HC595 8-bit Shift Register! What does a Shift Register do? Basically a shift register will, in the end, let you expand on the digital outputs you have on your mictrocontroller. But the way it works is a little confusing to think of at first, and these are helpful enough that it is really worth understanding what the heck is going on under the hood. You can imagine a shift register as a row of chairs. Now, every 10 seconds or so, someone rings a bell, and everyone has to get up and move one chair to the right. How does this let me control LEDs again? Code

16x32 RGB LED matrix panel ID: 420 - $79.95 : Adafruit Industries Bring a little bit of Times Square into your home with this 16 x 32 RGB LED matrix panel. These panels are normally used to make video walls, here in New York we see them on the sides of busses and bus stops, to display animations or short video clips. We thought they looked really cool so we picked up a few boxes of them from a factory. They have 512 bright RGB LEDs arranged in a 16x32 grid on the front. On the back there is a PCB with two IDC connectors (one input, one output: in theory you can chain these together) and 12 16-bit latches that allow you to drive the display with a 1:8 scan rate. These displays are 'chainable' - connect one output to the next input - but our Arduino example code does not support this (yet). These panels require 12 digital pins (6 bit data, 6 bit control) and a good 5V supply, up to 2A per panel. Keep in mind that these displays are designed to be driven by FPGAs or other high speed processors: they do not have built in PWM control of any kind.

Circuits@Home arduino meets processing - PUSHBUTTON The Arduino meets Processing project intends to make it as easy as possible for anyone to explore the world of physical computing. All you need is an Arduino board as well as the Arduino and Processing software, which you can download on their project websites. On this website we explain how to: set up electronic circuits with various kinds of sensors, control and measure the sensors with the Arduino board, send the data to the computer, and use the received values to generate computer graphics with Processing. For all examples you need some basic electronic equipment such as a breadboard , resistors, the sensors, and some wires. The following sensors are dealt with on this website: Digital Sensors Pushbutton Switch 8 switches Tilt sensor Accelerometer Analog Sensors Potentiometer LDR light sensor NTC temperature sensor Joystick Ultrasound Piezo element as knock sensor All examples contain a list of the parts as well as the Arduino and Processing files you need. 'G' turns the grid ON/OFF

rh_count Relative Humidity Measurement using the Humirel HS1101 Sensor Arduino, BasicX BX24 and PICAXE-18X copyright, Peter H. Anderson, Baltimore, MD, Nov, '07 (Nov, '07). Introduction This discussion focuses on a relatively simple technique for measuring relative humidity using a sensor. It is desireable to measure temperature as people are usually interested in both the relative humidity and temperature. Advantages of this technique for measuring relative humidity are that it is inexpensive and as the input to the processor is a pulse train as opposed to an analog voltage, the RH measurement circuitry may be located several hundred feet from the processor. I offer a small assembled package, consisting of a HS-1101 sensor, TS555 (SGThompson), 49.9K and 562K one percent resistors for the 555 circuitry, and a separate 10K NTC thermistor for measuring temperature. In the above I have illustrated the powering of the humidity board using a processor output. Arduino. BasicX BX24

Welcome

Related: