background preloader


Facebook Twitter

Arduino interfacing with the HD44780 LCD « Adams Bros Blog. It became time for me to interface an LCD with my Arduino.

arduino interfacing with the HD44780 LCD « Adams Bros Blog

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() { } Arduino Hacks. Arduino:tutorial [DokuWiki] Ressources pour l'interactivité. Arduino est distribué avec la logithèque Wire qui permet une communication I2C et Two Wire.

Ressources pour l'interactivité

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. En décalant les bits vers la droite, l'adresse I2C devient 0x68 (B01101000): 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 =;

A Multi-Protocol Infrared Remote Library for the Arduino. Note for Arduino 1.0 An updated version with 1.0 support is available on github.

A Multi-Protocol Infrared Remote Library for the Arduino

Installation instructions are at the bottom of that page. Let me know if you encounter any problems. 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? 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 ( ! 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 Handling raw codes. Arduino Tutorial - connecting a parallel LCD.

Arduino Tutorials. So, I get two or three emails a day, all basically asking the same thing: "Where can I learn about electronics?

Arduino Tutorials

" 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? " Arduino - introduction.