Caner Bulut – R & D notes

Motion Detection with PhidgetSBC2 and Motion Sensor

Posted in Robotics by canerblt on April 21, 2012

This is a simple Phidgets project and want to show you that how  simple to write a program to detect a motion with a motion sensor with PhidgetSBC2 board. After motion detection two red LEDs set to on. So you can see the how analog input and digital outputs can be controlled with Java.

As you know PhidgetSBC2 is a single board computer and has 8 analog inputs, 8 digital inputs and 8 digital outputs on it.

(more…)

Solution – Exception in thread “main” PhidgetException 5 (Phidget not physically attached.)

Posted in Robotics by canerblt on April 14, 2012

I have a PhidgetSBC board and wanted to open a connection to Phidget InterfaceKit 8/8/8 to listen a motion sensor which connected the first analog input on the board. There are some methods to connect interfacekit and listen the sensor.

A simple java code to connect interfacekit and read the kit name and print it.

If you try to connect with openAny() method , you can not open a connection to SBC, you should not use openAny() method for PhidgetSBC card.

(more…)

“Version Mismatch webservice 1.0.8, expecting 1.0.9″ problem solution for PhidgetSBC

Posted in Robotics by canerblt on March 13, 2012

When you connect your Phidget SBC and click Phidget Interface 8/8/8 link under WebService->Bonjour Tab from Phidget Control Panel,  if an error message occured as following picture, please apply following steps to fix it,


(more…)

Etohum Girişimcilik Zirvesi Hakkında

Posted in Etkinlik by canerblt on January 28, 2012

Soğuk bir Istanbul sabahı yakın bir arkadaşımla katılmış olduğum Etohum Girişimcilik Zirvesi çok eğlenceli ve keyifli geçti. Burak Büyükdemir’in her zamanki pozitif enerjisi ile başlayan etkinliğe, Bahçeşehir Üniversite’si kurucusu Enver Yücel Bey ve ünlü yazar Stefano D’Anna’da katıldı. Güzel konuşmaları ile güzel anlar yaşadık.
(more…)

Handle an object as variable in a loop with programatically, VB.Net

Posted in Uncategorized by canerblt on July 11, 2011

If you have lots of textboxes or other objects in your project and you need to populate and control these objects programatically, use Controls property of form object to handle this.

An example,

        While sa.Read

            s = s + 1

            Me.Controls(“e” & s).Text = sa.Item(1)
            Me.Controls(“b” & s).Text = sa.Item(2)
            Me.Controls(“x” & s).Text = sa.Item(3)
            Me.Controls(“y” & s).Text = sa.Item(4)

        End While

The names of textboxes created in the loop and then the values which is stored in the DB assigned textboxes’ .text properties.

Image overlaying on a video file with FFMpeg

Posted in Image Processing by canerblt on July 10, 2011

To add a logo/image  on a video file you need FFMpeg with vhook lib. New versions of FFMpeg cut the support for this lib. So you should find older FFMpeg versions with vhook DLL files. There are two DLL files under vhook directory which can be used for image overlaying. Watermark.dll and Imlib2.dll.

The below command can be run on CMD or CLI,

ffmpeg -i son.flv -vhook “imlib2.dll -x 10 -y 10 -i arge.png”  b1.flv

The arge.png file will be cordinated with x and y values on video. The son.flv video file will be converted wiht image overlaying to b1.flv vide file.

Thanks.

Changing FPS rate of a video with FFMPEG

Posted in Image Processing by canerblt on July 10, 2011

If you want to change frame per second (fps) rate of a video file, you need a codec to achieve that. We can use FFMpeg to change this rate. You can run below script via CMD on windows or CLI on Linux.

 

ffmpeg -r 10 -f image2 -i C:\test\captures\image%d.png  C:\test\captures\test2.flv

A point to keep it mind that,

-r 10   : define new fps rate

image2 : image file format

C:\5d\captures\image%d.png : image files in a directory which will be converted a video

C:\5d\captures\test2.flv : destination file name

 

If you have any problem of this script please share it with a comment.

Eclipse 3.4 Klavye Kısayolları(Shortcuts)

Posted in Java by canerblt on December 7, 2010

Eclipse 3.4 için kullanabileceğiniz kısayolları (shortcuts) asağıdaki adreste bulabilirsiniz.

Eclipse 3.4 KeyBoard Shortcuts Reference

Iyi çalışmalar.

JBoss “The procedure entry point JVM_FindClassFromBootLoader could not be located in the dynamic link library in jwm.dll” hatasının çözümü

Posted in Java by canerblt on September 23, 2010

Eğer aşağıdaki ekrandaki hatayı alıyorsunuz yapılması gereken bilgisayarınızın çevresel değişkenlerindeki JAVA_HOME değerini kontrol etmektir.

(more…)

Java Unknown column ‘XXXX’ in ‘field list’ Hatası ve Çözümü

Posted in Java by canerblt on September 16, 2010

Java Unknown column ‘XXXX’ in ‘field list’ Hatasi ve Çözümü

Eger Java ile Mysql yada herhangi bir veritabani ile ugrasiyorsaniz ve asagidaki gibi bir hata aliyorsaniz, bu yazida çözümü sizlerle paylasayim. Çözüm çok kolay olmasina ragmen can sikici olabiliyor.

java.sql.SQLException: Unknown column ‘denmeer’ in ‘field list’
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
(more…)

Follow

Get every new post delivered to your Inbox.

Join 31 other followers