Going somewhere yet not moving…

Image017

    Watching the countryside rise and fall like waves ready to hit our steel boat that huffed it self on to the tracks like a beast after good game. The morning cold reminds me of my idiocy of not bringing my jacket. The hot coffee I made 5 o’clock in the morning warms me and assists me to forget my many past mistakes.

    I am on the road to Eskişehir Osmangazi University. A quick drive to the train station [many thanks to my dad here], a fast rail train ride and a bus ride takes me to my destination.

   In the university I will be attending summer courses that I have to take. Probably the last summer course I will ever take.

I will be posting as much photos I can of Eskişehir. It is a beautiful city. Something I really didn’t expect.

I am very busy this summer. I have started a job in RENKO LTD. [www.rentech.com.tr] and alsoImage018 I am working on second home automation based paper with my good teacher Dr.Ali Ziya Alkar. I have some network simulations to do which has proved a little difficult. However I am confident that I will overcome such difficulties.

I have also updated my CV. It now includes my L33T skillz and my pending patent.

I will soon be posting some projects over at https://github.com/ so please fork me! Smile

Please do continue to read me!

Have a nice day!

Fork me on GitHub

Blinking lights MSP430 FG461x

Photo of two experimenter boards for the MSP43...

Image via Wikipedia

I have been working on MSP430 for sometime now. It is an TI (Texas Instruments ) chip. Very fun to play with. We are using a MSP430FG461x series experimental board. This little experimental board has all the bells and whistles one may need to create any application from a home automation controller to a simple step-motor driver. TI provides very good documentation for this grown up toy.

Our first lab homework for this baby was :

By using the MSP430 FG4618 Microcontroller, write a program that controls the LED #1, #2,#4.When we perpetually push the two buttons at the right bottom corner of the board, all ofthe LEDs turn on.When we push perpetually one of the buttons, only the LED #4 blinks, the others turn off.When we push no buttons, the LED #1 and #2 blinks complementarily and the LED#4 turnsoff.

My biggest problem with this exercise was to find what led was connected to what port. However in the end I figured it all out.

Below you will find the program :

 

 

#include <msp430xG46x.h>

void initPortPins(void);

void main(void)
{
	 WDTCTL=WDTPW + WDTHOLD;
	 initPortPins();
	 while(1) {
	 	if (P1IN == (0x00))
	 	{
			P2OUT |= 0x06;
			P5OUT |= 0x02;
		}
		else if (P1IN == 0x03)
		{
			P2OUT &= 0x00;
			P5OUT &= 0x00;
			P2OUT |= 0x02;
			__delay_cycles (40000);
			P2OUT &= 0x00;
			P2OUT |= 0x04;
			__delay_cycles (40000);
		}
		else
		{
			P2OUT &= 0x00;
			P5OUT &= 0x00;
			__delay_cycles (40000);
			P5OUT |= 0x02;
			__delay_cycles (40000);
		}
	 }
};

void initPortPins(void)
{
  P1DIR = 0x00;	// Set P2.2,1 as outputs
  P5DIR = 0x02; // Set P5.1 as output
  P2DIR = 0x06; // Set P2.1 to 1
};

Emotiv, what the future will bring?

3_bigBased on the latest developments in neurotechnology, the Emotiv EPOC is a revolutionary, new personal interface for human computer interaction.The Emotiv EPOC is a high resolution, neuro-signal acquisition and processing wireless neuroheadset.  It uses a set of sensors to tune into electric signals produced by the brain to detect player thoughts, feelings and expressions and connects wirelessly to most PCs.

Now think of connecting your home appliances, your car and your PC to this magnificent gadget. The possibilities do seem limitless. Emotiv seems to have the best learning algorithms available in the consumer electronics world which makes it possible for prospective developers to develop 3rd party applications and interfaces. Just watch the video below! And yes the developer tools can work with Microsoft Visual Studio Smile 

 

EMOTIV Demo

Installing node.js and npm to a Fedora 14 PC

Hi! Below is the step by step instructions to install the following in a Fedora 14 PC; ( no sudo yum install shortcut :( )

+ npm
+ mongo database
node components
+ mongoose
+ express
+ coffeescript
+ stylus
+ underscore
Step1. Install nodejs : First download the latest nodejs and un-tar it. Than;
export JOBS=2 # optional, sets number of parallel commands.
./configure
make
make install

Step 2. Install npm :

sudo ln -s /usr/local/bin/node /usr/bin/node
sudo ln -s /usr/local/lib/node /usr/lib/node
sudo ln -s /usr/local/bin/npm /usr/bin/npm
sudo ln -s /usr/local/bin/node-waf /usr/bin/node-waf
git clone http://github.com/isaacs/npm.git
cd npm
sudo make install

Step 3. So now you have npm and nodejs. The next step is to install components;

sudo npm install mongoose
sudo npm install express
sudo npm install coffee-script
sudo npm install stylus
sudo npm install underscore

And thats all folks!! Now I have Nodejs and its components installed.