Sunday, June 16, 2013

Raspberry Pi and Arduino (Gertboard) serial communication

A serial communication between Raspberry pi and Gertboard's ATMEGA328p chip
Remember both system work at 3.3 V.
NEVER CONNECT RASPBERRY PI and ARDUINO DIRECTLY.
But if you have Gertboard, Atmega328p on Gertboard is working on 3.3V
There are two codes, one for Arduino, the other for Raspberry Pi

Also remember the Jumpers

  • J7 - 3.3V jumper should be inserted
  • Jumper - between MCTX-GP15
  • Jumper - between MCRX-GP14



-----------------------This is the code for Arduino-----------------------------------------

char incomingByte=0;
char inData[20];
int x=0;
 void setup() {
  // initialize serial:
  Serial.begin(9600);
}
 void loop() {
    Serial.print("hello print");
    x=0;
    while (Serial.available()>0){
      incomingByte=Serial.read();
      inData[x]=incomingByte;
      inData[x+1]='\0';
      x++;
    }
    Serial.println(inData);
    delay(1000);
}
-----------------------------------------------------------------------------------------------------

And there is the code for Raspberry Pi based on Python
-----------------------This is the code for Raspberry Pi-----------------------------------------


from time import gmtime, strftime
import time
import serial
import struct
ser = serial.Serial(‘/dev/ttyAMA0‘, 9600)

while 1:
        ser.write(“testing”)
        temp=strftime(“%Y-%m-%d %H:%M:%S”, gmtime())+'\t'+ser.readline()
        print(temp)
        time.sleep(1)
-----------------------------------------------------------------------------------------------------



Sunday, February 24, 2013

Nautilus desktop problem in Openbox

If you are using Openbox and if time to time nautilus blocks your menus; you should just type this in the terminal:

gsettings set org.gnome.desktop.background show-desktop-icons false
do not run with "sudo" since you want to change the settings for the current user



Wednesday, January 02, 2013

Ubuntu-Wine Office 2003 and 2007 together

From now on, I will post my experiences on Ubuntu, so I can find my solutions to problems later on...
My first post is on having Office 2003 and Office 2007 on Ubuntu with Wine 1.5.

Every time I open Word 2003 after 2007 or vice versa, it tries to reinstall certain files. It was annoying...
Here is a good solution that worked for me:

From terminal write
regedit

The opening window is the classic regedit we have on windows
In the Regedit window select:
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word\Options

Then from the menu:
Edit>New> DWORD value
add NoReReg with value 1
So my line looks like
NoReReg        REG_DWORD     0x00000001 (1)
Do the same for
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options


Tuesday, March 08, 2011

My web page - www.barissanli.com

Recently I connected all my social web links with each other.
You can see my projects at www.barissanli.com

Friday, January 28, 2011

Back to civilian life

Hopefully, same office, same contact details, back to civilian life as of 19.01.2011....

Wednesday, November 17, 2010

Saturday, September 25, 2010

Anadolu Feneri

I am working as a signalman (vardabandra) marine at the Anadolu Feneri station for my compulsory military service, 4 more months to go

Learning about communicating with ships and Bosphorus traffic

Wednesday, August 11, 2010

Starting a Life as private marine

Due to compulsory military service in Turkey, I will be serving as a private marine for the next 5-6 months. Until I have a photo of my self, here is a photo of Ottoman marines from the Turkish comedy film "Süt Kardeşler"...
For my turkish friends : "Fes başıma, fes başıma:)"

Sunday, December 13, 2009

This week at the Chamber of Engineers

I will give a speech this week titled "Future of Energy planning and policies" in Ankara, since then
- Our office is moving to a new location, telephone numbers may be changing too, so if you need to reach me, use email
http://www.emo.org.tr/etkinlikler/enerji/etkinlik_program.php?etkinlikkod=118

Wednesday, August 19, 2009

Enreport.com / New posts

After some time, I have updated my www.enreport.com with new posts:
1. Chinese Oil projects
2. Energy model (Millenium Institute)
3. Istanbul's Electricity consumption in rail transportation
4. Nuclear quick facts.

Monday, July 27, 2009

Cost of an adventure holiday

Here is a cost of our activities:
Manavgat: Köprülü Kanyon Rafting : 80 TL (+20 TL including meals) for 3 person only rafting
Antalya - Falez : Diving : 50 TL/person
Fethiye Ölüdeniz: Paragliding: 110 TL /person (60 TL if you want the pictures+video)
Tekirova: Boat rent & swimming : 60 TL / boat (3 person)
Fethiye Ölüdeniz: Horse Trip: 25 TL/Person

Accomodation
Ölüdeniz : Apart : 25 TL/Person (cheapest we could find but get ready for 60 tl)
Olympos : Wooden thingi : 25 TL /Person
Salda Lake: 12 TL camping or 15 TL/person
At the time 1.5 TL = 1 $

Saturday, July 25, 2009

Lake salda


One of my favourite places in Turkey. A whitish beach, limestones and amazing tones of blue. Camping 12 TL (~8-10 $) . A must see.

1 mile from Yesilova / Burdur

Sunday, April 19, 2009

Thursday, January 22, 2009

Erciyes


Erciyes(Kayseri) is one of the important touristic places in Turkey. I was only there for a meeting, but framed this photo to share.

Tuesday, September 16, 2008

Another Busy Period


This is my desk:) Currently I moved to a new address in Bahceli, started my third semester for my graduate studies. My advisor looked to me hopelessly, yet there is no faint in my self esteem. "I will do it, don't worry" I said. He answered "I hope so":)
I am sailing for another season to conquer a stormy chapter of my life. Wow:)