sunnuntai 28. toukokuuta 2017

Picroft - a special version of Mycroft open source Artificial Intelligence for Raspberry Pi 3

There are many AI (Artificial Intelligence) assistants available like: Siri (Apple), Google Assistant, Amazon Echo and Cortana (Microsoft) which all are proprietary. The only open source AI-tool out there on the Internet is Mycroft. I wanted to give it a go.

Off I went and downloaded Picroft - a ready-made image - for Raspberry Pi 3, burned it on a microSD-card and booted Raspi3. Once Picroft was connected to the Internet a six character code was printed on screen. In order to make AI work Raspi3 needs to be paired at https://home.mycroft.ai using the code. After that I started to speak to Mycroft.

My equipment was not that up-to-date. It seems not all devices work. At first I tried a USB headset from Logitech with no luck. I had to use an old Microsoft web camera as microphone and a headset as speakers. After saying "Hey, Mycroft" Mycroft started listening and answering to me.

How was the conversation with Mycroft? Well, very basic I'd say. For example when asking:"Where is London?", Mycroft had no idea. The president of the USA was known by Mycroft. I wanted to teach Mycroft but I guess it's not allowed.

After a quick test all I can say is Mycroft works almost out-of-the-box on Raspi3. That's good news. I hope Mycroft will soon learn where London is somewhere on this planet. And it will - eventually.

Picroft - a special version of
Mycroft runs on Raspberry Pi 3

An old web cam as a microphone

Head set as speakers

The UI of Mycroft on Raspberry Pi 3

Mycroft doesn't know where London is...


lauantai 6. toukokuuta 2017

Charge other devices with your Android phone

Lets say your friend's Android phone is out of charge. Did you know it's possible to lend some battery voltage to other Android phones? Yes, it can be done. Read on!
  • Next, find out if your Android phone supports OTG (On The Go). Download and install USB OTG Checker from Play Store. Check your phone to see if USB OTG support exists.
  • After the above steps it's time to connect your phone with another phone. Use the USB OTG -cable and your normal USB charging cable. Thumbs up your friend's phone will be charged! And hey, not only phone-phone can be connected but phone-other devices as well (cameras etc).
I made a quick test with two phones; Samsung Galaxy S4 and Samsung Galaxy S (yes, an ancient phone from year 2010 running Android 4.4). And yes! It works! Galaxy S4 is acting as a charger for Galaxy S!

Charging going on!

Samsung Galaxy S receiving extra power!

USB OTG Checker
user interface