Mastering BeagleBone Robotics

Hi guys, I was the technical reviewer of this book by Packt Publishing and I am helping them promote it. Do check the book out if you are interested in learning how to do robotics implementations with Beaglebone Black. The lessons can be extrapolated to most development boards including the Raspberry Pi and the language is fairly easy to understand. Look out for my name in the technical reviewers section! http://bit.ly/MBbR8907 Cheers! Link to this...
Playing with OpenCV Vision Library on Ubuntu 14.04 x86_54

Playing with OpenCV Vision Library on Ubuntu 14.04 x86_54

I have been starting to play with OpenCV as a part of my work for security systems. I haven’t found any Perl libraries for this except Image::Resize::OpenCV, Cv::* and Image::ObjectDetect which I might look at later, for now I will start with python libraries. At a later stage I might decide to write a Perl binding for OpenCV library. No commitments yet. It depends on my needs 🙂 For starters, here is what I do: sudo apt-get install libavformat-dev libcv2.4 libhighgui2.4 python-opencv opencv-doc libcv-dev libcvaux-dev libhighgui-dev there are a few examples for python in /usr/share/doc/opencv-doc/examples/python and in /usr/share/doc/opencv-doc/examples/python2 I will start off by trying those. Link to this...

Setting up ArchLINUX on BeagleBone Black – Part 3 – Setting up I2C and PWM controller

This Article is a placeholder for work in progress and I will log my success as I go forward. ArchLINUX has proven to be the lightest of all the distros that I have installed yet on Beaglebone Black. I have already got all the basics up and running and now I am setting up my perl stack and I2C and PWM interfaces. Make sure you have followed my previous instructions for ArchLINUX here. List of Instructions for Archlinux Install base devel and include all the sub packages. This is needed for installing XS modules and its roughly equivalent to build-essential package on Ubuntu $ pacman -S base-devel Install i2c-tools $ pacman -S i2c-tools Now we can go ahead and install Device::SMBus. This is the interface that I released to CPAN for connecting to I2C devices, in the last release Device::SMBus 1.05 I removed some dependencies on board and distribution specific differences in i2c-dev installations, so it works without issues on both Raspberry Pi and BeagleBone Black , ubuntu,armstrong and archlinux installations. $ cpan Device::SMBus I use the LSM303DLHC for my work with LSM303DLHC Altimeter and Magnetometer $ cpan Device::LSM303DLHC Installing module for using LPS331AP Altimeter Barometer $ cpan Device::LPS331AP Installing module for using L3GD20 Gyroscope $ cpan Device::L3GD20 My two ways of controlling PWM on Beagelbone Black: External I2C PWM Generator like PCA9685: I have already implemented this method before on Raspberry Pi, Since we have already setup I2C on ArchLINUX above, using PCA9685 is quiet simple, and while I have not lokked into the fact if the BeagleBone Black has a seperate microcontroller with a clock for controlling...

Setting up ArchLINUX on BeagleBone Black – Part 2

so I have been trying to get my usual environment up on archlinux.first comes vim $ pacman -Syq vim $ pacman -Syq perl-moose There is a cpan package for easily maintaining CPAN packages on arch linux CPANPLUS::Dist::Arch, its a CPANPLUS backend for ArchLINUXhttps://metacpan.org/pod/release/JUSTER/CPANPLUS-Dist-Arch-1.28/lib/CPANPLUS/Dist/Arch.pod $ cpan CPANPLUS::Dist::Arch setup cpan to use us automatically $ setupdistarch Install Device::SMBus as a pacman package $ cpanp -i Device::SMBus Link to this...

Setting up ArchLINUX on BeagleBone Black – Part 1

Today I decided to give Archlinux a whirl with my BeagleBone Black board. Its a little more complicated to get it up and running compared to default suppported Angstrom distribution and generic GNU/LINUX distros, but it helps me save a lot of space. Instructions are listed on arch linux arm website at http://archlinuxarm.org/platforms/armv7/ti/beaglebone-black but I noticed that the download links go  down quiet often so you might have to try a couple of times to get the download complete. The Initial install occupies 28% of mmc storage compared to around 65% for angstrom, leaving lot of space for me to play around in! 🙂 As long as I can find a good wifi driver for the tiny usb wifi dongle I bought, I will stick to this distro for my UAV project. More on the adventures if things go as planned. Link to this...

No space left on Beaglebone Black Angstrom!!

Few minutes back I just realised that space on my Beaglebone Blackis full!! Wow 2GB occupied on a tiny linux install that I made yesterday!! As it turns out the default Angstrom distribution is set in debug mode, which fills up the logs like crap! so the space on my black is full now. If you face the same issue here is the quick fix! edit the /etc/systemd/journald.conf and change the following settings: SystemMaxUse=16M MaxLevelStore=info MaxLevelSyslog=info Reboot with: init 6 edit the /etc/systemd/journald.conf and change the following settings: SystemMaxUse=16M MaxLevelStore=info MaxLevelSyslog=info Link to this...