Thursday, 13 July 2017

Xilinx SDK

Xilinx SDK has many bugs since it uses eclipse.

If Xilinx SDK fails to open. Delete the .metadata folder and try again.

To program the bit stream use Xilinx Tools -> Program FPGA

To program microblaze right click Run as-> Launch on Hardware (System Debugger)

Monday, 30 January 2017

Raspberry PI Bluetooth PAN (JAN 2017)


  • BlueZ 5+
  • Python2.7
  • bt-pan
  • bridge-utils
Get bt-pan here



Load bluetooth on both devices

systemctl start bluetooth

On the Raspberry Pi

1) Pair devices with bluetoothctl or GUIs

2) Execute this script

brctl addbr pan0
brctl setfd pan0 0
brctl stp pan0 off
ip addr add dev pan0
ip link set pan0 up
python2.7 bt-pan --debug server pan0

This will setup the Raspberry Pi to have an IP of and netmask of .

3) If it works then create a systemd service

On client

1) Pair devices with bluetoothctl or GUIs

2) Execute

python2.7 bt-pan --debug client XX:XX:XX:XX:XX:XX --wait

3) If it works then create a systemd service

4) Configure the client IP to be . Netmask is . Gateway is .

Friday, 27 January 2017

How to deploy MATLAB/Simulink on Raspberry PI without reformating SD Card

First install the Simulink support package for Raspberry Pi or MATLAB support package for Raspberry Pi.

Easy way. Type in 

raspi.internal.firmware.setupMATLABServer('<IP address>','<User name>','<Password>')

This should setup everything if it succeeds to execute the script. The user need root privileges and sudo without asking for the password.

If all fails.

Type in  


in MATLAB and configure the settings.

MATLAB will download a file called

Unzip it and open the image file.

Copy the entire /opt to your existing installation.

The location /opt/MATLAB/server_v16.2.0/ is where the binaries live.

To start MATLAB run

sudo /opt/MATLAB/server_v16.2.0/matlabd   <PORT NUMBER>

The port number is usually   18732   or the one you set.

To start the UDP daemon run

/opt/MATLAB/udp_ip /boot/iflist.txt

After this MATLAB/Simulink should work.

Thursday, 8 December 2016

Favorite Atom plugins

Favorite atom plugins
  • pdf-view
    • For pdf previews in atom
  • vim-mode-plus
    • vim style key binding
  •  language-markdown
    • syntax highlighting for markdown
  •  markdown-preview-enhanced
    • live markdown preview
    • latex support
    • export to pdf
    • export to html

Friday, 2 September 2016

Remarkable markdown editor

Remarkable is a good markdown editor for generating PDF or HTML pages. This makes it good for writing reports that include code snippets. Also CSS and be customized to create different themes.

Saturday, 23 July 2016

My list of failed/incomplete projects

Some of the failed/incomplete projects.
This is only the projects I can remember:
  • Project Popsicle Stick v1
  • Data Shrinker Computer Program v2
  • zetta kernel
  • CircuitSimulator
  • AICity