Pages: [1]   Go Down
Author Topic: AT90CAN128 OLIMEX board  (Read 3808 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Noticed there was a few threads on this in the old forum, just thought I would revive the topic:

Using this dev board from OMILEX:



To be able to develop on this in the Arduino environment you need to:

1. Download the .zip file from the old thread here:

http://arduino.cc/forum/index.php/topic,8446.0.html

2. Flash the bootloader to the OLIMEX board. He has already compiled a hex file for this. Method of your choice, I used AVR Studio and an RS232 JTAG.

3. Copy the Arduino AT90CAN128 into your Ardunio dev area, he has a good text file in the zip which explains what you need to do.

4. Make a program in the Ardunio IDE and send it to the board!

Here is a blinky LED (STAT LED) hello world for the OLIMEX board:

Code:
/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */

//PIN 36 = PTE Pin 4 = STAT LED on OLIMEX AT90CAN128 board.
void setup() {               
  // initialize the digital pin as an output.
  // Pin 13 has an LED connected on most Arduino boards:
  pinMode(36, OUTPUT);     
}

void loop() {
  digitalWrite(36, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(36, LOW);    // set the LED off
  delay(1000);              // wait for a second
}

Unbelievably easy, and you have an Ardunio development environment which nativly supports CAN (Controller Area Network). No more dorky SPI chips.

Note: I did find the serial bootloader here was abit touch and go. But turning off the board, waiting for the "Binary Sketch....." text to come up and powering the board back up gives a good success rate.

Thanks very much to SuperCow who did all the work for this!
« Last Edit: February 23, 2011, 03:14:20 pm by ESDave » Logged

Pages: [1]   Go Up
Jump to: