Skip to main content

Posts

Building Autonomous Drone with Raspberry Pi and APM 2.8

I am a total newbie to hardware and was pushing my limits to see how far I can reach on with hardware projects (which sparked my interest lately). I have set out on a very ambitions mission to control a drone from raspberry pi.I began the research for this around 2 months ago and had brought a raspberry pi, drone body kit and apm flight controller. The key difference of this project from common drone projects is that I'm trying to avoid the use of and RC and instead use the raspberry pi to control it. 


Hardware Installation Setup:
I am using APM 2.8 and Mission Planner.I am using RPi 3 to control the APM 2.8 via Telem port of APMI am planning to power the apm via the battery to ESC (Electronic Speed Controllers)

Now, documenting my steps below:
Day 1Watch TutorialTo get started with APM flight controller, I watched this video tutorial [1] which gives a gentle introduction about APM board. 
Setup APM board and Calibrate SensorsI downloaded the APM Mission Planner software for mac and in…
Recent posts

Programming Raspberry Pi by Examples

Example 1: Programmatically controlling the LED


Join the Raspberry Pi Course (link) Implement LED connection in the course week 2 lecture (link) .







Example 2: Using the DHT11 - Humidity and Temperature Sensor with Raspberry Pi:
The example in Uugear (link) did not work because my DHT11 had the pins in different order the pins were marked + and - rather than S, V and G.

So I connected :


+ symbol in DHT11 ------> 3.3V- symbol in DHT11 ------> GNDout symbol in DHT11 ------>  pin GP4
Also I used this github library (easy to understand) : https://github.com/szazo/DHT11_Python


Example 3: IR Controlling your TV and AC with Raspberry Pi
These 2 tutorial were followed to do this example:

1. http://www.raspberry-pi-geek.com/Archive/2015/10/Raspberry-Pi-IR-remote (main)
2. http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/ (helped to resolve issues)
3. https://blog.bschwind.com/2016/05/29/sending-infrared-commands-from-a-raspberry-pi-without-lirc/ (to learn about IR reciever)


Ext…

Datamining with Rattle for R - My Talk at GDG, Trivandrum 2015

Recently, I got a fantastic opportunity to be a speaker at Google Developers Fest 2015, Trivandrum. It was a wonderful topic I enjoyed learning and sharing.

Data Mining with R for Rattle :



And here is me on stage:








Learn Awesome Mnemonic Hacks and Help Build New Ones @ Spellogram.com

Mnemonics are cool techniques that are immensely helpful remembering facts. Be it
anything from spelling of english words to quantum physics, you can make a mnemonic to learn it. 

For example: 

The spelling of 'SEPARATE' is one of the the most commonly misspelled word in English language. 

"There is A RAT in sepARATe" - visualizing and remembering this sentence will help anyone recall the spelling of separate quickly without mistake. 

Another example is the spelling of 'necessary'Just remember the sentence 'Shirts have 1 collar and 2 sleeves' to avoid misspelling the number of 'c' and 's'. 

 It's a clever idea to keep these tricks under your sleeves to impress your friends or teachers with your new exceptional memory powers. 


A trick to recall the first10 element of periodic table is to just remember : "Henry Hester Likes Beer But CanNot Obtain Food Now"

Elements: Hydrogen, Helium, Lithium, Beryllium, Boron, Carbon, Nitrogen, Ox…

Data Mining & Analytics with R : Running R Scripts and Data Mining Techniques - Day 2

Warning: These are my messy study notes, much better legible notes can be found here http://onepager.togaware.com
1. A Tour Thru Rattle
Transform Tab ( by no means near to the full power of underlying R) Data Mining Tabs - Cluster, Associate Model Log Tab  - Capture the corresponding R command Working from Left to Right on Tabs Remember to Click Execute Button'Save' -> Projects save the current state, all models etc.'Open' Projects can be restored at a later timeYou can even load it back to R 2. First R Program Load rattle and ggplot2
library(rattle)  # Provides the weather dataset  library(rattle)  # Provides the ggplot() function ggplot -> Grammar of Graphics : Just like english grammar or grammar of a computer language. A result of Hadley's Phd . Look him up to learn more details.
Then produce a plot using ggplot() # handsondatascience.com - tips on elegantly writing repeated code ds <- weather 
1. ggplot(ds, aes(x=MaxTemp, y=MinTemp)) + geom_point()
aes - aest…

Data Mining & Analytics with R : Introduction to R, RStudio and Rattle - Day 1

This is a blog post on a workshop I attended : a three-day hands-on Workshop on Data Mining & Analytics with R at Technopark, Trivandrum on 5th May 2015



Taught by :  Graham Williams - Senior Director and Data Scientist , Australia Graham.Williams@togaware.com
http://datamining.togaware.com
Read About  - Literate Programming  - Literate Data Mining
Philosophy We are not writing program for the computer, it is written to share with other people. Everything that we write should be written for others. We should control the computer not vice versa. 
Introducing Data Science
Data Mining  Started in around 1989. Lego house - model - > not real but we get an idea. Data mining is all about building such models.
Analytics Descriptive Analytics - what happens , suggestions in Amazon Diagnostic Analytics - explain why the above happened Correlation and Causation - Find up people who ended up in hospital after taking a particular drug Predictive Analytics - machine learning and statistics model…

Hadoop The Definitive Guide [Book] - Study Notes

Chap-1- Meet Hadoop

Requirement and adoption in yahoo.A framework that can scale to the web.Map and Reduce acitivity and features like data locality.Can be applied with a variety of algorithmsHuge data processing can beat good algorithms

Chap-2 - MapReduce

The Map Java class and Reducer Java classThe Job java classJobtracker and tasktrackerHadoop reduces the input to input splits or just splitsMap tasks write the intermediate output to local disks, so that they can be discarded after use.Outputs of Reduce tasks are stored in HDFSCombiner function can be run on map output, and the combiner functions output forms the input to the reduce functionHadoop streaming proivide hadoop apis in languages other than Java

Chap-3 - The Hadoop Distributed Filesystem

Fault tolerant solution. Same data written at multiple places.Filesystems that manage the storage across a network of machines are called distributed filesystems.Blocks - a block size is the minimum amount of data it can read and write (for hd…