Skip to main content

Featured Post

Product Design of a 4 wheel differential drive robot

Linux: How to find your serial (any connected) device?

In Linux all devices that are connected to the system are listed in

/dev 

If you connect your mouse to your system it will detect it as hidraw. Other serial devices will be named as tty0, tty1,etc. So if you connect a serial (any) device and you want to know it's name ( for ex: you want to connect it via minicom ), first go to /dev using

 cd /dev

Then list the contents of folder using

 ls  

But it will be hard to figure out the name of your device from the long list. So here is a trick for it. Disconnect the device and type this in terminal.

ls > removed.txt 

Connect your device again and type

ls >connected.txt 

Your device's name will be on the connected.txt file. But how to know filter it? Compare both list and the odd one will be your device. Type this.

diff removed.txt connected.txt  

You will get the name of your device.


Comments

Popular posts from this blog

Plymouth theme for Ubuntu

Bored of having the same boot animation screen again and again? There are plenty of Plymouth themes available out there. This is a theme I created by slicing some cool gif files I found online. You can download the theme and find the installation steps on my github account. ( https://github.com/krishnan793/PlymouthTheme-Cat )  The theme is created for Ubuntu 16.04. But this can be installed on previous versions with slight modification. If you have a slow computer then you can watch the whole animation loops. (The VM I used to record the screen was fast though. :))

Product Design of a 4 wheel differential drive robot

I have been thinking of creating a small mobile robot from scratch. From scratch means, go through all the steps of a product development. Design the overall architecture, design the circuits, make 3D model of the parts, 3D print the parts and finally integrate with ROS. The methods I followed may not be the best practice. The only aim is to reach from idea to actual product (prototype). Features: 4 Wheel Differential Drive Camera WiFi IMU GPS(optional) Overview A 4 wheeled differential mobile robot with wheel encoders, camera, WiFi, IMU and GPS(optional). The first thing I did was to come up with an overall architecture. Raspberry pi 3 will be the heart of the robot. Pi Zero was considered in the beginning, but eventually had to  change because of the lack of support for ROS. Even though able to compile ROS from scratch, it became so hard to compile other packages needed for the project. Since I do not want to use pi to directly control motors, I had to design a

Batman Key chain with ESP8266

Have recently bought a small batman key chain from amazon. It  has a small button when pressed lights the batman eye with white light and sounds a pathetic sound (:(). So I thought of opening it. It has enough space to put some custom electronics. So I thought of customising it a bit. This is what it looks before customising. This is what it looks when adding a little bit of electronics into it. It has an esp8266 with 3 SMD LED (Red, Green, Blue) that can be independently controlled. It has a small speaker (from a headset) which plays a pac man tone. It is powered with a 3.7 V Lipo battery with an option to charge with an USB cable. Batman keychain is playing pacman tone... :) I know it's a bit wierd, but couldnt find a good tone (which can be expressed as a piano tone like C4, B#2, ...) for batman. Will replace it once found a better one. Things to add further Pressing for a long time will enable a hotspot Option to change the tone by writing it to