Welcome to Delicate template
Header
Just another WordPress site
Header

FYS4240 / FYS3240, is all about how Micro-controllers, PC Processors and busses are made and gives you a very wide perspective in choice of connection technologies and micro controllers. Topics from internal structure of micro controllers to interfaces on it and parallel programming on multi core / multi processor machines. It also includes LABView and C programming for AVR micro controllers in the lab assignments. This course is recommended to take by all electronics, Robotics students and I would have a much wider point of view if I had taken this course in the beginning of my studies (something that did not happen because of lack of communication between physics department and departments of informatic). Here you can download the exam paper for spring 2011. (more…)

When it comes to Arduino, there are several ways to do things. Using simple Arduino IDE to communicate with the board through serial port. Write a Java program to do it, or maybe do send orders to Arduino through your program that is not uploaded on Arduino card and can be changed anytime without even updating the pde file on the board. The tool that gives you  the power to do this is called Processing & the library used exactly for Arduino is called StandardFirmdata. The very good thing about Processing is that it is based on Java and all Java codes works right out of the box on it. You can also import processing libraries into your Java framwork and enjoy the power of processing right in the middle of your Java project(in Eclipse).

The instruction to get Processing & Arduino talk together :

  1. Download this file.
  2. Unzip the library and copy the “arduino” folder into the “libraries” sub-folder of your Processing Sketchbook. (You can find the location of your Sketchbook by opening the Processing Preferences. If you haven’t made a “libraries” sub-folder, create one.)
  3. Run Arduino, open the Examples > Firmata > StandardFirmata sketch, and upload it to the Arduino board.
  4. Configure Processing for serial:http://processing.org/reference/libraries/serial/
  5. In Processing, open one of the examples that comes with with the Arduino library(in the same folder that we just unzipped).
  6. Edit the example code to select the correct serial port.
  7. Run the example.

>

These broken parts are gonna delay my work …
The conjunction between the motor led and the robot body
The broken conjunction on robot body side
The broken conjunction on Motor side
 Totally new printed encoder parts were received on 9th of May 2011, and one of them(picture below) was broken into two pieces while being mounted on the same day
The old broken encoder part(black one) beside the new one that was broken under mounting

>

This is OpenCV helloWord program which is an easy code that just opens one picture. Too sleepy to continue today … OpenCV 2.2 is too much unstable and I couldn’t get to make it work with MS VC++ 2010. Downgrade worked :-)
Good night

>

>I2C

April 28th, 2011 | Posted by Shahab in Electronics | Programming | Walloid - (0 Comments)

>I2C inter micro controller communication

First experiment, failed !!! The problem : Grounds were not connected together !!!

Second experiment, Succeeded :-)

I2C connection between one master Arduino & one Slave Arduino over a serial clock pin (SCL, pin number 4 in the picture down here, YELLOW wire) that the Arduino pulses at a regular interval, and a serial data pin (SDA, Pin number 5 in the picture down here, RED wire) over which data is sent between the two devices. Also make sure that the grounds are connected together.

Master Writer Code – Program for Arduino 1

// Wire Master Writer// by Nicholas Zambetti 

// Demonstrates use of the Wire library// Writes data to an I2C/TWI slave device// Refer to the "Wire Slave Receiver" example for use with this

// Created 29 March 2006

// This example code is in the public domain.

#include 

void setup(){  Wire.begin(); // join i2c bus (address optional for master)}

byte x = 0;

void loop(){  Wire.beginTransmission(4); // transmit to device #4  Wire.send("x is ");        // sends five bytes  Wire.send(x);              // sends one byte    Wire.endTransmission();    // stop transmitting

  x++;  delay(500);}

Slave Receiver Code – Program for Arduino 2



// Wire Slave Receiver// by Nicholas Zambetti 

// Demonstrates use of the Wire library// Receives data as an I2C/TWI slave device// Refer to the "Wire Master Writer" example for use with this

// Created 29 March 2006

// This example code is in the public domain.

#include 

void setup(){  Wire.begin(4);                // join i2c bus with address #4  Wire.onReceive(receiveEvent); // register event  Serial.begin(9600);           // start serial for output}

void loop(){  delay(100);}

// function that executes whenever data is received from master// this function is registered as an event, see setup()void receiveEvent(int howMany){  while(1 < Wire.available()) // loop through all but the last  {    char c = Wire.receive(); // receive byte as a character    Serial.print(c);         // print the character  }  int x = Wire.receive();    // receive byte as an integer  Serial.println(x);         // print the integer}

Source : http://arduino.cc/en/Tutorial/MasterWriter

>[youtube http://www.youtube.com/watch?v=L2wsockKwPQ&w=480&h=390]
FPGA advantages
[youtube http://www.youtube.com/watch?v=gLxS9SvniA0&w=480&h=390]
One of the main disadvantages can be complexity.

>New calculations for positioning

March 18th, 2011 | Posted by Shahab in Walloid - (0 Comments)

>

Update : 06:01, 18.03.201, I am almost done with the C code on Arduino … Too sleepy, going back home now …
I should write a program that can simulate the workspace as I have no idea what are the valid points on workspace that are reachable by the feet.
———————-
New calculations for positioning, the whole thing could not be easier than this …

>http://www.arduino.cc/playground/Learning/I2C
http://en.wikipedia.org/wiki/I%C2%B2C
http://www.lammertbies.nl/comm/info/I2C-bus.html
http://absences.sofianaudry.com/en/node/10

>Kinematic Calculations #2

March 15th, 2011 | Posted by Shahab in Walloid - (0 Comments)

>

No results yet …