ChibiOS/RT on the Arduino

ChibiOS public support forum for topics related to the Atmel AVR family of micro-controllers.

Moderators: utzig, tfAteba

wgreiman
Posts: 33
Joined: Sun Oct 23, 2011 3:21 pm
Been thanked: 2 times

ChibiOS/RT on the Arduino

Postby wgreiman » Thu Oct 27, 2011 5:57 pm

I have packaged ChibiOS/RT as an Arduino library. It runs on ATmega328, ATmega1280, and ATmega2560 standard Arduino boards.

I have used ChibiOS/RT with my Arduino SD library to log analog pins to an csv file on an SD card at 976 samples per second with four analog values per sample.

976 Hz is the tick value using the Ardunio timer. I used the Adruino ADC software for the avr 10-bit ADC.

The library and examples are here http://code.google.com/p/beta-lib/downloads/list the file is ChibiOS20111027.zip.

There are five examples:
chBlinkPrint - A simple example of three threads. A high priority thread
blinks an LED, a medium priority thread prints a counter
every second, and the low priority idle loop increments the
counter.

chContextTime - Test to determine context switch time with a semaphore.

chFastLogger - Data logger optimized for 328 Arduino. Logs two analog pins
every tick (1024 usec tick).

chJitter - Test of jitter in sleep for one tick.

chMegaLogger - Data logger optimized for Mega. Logs four analog pins
every tick (976 samples per sec, four values per sample)

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: ChibiOS/RT on the Arduino

Postby Giovanni » Thu Oct 27, 2011 6:07 pm

Hi,

Thanks for the contribute, I am sure a lot of Arduino users will love this.

Giovanni

mcgski
Posts: 1
Joined: Mon Dec 19, 2011 3:15 am

Re: ChibiOS/RT on the Arduino

Postby mcgski » Mon Dec 19, 2011 3:18 am

Just tried this library with Arduino v1.0. The simple 2 thread LED blink with the use of the servo library seems to work well.


Return to “AVR Support”

Who is online

Users browsing this forum: No registered users and 39 guests