Tag Archives: Arduino

Why you should open source your next pet project

After looking into my github account, lot of people used to ask me why I open source my pet projects, especially after looking at my streak at github (my current streak is at 52 days ;) ) the frequency of the question has increased.

I used to come up with an answer by combining these words randomly (passion, show off, free, rebel, linux, anti-Microsoft, license). But today, I realized that there is another (more important) reason why you should open source your (pet) projects.

Your project might have a longer shelf life than your interest in the project and in some cases longer than your life itself.

You might lose interest in the project, but if you have open sourced it, then there might be someone else who will continue to maintain it. But instead if you had just kept it in your hard drive, then it will just become part of the cosmic dust.

Abandoned projects

I have read about many examples where projects are continued to be maintained by other people, when the original creator has lost interest. _why is one famous example. When he suddenly went offline in Aug 2009 people immediately started creating mirrors of his projects and even though he is no more (in the online world) his projects are still being maintained actively.

None of this would have happened if he had not open sourced his code.

Arduino Makefile

Let’s talk about the project that thought me this.

Sometime back, I came across a post which explained how you can program Arduino from command line by using a makefile. I immediately got hooked and started using it when even I was working on Arduino sketches.

Soon I found out a couple of issues and submitted pull requests. Some of my pull requests were accepted and others weren’t. While browsing through the issues and pull requests of the project in github, I found that there were lot of other people who have also contributed various patches to the project. It also seemed that the original author has stopped doing any development or answering pull requests.

I started to consolidate all pull requests and patches from various forks into a common fork and even updated the readme file expressing my desire that one day all these changes would get into the main repo :)

Fast forward a couple of months.

Last week, I was surprised to receive an email from the original author, saying that he has lost interest in the project and whether I would be interested in maintaining the project going forward. I happily accepted and he transferred the repo to my account, after I merged all my changes back into the main repo.

None of this would have been possible if he didn’t choose to open source the project initially and also let go the project when he lost interest.

Thanks to Github

Ohh, by the way, I should also mention that some of it was possible only because of github. If github wasn’t there, then it would had been difficult for me to find and consolidate other forks and he also wouldn’t have noticed my fork or the effort that I was spending on the project.

Also, the recent addition of redirects by github made the repo transfer really seamless.

So remember to open source your pet projects by at least uploading them to github. Because you may lose interest in the project some day, but the project might still continue to live long after that.

Happy Open sourcing ;)

Posted in Arduino, Random/Personal | Tagged , , , | Leave a comment

Using WebSockets with Android to control Arduino robots

I just came back from DroidCon 2012 by hasgeek, where I gave a talk about using WebSockets with Android to control Arduino based robots. I talked about WebSockets, how it can be used with Android and then gave a demo that I made using WebSockets, Android and the node.js server which I wrote for jsFoo. The demo allowed anyone from the audience to control an Arduino based robot which I placed in the stage.

I didn’t just talk about making Android and Arduino talk to each other, since I have already covered that in last year’s DroidCon.

Slides

You can download the slides from my slideshare account or view them below.

Demo

I built the demo using WebSockets, Android and node.js which allowed anyone from the audience to control the Arduino robot that I placed in the stage. The user’s browser communicated with the node.js server using Socket.IO and the Android app received this information through socket.IO and controlled the Arduino using ADK. You can find the entire source code in my github account.

The demo was well received and it was good to know that many people liked it. You can checkout some of these tweets to know how much people liked it :)

Arduino Workshop

As I said before, I am conducting an Arduino workshop this weekend. The workshop consists of hands-on sessions, where you can learn about Arduino and then use that knowledge to build a fully autonomously bot from scratch similar to the one that showed in the demo. You can find more details about the workshop from the workshop page at hardwarefun.

Buying Arduino in Bangalore

As it used to happen in my other talks about Arduino, even today lot of people asked me about places where they can buy Arduino in Bangalore. I have already collect a list of places from where you can buy Arduino in Bangalore. You can refer to that page, in case you are planning to buy Arduino in Bangalore.

Couple of people asked me what’s next and someone suggested that I build two robots, that can interact with each other. My personal favorite is to create a bot, that can fly. Let’s see what I make next ;)

Posted in Android/Java, Arduino, Events/Camps | Tagged , , , | 17 Comments

Controlling robots using JavaScript

I just came back from giving a talk in jsFoo 2012 about controlling robots using JavaScript. I talked about the different options that you have to control external devices using JavaScript and also gave a demo, which allows anyone on the internet to control the bot that I created.

Slides

You can download the slides from my slideshare account or you can view them below.

Demo

I created a demo using express, socket.io and node-serialport, that allowed anyone in the internet to control the Arduino bot that I created. The entire source code is available at github. Over the next couple of weeks I will be writing more articles explaining how the different components of the demo worked. So stay tuned :)

Arduino Workshop

As I said before, I am conducting an Arduino workshop on Nov 3rd and 4th. The workshop consists of hands-on sessions, where you can learn about Arduino and then use that knowledge to build a fully autonomously bot from scratch similar to the one that showed in the demo. You can find more details about the workshop from the workshop page at hardwarefun.

Buying Arduino in Bangalore

As it used to happen in my other talks about Arduino, even today lot of people asked me about places where they can buy Arduino in Bangalore. I have already collect a list of places from where you can buy Arduino in Bangalore. You can refer to that page, in case you are planning to buy Arduino in Bangalore.

Video

HasGeek has uploaded the video of the talk and demo. You can view it in youtube or below.

Posted in Events/Camps | Tagged , , | 16 Comments

Hands on Arduino Workshop

In my last post about my recent project hardwarefun.com, I hinted that I am planning to conduct an Arduino workshop. Now things have got finalized and I will be conducting it on Nov 3rd and 4th.

It is going to be a 2 full day workshop and I will also be providing the components needed for the workshop. You can find the course content, fees structure and the registration process in the workshop page at hardwarefun.

The aim of the workshop is that at the end of two days you should able to have a working Arduino based bot which can autonomously run on its own avoiding obstacles in the path.

Even though I have given lot of talks before, this is going to be the first time I am doing a full 2 day workshop and I am kind of excited :) Also if you have any feedback or questions then feel to contact me by leaving a comment below.

Posted in Arduino | Tagged , | 5 Comments

Introducing HardwareFun.com

Sometime back, I told you guys about a secret project which I have been working on and now it’s time to reveal it ;) So ladies and gentlemen I introduce you to my new pet project HardwareFun.com.

So what is this project about?

Regular readers of my blog would have noticed that I have started playing around with hardware (especially Arduino) for quite sometime now and I really enjoy doing it. I used to talk about it at various events and realized that lot of people are interested in doing it as a hobby but don’t know where to start, especially if they are not from electronics background.

The number of emails that I used to get from people asking me how I got started doing hardware programming increased over the period of time, especially after Raspberry Pi became famous. This made me to think about ways to share my knowledge about hardware programming, which I have learned over a period of time, so that it will help people who are also interested to get into hardware programming like me. Also it will give me a personal satisfaction of giving something back to the world of web from where I have learned pretty much everything.

.. and that’s how HardwareFun.com was born :)

I am planning to write about project and libraries that I am working on, tutorials to get you started with hardware programming, about shields and other hardware that I have used and of course about my experiences programming them etc. If enough people are interested I might even start conducting workshops or other events to help people get started with hardware programming. So lot of existing stuff to come, stay tuned ;)

I have already started posting a couple of tutorials and articles on the site so do check it out and let me know if you have any feedback.

Posted in Arduino | Tagged , , | 7 Comments

Board Hackthon

Last weekend, a couple of us from computer club (read hardware enthusiasts) met together to discuss about the different development boards available and also to learn from each other.

Boards

The following are the list of development boards that we discussed during the hackthon.

Capabilities of Arduino

I spoke about Arduino and also discussed about the different capabilities of Arduino. You can view the slides that I used for my talk in my slideshare account. I have also embedded it here for easy reference. You can also checkout my other presentations and slides from my talks page.

Hacks

After the talks, we decided to hack the different boards and make them talk with each other. I was able to program the DDK board using Android libraries. I also succeeded in making two Arduino boards talk to each other using I2C (more details about it soon). After the hackthon I am also currently working on making both the Arduino and DDK talk to each other using I2C. Will let you know guys once I am able to do it.

Posted in Arduino, Events/Camps | Tagged , , , , | 2 Comments

Building Robots using Android and Arduino in Google Devfestx

I just came back from Google Devfestx which happened in Bangalore today. The event was very well organized and I gave a talk on building robots using Android and Arduino. This is a slightly modified version of the talk which I gave at Droidcon. I have added some additional information, especially about NFC and communicating Audio Jacket.

Slides from my talk

You can access the slides of my talk from my slideshare account. I have also embedded it here for easy reference. You can also checkout my other presentations and slides from my talks page.

Demos

I showed a demo of my pet bot Asimi. You can download the source code and learn more about the bot from its homepage.

Due to some problem in the circuit, the demo didn’t work well. I realized that in future, I should always have a video of the demo handy, which I can show in situations like this.

I also showed a demo of a game which I created using a bunch of LED’s all connected together using charlieplexing. Will post more details about it soon.

Posted in Android/Java, Arduino, Events/Camps | Tagged , , , , | 7 Comments

Introduction to Hardware hacking and Arduino

I just came from Ayana 2012 where I gave a talk about hardware hacking using Arduino.

About Ayana 2012

Ayana is a two day event conducted by PES IT. It starts with tech talks on the first day followed by 24 hour hackthon, similar to Yahoo Open hackdays.

Introduction to hardware hacking using Arduino

In my talk, I first talked about why a software hacker should look into hardware hacking. I then followed it by a brief introduction to Arduino, using the famous Blink program.

After that I was talking about different ways by which you can make Arduino talk to Internet and mobile phones like Android.

In the end I also gave out some hack ideas for the participants.

Slides

I have uploaded the slides that I used during the talk to my slideshare account. I have also embedded it here for easy reference. You can also checkout my other presentations and slides from my talks page.

The talk went well and there were lot of questions after the event, which is generally a good sign :)

Buying Arduino in Bangalore

As it used to happen in my other talks about Arduino, even today lot of people asked me about places where they can buy Arduino in Bangalore. I have already collect a list of places from where you can buy Arduino in Bangalore. You can refer to that page, in case you are planning to buy Arduino in Bangalore.

Posted in Arduino, Events/Camps | Tagged , , , | 4 Comments

Buying Arduino in Bangalore

After seeing my talks and projects on Arduino lot of people keep asking me the same Question. Where do buy Arduino or other electronic components in Bangalore?

Instead of replying to them individually, I thought I would post about it here, so that it is useful for others as well.

Okay, to buy Arduino in Bangalore you have two options, either buy them offline (in a brick and motar shop) or buy them online.

Buying electronic components in Bangalore

In general you can find most of the electronic components that you need for your hobbyist projects in SP road in Bangalore. It is similar to Richee Street in Chennai. (I guess every city has a similar a similar road)

For people who are new to Bangalore, I have embedded a map of the place, which I am talking about below.


View Larger Map

Shops that sell Arduino in Bangalore

In SP road, I know the following shops that sell Arduino. There could be others as well, but these are the ones that I have personally bought Arduino from.

  • NSK Electronics (price Rs. 1300, checked on 24-March-2012)
  • Vishal Electronics (price Rs. 1300, checked on 24-March-2012)

NSK Electronics also sells Arduino clones for a much cheaper price. Once thing to keep in mind is that, these Arduinos don’t come with the USB cable. You have to buy them separately. Don’t forget to buy them as well. Last time I checked the price was around Rs 20.

Buying Arduino Online in India

If you are not in Bangalore or if you prefer to buy them online then you can buy them from one of the below shops.

  • rhydolabz.com – I bought my first Arduino from them, way back in 2010
  • 9circuits.com – They are slightly costly, but they have Arduino ADK boards as well.
  • tenettech.com – They have lot of good tutorials and also have a clone as well.

Buying USB Host shield

I have not seen any shop selling USB Host Shield in Bangalore so far. The only option is to buy them online from Circuits@home

If you find a better option, then let me know in the comments below and I will add them to the article. Till then, best luck with your Arduino :)

Posted in Arduino | Tagged , | 32 Comments

Transferring data from Android using Audio

Just came back from monthly Bangalore Android meetup. Today I gave a talk about transferring data from in and out of Android using the audio jacket.

About the talk

In the talk I mainly discussed about the way by which you can transfer data in and out of Android using the audio.

I also discussed about the ways by which you can read this data in Arduino from Android.

Slides

I have uploaded the slides, which I have used in the talk to my slideshare account. I have also embedded them below so that you can easily view them.

Video

I have embedded the video fo the talk as well. My talk starts after 20 minutes.

Discussion about my marriage card

Badrinath also gave talk about NFC in the meetup and he used my wedding card for my demo.

It’s kind of great to know that he remembered my marriage card even after my marriage which happened around 2 months before ;)

Questions/Feedback

If you have a question or feedback/comments about my slide, then do let me know by leaving a comment below.

Buying Arduino in Bangalore

Lot of people asked me about buying arduino in Bangalore. Instead of answering them separately, I consolidated the different options in my blog. Let me know if I missed out any place.

Posted in Android/Java, Events/Camps | Tagged , , | 6 Comments