FireHero : Arduino + Flamethrower + Guitarhero

FireHero via Arduino blog.

Filed under: arduino — by adafruit, posted April 18, 2012 at 11:55 am


OLED Stylized Clock

While watching Tron for the umpteenth time, I started thinking about how data could be displayed in abstract, but still readable, ways.  The OLED display, with its crispness, seemed like a good fit for what I had in mind.  After considering a few different options, I settled on a building a stylized clock display.

I used the following parts in this project:

OLED Clock Zoomed

The blocks are drawn so that, from outside to inside, each ring represents hours, minutes, and seconds.  The current hour and minute are indicated by the empty block in each ring.  The current second is drawn as a solid block (this ends up looking like a square moving around the inside ring).  In the above picture, the time can be read as 8:23 and about 38 seconds.  The overall circuit is set up by following the wiring in the tutorial on the monochrome 128×64 OLED and plugging the RTC breakout board directly into the Arduino as shown in the DS1307 tutorial.

OLED Clock Protoboard

The main sketch file handles reading the current time and drawing the rectangles.  A second file contains the coordinates for each rectangle.  The rectangles are broken up into three arrays - hour_rects, minute_rects, & second_rects and ordered by the appropriate time value.  The advantage of this approach is that modifying the design of the clock is as easy as adjusting the values in the appropriate array entry.  The biggest downside was the increase in memory usage; I ended up keeping the arrays in program memory by declaring the arrays with the prog_uint8_t type and PROGMEM attribute:

prog_uint8_t hour_rects[12][4] PROGMEM = {
...
};

Also, reading from the arrays required the use of an appropriate function:

pgm_read_byte_near(&rectangles[i][0]);

The full source is available on github - I’d love to see what other designs for clock displays people come up with or if someone extends this to display other types of data.

Filed under: arduino — by Dan, posted at 10:21 am


Drawbot!

7087281291 2C45Eb22Ef C

Drawbot #2 Lives!. Peter writes -

Friday Night Drawbot now has a brother. (This one is using an Adafruit Boarduino.)

Filed under: boarduino — by adafruit, posted April 17, 2012 at 1:55 pm


Ambient temperature display

Img 1193

Ambient temperature display.

This is a really simple ambient display for temperature using an arduino, an adafruit RGB backlight LCD, and a temperature sensor. The LCD displays the temperature in Fahrenheit and Celsius and adjusts the color of the backlight depending on the reading. An ideal range is set at 61F to 67F. If the temperature is in this range the backlight will change green. Above this range and the color will change red, below the range it will change blue. The great thing about these kinds of displays is that you can immediately get some rough information from across the room.

Great demo using the Adafruit ARDX kit with Arduino, plate, breadboard, wires, potentiometer and temperature sensor + Adafruit RGB LCD.

Filed under: arduino — by adafruit, posted April 12, 2012 at 2:10 pm


Learning Arduino Kung Fu

Dsc 0416

Learning Arduino Kung Fu @ iFixit. Alex writes -

When a postal truck arrives at the iFixit office with a delivery, we don’t even have to get up. All we have to do is tell our garage door robot, via our internal chat client, to open the roll-up door. Someday, I hope to put the robot to more exciting uses (ultimate goal: robot domination). For now, however, my T1000 does its door-opening job with no complaints.

Read more.

Filed under: arduino — by adafruit, posted April 11, 2012 at 4:04 pm


Arduino based Red Light Camera Alerter with Adafruit gear!

Redlightcamfinder1B

Red Light Camera Alerter @ PlastiBots.

I had the chance to play with some new components – namely the Adafruit Monochrome 128×32 OLED display and the Adafruit UP501 66 channel GPS receiver. As I was pondering ideas of what to build, I thought that it would be neat to be alerted when approaching a red light camera.  In my local area (Southern Ontario), there are currently about a hundred or so of these cameras around the GTA.  However, it appears that new legislation may see this number grow much larger.   This is more of a proof of concept project to me than it is useful as, a) I don’t intend on trying to run any red lights, and b) there are only about 1 or 2 of them within the area.   However, it was fun to build and tweak to make it useful.  Read on…

Filed under: arduino — by adafruit, posted at 11:31 am


Arduino Temperature Humidity Sensor

Hutmp1

Arduino Temperature Humidity Sensor @ PlastiBots.

The projects I do tend to fall in one of two buckets – either proof-of-concept (so I can learn new stuff) or items that have some sort of functional use. The need for this project came about when my wife was prodding me about the humidity in the house and whether our humidifier was doing it’s job correctly.  Most people would just go out and buy a temp / humidity sensor and be done with it.  However, if you have a look around here, you will see that I don’t fit that mold.  Instead, I decided to build an accurate temp / humidity sensor with a Sensiron SHT11 to read the values, a RBBB Arduino kit to process everything and an Adafruit 128×32 OLED to display the results – all wrapped up in… LEGO!   Read on for more…

Filed under: arduino — by adafruit, posted April 9, 2012 at 5:45 pm


Measuring Battery Capacity with an Arduino

Bat Front

Measuring Battery Capacity with an Arduino. Dennis writes-

I needed a couple of AA batteries and found the display at the supermarket where they were all arrayed. Normally when I’m shopping in the supermarket, I tend to look at the price/kg or price/l when comparing similar products. In the case of the batteries, there was no such indicator. Fine, I thought, I’ll work it out myself. I grabbed a few different makes and scanned the packaging for some measure of their capacity. Nothing. Not a single one of the batteries had any indicator of how much energy they would provide. Instead, they all had terms like ‘PLUS’, ‘SUPER’, ‘ULTRA’ and of course had wildly differing prices. So, I decided that it was time for an experiment and bought one pack of every type I could find.

Filed under: arduino — by adafruit, posted at 11:49 am


Mint-Sized Success Meter (quit smoking!) with Arduino

Mint-Sized-Success-Meter-Quit-Smoking-With-Ardu
Mint-Sized Success Meter (quit smoking!) with Arduino.

There comes a time in life to put childish things behind and give up nasty habits. Some, like smoking, can be damn hard without constant encouragement. It was time for me to combine my favorite hobby with my driving goal and make this: The Quit Success Meter!

Filed under: arduino — by adafruit, posted April 8, 2012 at 8:40 pm


Light Meter Using I2C Level Converter, LCD, and TSL2561

I recently needed to measure how different materials affect light transmission for a gardening project.  I decided this was the perfect opportunity to try out the new logic level converter to run both a 5v LCD and a 3.3v light sensor on a single i2c bus.  I used the following parts in this project:

Optional (but definitely helps keep everything tidy):

 

First up is wiring power to the breadboard from the Arduino.  I decided to keep the left side for 3.3v and the right side for 5v.

  • Breadboard right ground bus – black wire – Arduino ground pin
  • Breadboard right positive bus (5v bus) - red wire – Arduino 5v pin
  • Breadboard left ground bus – black wire – Breadboard right ground bus
  • Breadboard left positive bus (3.3v bus) – yellow wire – Arduino 3.3v pin
Connecting the breadboard to the Arduino

 

The next step is adding the logic level converter to the breadboard. It straddles the center notch like a DIP (but takes one additional column). I placed it toward the top of the breadboard to leave plenty of space for the light sensor to be added later.

  • Level converter LV pin - yellow wire – Breadboard 3.3v bus
  • Level converter HV pin - red wire – Breadboard 5v bus
  • Level converter left GND pin - black wire – Breadboard left ground bus
  • Level converter right GND pin - black wire – Breadboard right ground bus
  • Level converter B1 pin - green wire – Arduino analog pin 5 (i2c clock line)
  • Level converter B2 pin - blue wire – Arduino analog pin 4 (i2c data line)
Adding the level converter to the breadboard

 

The light sensor can now be added to the breadboard.  I placed it on the left side of the breadboard with the pins in the rightmost column.

  • Light sensor GND pin - black wire – Breadboard left ground bus
  • Light sensor SCL pin - green wire – Level converter A1 pin
  • Light sensor SDA pin - blue wire – Level converter A2 pin
  • Light sensor VCC pin - yellow wire – Breadboard 3.3v bus
Adding the light sensor to the breadboard

 

Finally, the LCD is added to the circuit.

  • LCD DAT terminal - blue wire – Level converter B2 pin
  • LCD CLK terminal - green wire – Level converter B1 pin
  • LCD 5v terminal - red wire – Breadboard 5v bus
  • LCD GND terminal - black wire – Breadboard ground bus
Adding the LCD to the breadboard

 

With all components added, the block diagram of the circuit looks like this:

Light meter circuit diagram

Arduino Uno image courtesy of Fritzing

And the resulting display:

Light meter display

 

For my project, I’m gathering data at reasonably high light levels; so, I went with the following settings:

  tsl.setGain(TSL2561_GAIN_0X);
  tsl.setTiming(TSL2561_INTEGRATIONTIME_13MS);

If you are measuring low light levels, you may want to adjust these two lines accordingly:

  tsl.setGain(TSL2561_GAIN_16X);
  tsl.setTiming(TSL2561_INTEGRATIONTIME_402MS);

An additional area to highlight is how the sketch is printing the light level values:

  snprintf_P(output_buffer, 6, PSTR("%5d"), (full_spectrum - ir_spectrum));

snprintf_P is a variant of sprintf that adds a couple of nice features.  The ‘n’ indicates that you can specify a maximum number of bytes to write into the buffer; this helps protect against accidental buffer overruns.  The ‘_P’ indicates that the format string is read from program memory; this helps conserve RAM.  In the invocation above, I’m using the companion macro PSTR() to keep the format string parameter in program memory.

Full source is available on github.

How will you be using the logic level converter in your projects?



Flickr pool Friday – IoT Camera Self Portrait

Iot selfportrait

This week it’s the IoT Camera Self Portrait by Dan Malec!

Want to be featured on Flickr pool Friday? Add your Adafruits to the Adafruit Flickr pool.

Learn more about the Internet of Things Camera.

Filed under: arduino,internet of things — Tags: — by Becky Stern, posted at 4:00 am


Arduino based swim timer for night swimmers

Schmatic-250Dpi

A swim timer for night swimmers @ DougsDIY via Twitter

swim with a triathlete group in an outdoor pool at 6AM three days a week. For half the year I can see stars when I start swimming. What I can’t see in the dark is the analog clock to check my pace on 100 meter laps.

To solve this problem I designed and built a portable digital timer with LED display. The 4-digit 7-segment display is large enough to see from 10 feet away so I can read it without stopping. The timer is encased in a transparent and waterproof polycarbonate tube so that I don’t have to worry about it getting wet or falling in the pool. In fact you can take it to the bottom of the pool and it won’t leak. Normally it just sits on the edge of the pool where I can see it.

There are a variety of LCD swim timers available that are fine for day swimmers. This timer is for night swimmers.

Filed under: arduino — by adafruit, posted April 5, 2012 at 1:11 pm


Photoduino – The opensource camera controller based on Arduino

En-Home-Intro

Photoduino | The opensource camera controller based on Arduino.

This is the eagerly awaited 3.0 version of Photoduino. Photoduino is an open source camera controller based on the Arduino platform which you can use to automatically take pictures with your DSLR camera.

It serves as technical support for shooting high speed photos but you can also use it as an intervalometer to make Timelapse videos or for animals and insects photography.

Photoduino is an electronic circuit that is placed on an Arduino board as a Shield taking all the inputs, outputs and power pins. It has all the necessary electronic components and connectors for connecting the camera, flashes and sensors. You can control the shutter and camera autofocus, and you can also trigger two flashes. It also has a sound sensor, a shock/impact sensor and a laser or infrared barrier that can be used to take pictures when you register an event on any of the sensors. The configuration is done entirely through a small LCD screen using only two buttons, so it works independently without the need for a computer (except for firmware updates).

This system currently supports a wide range of DSLR cameras with a remote shutter cable connector.

Both hardware and firmware are completely open (like the Arduino platform on which it is based) and it is released under an open license.



2boots: Arduino/AVR serial and SD card bootloader

Pt 861

2boots: Arduino/AVR serial and SD card bootloader
– embedded/avr/2boots at master · thseiler/embedded · GitHub
via Dangerousprototypes -

This is a proof-of-concept dual bootloader for Atmel AVR atmega chips. It combines a serial bootloader and a mmc/sd card based one in the same 2kb of flash memory that is normally used by the arduino serial loader alone.

You might ask Why? Well, I have quite a few arduino “in the field”. I can simply drag a .hex file to an SD card, insert it in an SD shield, and field-upgrade my boards without additional hardware. At the same time, I can connect the serial port and start developping with the normal Arduino IDE.

Filed under: arduino — by adafruit, posted at 12:00 am


NEW PRODUCT – LCD Shield for Arduino Kit w/ 16×2 Character Display – Only 2 pins used! [BLUE AND WHITE]

Window-142

NEW PRODUCT – LCD Shield Kit w/ 16×2 Character Display – Only 2 pins used! [BLUE AND WHITE]. This new Adafruit shield makes it easy to use a 16×2 Character LCD. We really like the Blue & White 16×2 LCDs we stock in the shop. Unfortunately, these LCDs do require quite a few digital pins, 6 to control the LCD and then another pin to control the backlight for a total of 7 pins. That’s almost half of the pins available on a classic Arduino!

With this in mind, we wanted to make it easier for people to get these LCD into their projects so we devised a shield that lets you control a 16×2 Character LCD, up to 3 backlight pins AND 5 keypad pins using only the two I2C pins on the Arduino! The best part is you don’t really lose those two pins either, since you can stick i2c-based sensors, RTCs, etc and have them share the I2C bus. This is a super slick way to add a display without all the wiring hassle.

This shield is perfect for when you want to build a stand-alone project with its own user interface. The 4 directional buttons plus select button allows basic control without having to attach a bulky computer.

The shield is designed for ‘classic’ Arduinos such as the Uno, Duemilanove, Diecimilla, etc. It will also work perfectly with Arduino Mega R3′s. Earlier Mega’s have the I2C pins in a different location and will require you to solder two wires from the I2C pins on the shield and plug them into the different I2C locations at Digital 20 & 21.

This product comes as a kit! Included is a high quality, USA-made PCB and all the components (buttons, header etc). This product comes with a 16×2 Blue & White LCD. Assembly is easy, even if you’ve never soldered before and the kit can be completed in 30 minutes. Check the product tutorial page for assembly instructions before purchasing

Of course, we even wrote an easy-to-use Arduino library that you can easily add to your project. It acts just like the built in LiquidCrystal library, but automatically uses the shield pins. You can also easily query the 5 keypad buttons to get input through the library, so you get extra buttons without using any more pins.
At this time, the library and shield can control the backlight of our character LCDs by turning the LED on or off. There is no support for PWM control of the backlight at this time, so if you need to have more granular control of the backlight, this shield can’t do that (the I2C expander does not have PWM output).

  • Dimensions: 2.1″ x 3.2″
  • Comes with a 16×2 Blue&White backlight LCD
  • Plug and play with any Arduino ‘classic’ – UNO, duemilanove, diecimilla, etc as well as Arduino Mega R3.
  • Uses only the I2C pins – Analog 4 & 5 on classic Arduinos, Digital 20 and 21 on Arduino Mega R3

Product page with tutorials, documentation and assembly information

In stock and shipping now!

Filed under: arduino — by adafruit, posted April 3, 2012 at 7:11 pm


www.flickr.com
adafruit's items Go to adafruit's photostream
www.flickr.com
items in Adafruits More in Adafruits pool