Tero's Arduino Blog

Using Arduino with Ada

Driving Neopixel LEDs using only Ada

Inspired by my earlier delay experiments and its followup discussion on AVR-Ada mailinglist, I decided to put my delay functions in good use.

Neopixel RGB LEDs require exact timing and people usually use AVR assembler code to get the timing right. However, I wanted to see can I do it ...

[more]

Measuring the accuracy of delays in AVR-Ada

Saleae Logic cables to Arduino UNOr3

AVR-Ada provides basically two ways to delay the code execution.

One way is busy looping using Generic_Busy_Wait_Seconds and Generic_Wait_USecs procedures from the AVR.Wait package.

procedure My_Wait is new AVR.Wait.Generic_Busy_Wait_Seconds
  (Crystal_Hertz => 16_000_000);

procedure Wait_1000ms is new AVR.Wait.Generic_Wait_USecs
  (Crystal_Hertz => 16_000_000, Micro_Seconds => (1_000_000));

Another way is to use ...

[more]

Arduino Leonardo and (bad) USB interrupt

This is little heads-up for people, in case someone else also hits the same problem.

When playing with Arduino Leonardo, I noticed that if I enable interrupts, the code seems to freeze.

After some debugging and Google search, I found out that USB is turned on by the boot loader ...

[more]

Wireless temperature sensor using Olimexino-328, XBee, and DS18B20

I have made temperature sensor in the past, but now I added power saving features to the code.

The result was a device which lasts almost a month when it reports temperature once an hour over XBee and is powered by 1000mAh LiPo battery.

Custom XBee Shield with DS18B20

Instead of official Arduino, I used ...

[more]

AVR-Ada package for Ubuntu 14.04

I created quick and dirty AVR-Ada package for Ubuntu 14.04 (amd64 only for now) using the latest AVR-Ada sources (basically 1.2.2 + some fixes). It is categorized as "quick and dirty" because I generated the binaries on Ubuntu 14.04 using my avr-ada build script and then created ...

[more]

Page 1 / 7 »


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