background preloader

Arduino Tutorial - Learn electronics and microcontrollers using Arduino! - Nightly

Arduino Tutorial - Learn electronics and microcontrollers using Arduino! - Nightly
So, I get two or three emails a day, all basically asking the same thing: "Where can I learn about electronics?" In general, most of these people have seen some of my projects and want to be able to build similar things. Unfortunately, I have never been able to point them to a good site that really takes the reader through a solid introduction to microcontrollers and basic electronics. I designed this tutorial course to accompany the Arduino starter pack sold at the Adafruit webshop. The pack contains all the components you need (minus any tools) for the lessons Follow these lessons for happiness and prosperity. Lesson 0 Pre-flight check...Is your Arduino and computer ready? Here are some recommended tools: If you need to get any soldering done, you may also want.... All of the content in the Arduino Tutorial is CC 2.5 Share-Alike Attrib. Love it? To some extent, the structure of the material borrows from: The impressively good "What's a microcontroller?"

DIY Ambient Orb with Arduino, update « todbot blog - Nightly There’s been some confusion as to whether or not the DIY RGB orb presented in the last post was actually connected to a computer and receving color data from it. Here’s a video that more accurately depicts what’s going on and all the code used to create it. Hardware The hardware is just an Arduino board connected via USB to a laptop. The Arduino appears as a serial device to the computer. On the Arduino board, three LEDs (red,green,blue) are mounted directly to the Arduino board using a prototyping shield like this DIY one. Arduino code The code sketch running on the Arduino board is a slightly modified version of the one presented in the last Spooky Arduino class. Arduino code: serial_rgb_led_too.pde Processing code To bridge between the Arduino and the Net, a small Processing sketch was created that uses the standard Java HTTPURLConnection class to fetch a web page (really, a text file on a web server) containing a line with a color value in the format “#RRGGBB”.

arduino interfacing with the HD44780 LCD « Adams Bros Blog It became time for me to interface an LCD with my Arduino. I need to generate a handy report of what my various sensors are picking up. The following is an account of my notes on twisting up my HD44780 compatible LCD on the Arduino. Please enjoy. I'm staring at my LCD module. I can hear it saying, "hook me up!" #1: Identification On the back of the unit, it says:AMC2004A-B-B6NTDW-SP LOT#000542 A little Googling for "AMC2004A-B" and I find that it's an HD44780 compatible LCD. #2: Figuring The only figuring I need is for the backlight. #3: Wiring A little skimming of the spec sheet helps me understand how to wire this up so here we go: Pin No. #4: Programming The LiquidCrystal Library came with my Arduino 0012 Alpha software package (IDE). #include <LiquidCrystal.h> /* LiquidCrystal display with: LCD 4 (RS) to arduino pin 12 LCD 5 (R/W) to ground (non-existent pin 14 okay?) void loop() { }

Gloss: a Pygame OpenGL wrapper Gloss is a high-performance graphics wrapper around Pygame that lets you take advantage of OpenGL without having to delve into the murky depths of 3D programming. Gloss lets you build 2D games where you can rotate, scale and recolor sprites on the fly, and also includes a selection of helpful mathematics functions to make the life of games coders easier. Gloss is licensed under LGPLv3, and comes with full documentation, a tutorial and several code examples to help get you started, so if you're looking to make a game quickly and easily give it a try! OpenGL is much harder than Pygame. Gloss uses OpenGL, but hides it all. What does Gloss include? The functionality most people will want to use in Gloss includes: Download the tarball and run some of the examples to see what Gloss can do. Doesn't Pyglet do all this already? Pyglet is a very cool and very mature OpenGL library for Python, but it serves quite a different purpose to Gloss. Is Gloss hard to learn? Quite the opposite!

Arduino Tutorial - Lesson 3 - Breadboards and LEDs You've started modifying sketches, and played a bit with the onboard LED (or if you have an NG, an LED you added). The next step is to start adding onto the hardware component of the Arduino. We will do this by adding a solderless breadboard to our setup, connecting up new parts with wire. Solderless breadboards are an important tool in your quest for electronics mastery. Basically, a chunk of plastic with a bunch of holes. In the images above you can see how there are two kinds of metal strips. In this lesson, we will show pictures of both the tiny breadboard on a protoshield and also using a 'standard' breadboard without a shield. Warning! Distressing as it may sound, solderless breadboards can be very flakey, especially as they age. To use the breadboard, you'll need jumper wires. Heres how to do it with just diagonal cutters...Cut the wire first, using wire cutters Nick the insulation, then pull it off. The resistor is the most basic and also most common electronic part. Look again!

t r o n i x s t u f f Labs / MIDI Output using an Arduino - Nightly Overview This page covers only the details of MIDI communication on the Arduino module. For a more general introduction to MIDI on a microprocessor, see the MIDI notes on Tom's physical computing site. MIDI, the Musical Instrument Digital Interface, is a useful protocol for controlling synthesizers, sequencers, and other musical devices. MIDI devices are generally grouped in to two broad classes: controllers (i.e. devices that generate MIDI signals based on human actions) and synthesizers (including samplers, sequencers, and so forth). (:toc Table of Contents:) Parts For this lab you'll need: Solderless breadboard 22-AWG hookup wire Arduino Microcontroller module MIDI connector 10Kohm resistors 220 ohm resistors Flex sensors(or a different form of variable resistor) switch Prepare the breadboard Connect power and ground on the breadboard to power and ground from the microcontroller. (Diagram made with Fritzing - download) Connect the sensors Build the MIDI Circuit Play Notes Allow a Person to Play Notes

A Multi-Protocol Infrared Remote Library for the Arduino Do you want to control your Arduino with an IR remote? Do you want to use your Arduino to control your stereo or other devices? This IR remote library lets you both send and receive IR remote codes in multiple protocols. To use the library, download from github and follow the installation instructions in the readme. How to send This infrared remote library consists of two parts: IRsend transmits IR remote packets, while IRrecv receives and decodes an IR message. #include <IRremote.h> IRsend irsend; void setup() { Serial.begin(9600); } void loop() { if (Serial.read() ! This sketch sends a Sony TV power on/off code whenever a character is sent to the serial port, allowing the Arduino to turn the TV on or off. How to receive IRrecv uses an infrared detector connected to any digital input pin. The examples/IRrecvDemo sketch provides a simple example of how to receive codes: The IRrecv class performs the decoding, and is initialized with enableIRIn(). Hardware setup Some background on IR codes

Welcome to the 419 Eater TITLE: Busted! SCAMMER NAME: Ony Obo SCAMMER LOCATION: Lagos, Nigeria SCAMBAITER: Shiver Metimbers For a slight change, we have a scammer trying to ply his trade via a different routine. This time it's a repentant dying man, wanting to distribute his millions to charity. Of course, were someone to reply to this email wanting to help, the victim would have course pay fictitious "fees" to a fake barrister that the scammer would hire to handle the cash transfer. We've had carvings and artwork from scammers on quite a few occasions now, and I think it's time to move on to other ways to cause misery for these thieves, so for my final attempt at getting artwork out of a scammer I'll try for something a little different. It all starts way back near the end of July 2006... From: Ony Obo To: Brian Anthony Date: July 23rd 2006 Subject: HELP ME TO SPREAD GOODNESS Hello my friend, Hope this day finds you well? God bless you Ony Obo Things to note: This guy is a grade 'A' P.O.S. OK. Dear Mr. Sincerely, thanks

Make Yahoo! Web Service REST calls with Python Python provides a number of modules for performing HTTP requests. This HOWTO describes how to perform GET and POST requests using the urllib and urllib2 modules from the Python standard library. Simple GET requests The simplest way of retrieving data from a URL uses the urllib.urlopen function: import urllib url = ' u = urllib.urlopen(url) # u is a file-like object data = u.read() This can be condensed in to a single line: data = urllib.urlopen(url).read() This is fine for quickly retrieving some data, but does not give you the ability to easily distinguish between normal page retrievals and 404 or 500 errors. import urllib2 try: data = urllib2.urlopen(url).read() except urllib2.HTTPError, e: print "HTTP error: %d" % e.code except urllib2.URLError, e: print "Network error: %s" % e.reason.args[1] An HTTPError is thrown if the server returns a status code other than 200 (OK) or an HTTP redirect. Simple POST requests Some APIs require you to make POST requests.

Bodies, Sensors, and Sound workshop | machine project - Nightly Working with accelerometers and movement to manipulate sound. Sunday, September 23rd Saturday, September 29th Sunday, September 30th 12 – 3pm Instructors: Natalie Metzger and Stephanie Smith Non-members: $200 Members: $185Parts & materials included. Course Description: We will build a simple arduino-based accelerometer interface that will interpret movement to manipulate sound. What you’ll need: Laptop with PureData (free program that we’ll install in class) A sock or stocking (clean preferred) The following kit will be provided: Arduino UNO R3 (w/ headers)accelerometer: MMA7361USB 2.0 cableall necessary resistors, wires, and solder Lesson 1: Sensor Introduction Sensor Build Movement Introduction Lesson 2: Movement exploration Sensor Programming Lesson 3: Active playing with sensors and movement Brainstorm future potentials and projects Instructor Bios: Natalie Metzger (movement artist) is an award-winning choreographer and filmmaker based in Los Angeles.

Related: