Tero's Arduino Blog

Using Arduino with Ada

Reading button status via interrupt

The normal way to read the button is to read the input pin status in a loop and handle debouncing at the same time.

However, if you want to sleep most of the time, polling is not an option. Instead, you can use interrupts, like pin change interrupt (PCINTxx).

So ...

[more]

Storing large data amount to flash memory

If you paid attention in my Olimex MOD-LCD3310 article, you noticed that I stored a large array for font/characters to RAM memory. This is highly inefficient since the array takes space both on the flash and on the memory at the same time.

To make the space usage more ...

[more]

Displaying Characters on MOD-LCD3310 by using Olimexino-328 with Ada

MOD-LCD3310 is Nokia 3310 display clone from Olimex. It provides black and white screen with 84x48 resolution, which is a great choice if 7-segment display or 2x16 LCD isn't enough.

MOD-LCD3310 uses UEXT connector found from almost every Olimex board. In case you don't have one, you can ...

[more]

Temperature measurement with DS18B20 and one-wire protocol

Required parts:

  • Arduino UNO or Duemilanove
  • DS18B20 temperature sensor
  • Some jumper wires
  • About 5K ohm resistor (4.7Kohm or 4.99Kohm is ok)

I had a couple of extra DS18B20 temperature sensors lying around, so I was interested in communicating with them using Arduino.

DS18B20 uses 1-wire protocol for communication ...

[more]

Counting seconds with attiny4313

AVR-Ada includes AVR.Real_Time package and separate AVR.Real_Time.Clock function, whose job is to return the current time. On Arduino, the current time means seconds from the device bootup, in other words it tells you how long the device has been on.

Relevant code is following

with AVR.Real_Time ...
[more]

Page 1 / 2 »


Copyright © 2012, 2013 Tero Koskinen - Theme Skeleton; Blogging engine Pelican; Powered by Python