Android and Bluetooth – not so obvious

At first it seemed easy to me but in fact it took some time to get it work (here). So maybe these few line will save you some time Smile
1. Go to http://www.anddev.org/code-snippets-for-android-f33/serial-over-bluetooth-simple-test-client-t11106.html – you’ll get very nice and simple example on Bluetooth. So get to work your Eclipse with ADT plugin (Android Development Tools).  You’ll have to change MAC address and it example should “almost” work. Why “almost”? The odds are that line 94 won’t work:
btSocket = device.createRfcommSocketToServiceRecord(MY_UUID);

2. Remedy you’ll find here – http://stackoverflow.com/q/4724496
This answer is real lifesaver and clue to communicate via Bluetooth from Android higher then 2.1. Many thanks to the author – Michael. He wrote the following:
The createRFcommSocketToServiceRecord method is not working in Android 2.1/2.2. There is a workaround to call a non-public method to create the socket:
BluetoothDevice hxm = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(device.getAddress());
Method m;
m = hxm.getClass().getMethod(“createRfcommSocket”, new Class[]{int.class});
socket = (BluetoothSocket)m.invoke(hxm, Integer.valueOf(1));

I work with Android 2.3 but comments to this solutions suggest that this issue is still present in Andorid 3. It’s hard to guess whether in Ice Cream Sandwich workaround is still needed.

3. You’ll get handler to write to serial device:
outStream = btSocket.getOutputStream();

You’ll may use it to control servos from your mobile phone. I’ll write about it some other time.

Where to get news related to UAVs?

Maybe your hobby are UAVs or you plan to design something new on this market etc. For whatever reason, If you’d like to stay in touch with UAV business, then you definitely should keep tabs on http://www.suasnews.com – sUAS News (sUAS – Small Unmanned Aerial Systems). On this site you may find variety of products ranging from civil to military equipment. For example news on SenseFly, Swiss company designing and selling “autonomous flying sensors” – flocking flight demonstrated by Sensefly. SenseFly itself is very smart UAV. Worth to write more about.

Why I’m mentioning this site? Because iTyrion would like to get small (tiny ;) ) share of UAV market. I’ve got some ideas but feasibility studies are needed to choose best ones.

Cost you $100, sell for $1.05, and still make a profit!

In “Free” by Chris Anderson you can find dozens of great ideas for a new business to open or running an existing one. You can get a glimpse of what I mean after reading the story below. Citation is from Kevin Kelly’s “New Rules for the New Economy“. In “Free” this story is written very similarly (some argue that this may be even a plagiarism).

“In the early 1960s Robert Noyce and his partner Jerry Sanders—founders of Fairchild Semiconductor—were selling an early transistor, called the 1211, to the military. Each transistor cost Noyce $100 to make. Fairchild wanted to sell the transistor to RCA for use in their UHF tuner. At the time RCA was using fancy vacuum tubes, which cost only $1.05 each. Noyce and Sanders put their faith in the inverted pricing of the learning curve. They knew that as the volume of production increased, the cost of the transistor would go down, even a hundredfold. But to make their first commercial sale they need to get the price down immediately, with zero volume. So they boldly anticipated the cheap by cutting the price of the 1211 to $1.05, right from the start, before they knew how to do it. “We were going to make the chips in a factory we hadn’t built, using a process we hadn’t yet developed, but the bottom line: We were out there the next week quoting $1.05,” Sanders later recalled. “We were selling into the future.” And they succeeded. By anticipating the cheap, they made their goal of $1.05, took 90% of the UHF market share, and then within two years cut the price of the 1211 to 50 cents, and still made a profit.”

Robert Noyce was not only a co-inventor of the Integrated Circuit, visionary business leader, but also an inspiring boss. Short example from wikipedia:

“The relaxed culture that Noyce brought to Intel was a carry-over from his style at Fairchild Semiconductor. He treated employees as family, rewarding and encouraging teamwork. His follow-your-bliss management style set the tone for many Valley success stories. Noyce’s management style could be called a “roll up your sleeves” style. He shunned fancy corporate cars, reserved parking spaces, private jets, offices, and furnishings in favor of a less-structured, relaxed working environment in which everyone contributed and no one benefited from lavish benefits. By declining the usual executive perks he stood as a model for future generations of Intel CEOs.”

Hard to find similar examples in nowadays companies, right? ;)

Incredible quadrocopters

If you’re interested in quadrocopters than you definitely should watch this presentation:

It demonstrates quadrocopters state-of-the-art flying capabilities. If you’re busy and don’t have much time than look only at 7th minute – jaw dropping! It’s worth to watch the whole thing, though. You’ll see team flight, 20 little robots keeping formation, moving together etc.

The Long Tail

Have you read “The Long Tail” by Chris Anderson? If not then you definitely should. It’s a delightful piece of common sense and fresh view on niche products/services/etc.
“Long tail” was published in 2005, but you’d be amazed how up to date it is even now. To get an idea on the topic take a look on a wiki. Any startup company could benefit taking lessons from this book. In my opinion key points to remember are:

  1. Never underestimate variety of people/companies that can reach you via the Web. Just be genuine at what you do and see the result!
  2. Remember to expose your projects, ideas. Write a blog, be a active member of some niche forums. Work out something that’s in line with your business.
  3. Open your work. This may sound counterintuitive, but believe me – the amount of hard work people can put in your idea is limitless. And the best part is – this costs you nothing.
  4. Don’t cheat! This point wasn’t precisely in the book, but I think you could sense it strongly. If you’d like others to help you (see p.3) then be a decent man and respect them!
  5. Experiment! Niche market in definition is segmented, maybe even full of contradictions (person A needs product X, but person B needs product that is opposite to X).

I’ve just started reading “Free” by Chris. My preliminary opinion after several pages – nice work! In free time I’ll write few words on this one.

First person view aircraft – mass market product?

I just found this product on the web: Spy Hawk. Looks interesting but I can’t find much information on this rc plane. Some specs:

  • EPO Crashproof Materia
  • Wing Span:843mm
  • Overall Length:617mm
  • Flying Weight: 180g
  • Flying time: around 30 mins
  • Motor:C1404 Brushless KV3000
  • Battery:7.4V 450 mAh
  • ESC:6A
  • Transmitter:2.4Ghz 4 Channels vs 3.5″LCD Monitor
  • Video+Audio: 5.8Ghz Transmission
  • Camera:5M pixels camera included
  • Live video distance:400 meters
  • OSD module included
  • Auto-pilot module(Option H301A )
  • Video Recording module(Option H301A )
  • Memory Card:Micro SDHC class6 2G (Option)
  • GPS return module (Option H301A)

This aircraft may work as a cheap workhorse in many aerial projects. Me feeling is that 30 minutes flight would be fantastic on 450 mAh battery. I couldn’t find any additional materials or reviews.  Wholesale price is around 150-200 USD per unit (on Toy123), so it could be very approachable for many hobbyists. Maybe you have flown this plane already? Please post some comments :)

Android + Sparkfun BlueSMiRF+ Pololu Maestro

Just a brief introduction to this “proof of concept” miniproject. I successfully connected:

Android talks to Micro Maestro via BlueSMiRF. Short video:

I was inspired by “Build Yourself a Bluetooth Controlled Six-Legged Robot” (using bluetooth to communicate with maestro). The android interface I wrote myself. Even though the app is very simple (“proof of concept” :) ), I came across several interesting issues before I finally succeeded.

My idea was to flight small remote controlled plane. With a range around 100 meters (bluetooth class 1) it should be easily attainable, but at the end I stopped project at this stage. Simply and sadly there are practically non BT class 1 devices. You can get Motorola XT720 and maybe some handful of others devices. For me this was to narrow market. BT class 1 is a must because the range with class 2 is just around 10 meters. Remember that even though BlueSMiRF is class 1, it will work as far as the other paired device is able to.

Please let me know if you’d like some technical details.

Build your own tractor

So many times I was disappointed at big manufactures producing cars, household equipment etc. Each piece of hardware coupled together to work just in one configuration – one car model, one date of production. Is there are no alternative to this??? This video was an eye-opener for me:

Idea is great! To build your tools yourself (which can be tricky) and (this is the best part) in open hardware, modular way.