background preloader

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

LadyAda - Arduino Tutorial - Learn electronics and microcontrollers using Arduino!
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?"

Beginning Embedded Electronics - 1 This is a series of lectures written for those with mild electronics background (aka Sophomore in Electrical and Computer Engineering) to learn about the wild world of Embedded Electronics. I assume only that you know what electricity is and that you've touched an electrical component. Everything else is spelled out as much as possible. There is quite a lot here so take your time! It is also my intention to get book-hardened EE's students to put down the calculator and to plug in an LED. Remember, if it smokes, at least you learned what not to do next time! You can get all the parts for this lecture here. Sorry for the confusion. What's a Microcontroller? You may know what an OR gate is. A microcontroller is the same as an OR gate. if (A == 1 || B == 1) else It's C code! In the old days, microcontrollers were OTP or one-time-programmable meaning you could only program the micro once, test the code, and if your code didn't work, you threw it out and tried again. if (PORTC.2 == 1) while(1)

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. 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”. Processing code: http_rgb_led.pde

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. I'm staring at my LCD module. #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() { }

t r o n i x s t u f f Arduino network power switch : télécommander via ethernet des équipements basse tension ou 220V avec une arduino - civade.com Ce qui devait arriver arriva... A force de jouer avec des cartes Arduino d'un coté et un environnement domotique de l'autre, l'envie vient de jouer avec les 2 en même temps... Voyons ici comment réaliser un "power switch", c'est à dire commander une carte relais, par ethernet, avec une arduino. Nous verrons aussi comment l'ntégrer ensuite à un envionnement domotique sous Linux, utilisant Heyu et le fontal domus.link pour l'interface web. Choix du matériel Pour faire cette réalisation, il va nous falloir : Une Arduino ou compatible (ici, une Freeduino, serial, achetée sur un célèbre site d'enchères en ligne)Une carte ethenet à base de composant EN28J60 (Ethernet Shield for arduino de NUElectronics : A noter que la quantité de ram utilisée nécessite un ATMega368 au lieu de l'ATMega168. Câblage Ici, 2 sorties sont utilisées : Digital 3 et 4. Logiciel embarqué Le principal problème est la communication par Ethernet. Première utilisation Et voila!

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). The latter take MIDI data in and make sound, light, or some other effect. (: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)

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. It supports NEC, Sony SIRC, Philips RC5, Philips RC6, and raw 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: Hardware setup Some background on IR codes

Spud This is an actual potato-powered Web server, currently online here. After the great SpudServer joke, I thought it would be interesting to see what an actual server capable of running on potatoes would look like. This server is very, very slow (around 0.2 hits/second), so you may have trouble connecting. The CPU is a Microchip PIC16F876 running with a 76.8 KHz clock and a nominal 1.5V supply voltage (somewhat outside the manufacturer's specifications). Every 5 minutes or so, a PC measures the voltage, current, and power output of the potato battery and sends the values in a small UDP packet to the server. Caveat Driving a standard PC serial port requires over 200 times the power needed to run the CPU, which would mean an additional 1000 potatoes. The circuit has been designed so that no power can leak from the serial port into the server's power supply. Status On the left is a plot of battery voltage and current versus time (click for more detail). Hardware Software Efficiency

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.

Ressources pour l'interactivité | Arduino / I2C Arduino est distribué avec la logithèque Wire qui permet une communication I2C et Two Wire. La logithèque Wire utilise un adressage à 7 bits pour l'écriture et la lecture. Pour convertir une adresse I2C à 8 bist en adresse I2C à 7 bits, les bits doivent être décalés vers la droite ( >> 1 ). Par exemple, le capteur TPA81 à l'adresse I2C 8 bits de 0xD0 (B11010000) par défaut. Rp=1.8k 5.1 Écriture // Set register and write data Wire.beginTransmission(ADDRESS); Wire.send(REGISTRE); Wire.send(DATA); [...] 5.2 Lecture // Set register Wire.beginTransmission(ADDRESS); Wire.write(REGISTRE); Wire.endTransmission(); // Request data Wire.requestFrom(ADDRESS, NUMBER_OF_BYTES); // Wait for register's datawhile(Wire.available() < NUMBER_OF_BYTES) { ; // Do nothing } int i2c_data = Wire.read();

Related: