background preloader

Arduino Tutorial - connecting a parallel LCD

Arduino Tutorial - connecting a parallel LCD

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() { }

Amarino - "Android meets Arduino" - Home KS0108 Graphics LCD library Arduino LCD playground | KS0108 Graphics LCD library KS0108/glcd is an unofficial Arduino library that supports Graphic LCDs (GLCD) that use the KS0108 (or equivalent) chip. The next version of the GLCD library (v3 - now called "glcd") is now available. The latest build of the glcd library can be found here: glcd library downloads The library includes example sketches and a readme.txt file to explain the basics of adding a library as well as extensive documentation.For the latest and most complete documentation refer to the html documentation included in the library download. Version 3 (Officially released June 2012) Source code and related downloads can be found on the Google code project: glcd-arduino To provide higher performance and new functionality, Version 3 is a complete re-write of the low level i/o routines and text rendering code as well as several of the graphic functions. Version 2 (added July 2009) supports the Mega and Sanguino boards, and has the following new features:

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

Wiring 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();

Freeduino Arduino Tutorials 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?"

Tutorials New! Getting Started with LTspice LTspice is a high performance SPICE simulator, schematic capture and waveform viewer with an impressive library of passive devices. Over 1000 models are included in the download but you can also add third party models. RFID Basics An overview of Radio Frequency Identification (RFID) technology. LIS3DH Hookup Guide A guide to connecting the LIS3DH to a microcontroller and using the Arduino library. Lessons in Algorithms Learn techniques on how to use Finite Impulse Response (FIR) filters and other data-processing tools to turn data into information. Illuminated Mask Use LilyPad LEDs, a switched battery holder, and coin cell battery to make a fun light up mask for your next costume party. Glowing Pin Create a quick and easy piece of e-textile art using a LilyPad LED, battery holder, conductive thread, and coin cell battery. Light-Up Plush Craft a light-up plush with LilyPad LEDs controlled by pressing a button and sliding a switch in the creature's hands.

Arduino Astronomical Clock for Automatic Light Control Arduino Astronomical Clock for Automatic Light Control There are many ways to automatically control these lights. The gadget I was using (until I completed this project, that is) was a simple mechanical timer. This product allows you to set separate turn-on and turn-off times and those repeat every day. Figure 1 - Sunset time variation at my location (note: time axis is "DST time" a.k.a "summer time") Another approach to this problem, and one that you often find in many beginner elecronics projects, is to turn the lights ON/OFF based on some photo-sensitive device; a LDR or a photo-transistor for example. My objective with this project was to build a system that, given my latitude and longitude coordinates and the current time/day of the year, automatically calculates the sunrise and sunset times, controlling the lights accordingly. So here are the features/objectives for this project: - Automatic sunrise and sunset relay control to turn lights (or some other AC load) on/off respectively

Related: