- I got the spare part for encoders, so now I can start to test my positioning code
- I got some tips about I2C technology(Several cards connected together with the same wire)
- I will have wired(RxTx, I2C, Dig2Dig, etc) & wireless(Xbee, ...) networking of Arduino cards discussed in my thesis
- I got tips that there are more products/technologies than Xbee
- I get to write more about "Van der Waals" technology & discuss related to the conditions in offshore.
Monday, May 9, 2011
Supervisor Meeting
Today I had a very quick supervisor meeting with my supervisor. Results :
Thursday, May 5, 2011
Finally OpenCV 2.1 & MS VC++ 2008 worked together ...
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
Tuesday, May 3, 2011
Saturday, April 30, 2011
Arduino Nano and new possibilities in electronic design
The new Arduino Nano is the smallest and most versatile Arduino board yet. It contains an ATmega168 micro-controller (w/ boot loader), integrated USB (FTDI chip) w/ Mini-B jack, a full complement of i/o pins, an ICSP programming header, and on-board regulator. Measuring 0.73″ x 1.70″, it’s smaller and cheaper than the combination of Arduino Mini and Mini-USB adapter.
The possibilities that this state of art design brings to Walloid project can be new electronics design as it is now very easy to have a network of Arduino boards, communicating data, processing things faster, etc ... My previous post about I2C is about the same idea; connecting multiple Arduino boards ...
The possibilities that this state of art design brings to Walloid project can be new electronics design as it is now very easy to have a network of Arduino boards, communicating data, processing things faster, etc ... My previous post about I2C is about the same idea; connecting multiple Arduino boards ...
Thursday, April 28, 2011
I2C
I2C inter micro controller communication
First experiment, failed !!! The problem : Grounds were not connected together !!!
Second experiment, Succeeded :-)
Master Writer Code - Program for Arduino 1
Slave Receiver Code - Program for Arduino 2
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.
// 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
Subscribe to:
Posts (Atom)

