Tuesday, 20 October 2015

Interfacing Arduino with BlueTooth with Python (part 1)


The following is my experiences with an Arduino Clone and BlueTooth.
I wanted to be able to talk to my Arduino using a BlueTooth module to my
computer as I wanted to build  a relatively inexpensive controller
for a project.  Initially I bought an Arduino Duo and an Arduino Micro but once
I'd breadboarded up the final product I was not happy with the size nor
the power requirements.
I was after a tiny Arduino controller which had the following Built in
and the Dagu Micro Magicial v2 was just the thing.
* Single power supply in 3.6v to 9v to supply the Arduino and Motors
* H Bridge controller for driving motors
* Spare Digital IO pins so I could drive extra modules

The best thing about it is you can by and add on BlueTooth serial card purpose built to
slot right onto the card. Keeping a nice small form factor.

What did I need

1) Dagu Micro Magician v2 ( http://www.dagurobot.com/goods.php?id=137 )
2) Dagu DG010 Bluetooth adapter ( http://www.dagurobot.com/goods.php?id=128 )
3) Arduino sketch software ( latest 1.6.5 )
4) Dagu "microM" library from http://sites.googl.com/site/daguproducts/home/arduino-libraries
5) Windows 10 ( or what ever flavor or OS you want as long as you can get you Bluetooth Dongle to work ).
6) Bluetooth Dongle that will run on the Microsoft BlueTooth Stack ( D-Link DBT-122 )
7) Python 64-bit installer ( python-3.5.0-amd64.exe )
8) PyBluez BlueTooth Library for Python : pip install pybluez

Wednesday, 4 June 2014

DN2820FYK May 2014 release 0034

No issues reported with windows 8.1

Still will not run vmware esxi hypervisor.  I tried the 5.5 update1.
It still hangs trying to relocate modules.

With the latest beta version of XBMC Gotham it is running a treat.

Still pretty annoyed that it still will not run ESXi.  Don't buy it for anything other than a windows 8.1 box.

Thursday, 20 March 2014

DN2820FYK - BIOS Update 0028

lhill announced recently the latest firmware for the DN2820FYK, update 0028.

Well, what exciting things does it bring?

Does it run ESXi now? . . . NO!

Does it fix the start up issue when you insert a USB device? . . . NO!

Well . . . at least my Windows 8.1. install is still running fine.

Thanks Intel, fixed exactly 0 of my issues.

Intel's original announcement follows:

Announcement: New BIOS for DN2820FYKH - posted March 19

created by lhill in Intel NUC - View the announcement
Check the Release Notes to see what changed.
Version 0028:   https://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=23716

Sunday, 16 March 2014

Warning DN2820FYKH does not work with ESXi ( any version ) as for all BIOS up to and including 0025

As the subject says "Warning DN2820FYKH does not work with ESXi ( any version ) as for all BIOS up to and including 0025".

Do NOT buy one if you want to run ESXi.

Enough said . . .

Wednesday, 19 February 2014

Windows 8.1 on the DN2820fykh

After having given up in disgust at the lack of support this box actually has for alternate OS's I shifted my view to Window 8.1, the only true OS that this box supports fully.

So what is the verdict?

After so much mucking about it was actually a pleasant experience getting Windows 8.1 on the DB282FYKH.  The install went smoothly the updates went smoothly.  However, there are no proper drivers that come from Windows Update, you must install ALL of the drivers from Intels Driver update site manually.

This is actually quite a bit of a pain in the bottom.

So what am I running.  Well after upgrading to the very latest drivers and the very latest BIOS, I installed the following software on the box.

* iTunes ( to get Bonjour )
* Steam

They all worked a treat.  I even put Torchlight 2 on there to try it out and it seemed to work quite well; even on my very very old NEC Plasma TV.

I configured the IR with my logitech remote using the Windows Media PC / XBMC profile which works very well.  However you can not use the power button or activities button to turn it on and off without creating a device for the NUC its self and as I ran out of my limit of 5 devices I decided to let that bit slide.

All in all it is working quite well as a media player.

Lessons Learnt

I would have to say this is not a system worth buying if you don't want to run Windows 8.  In fact it's just a waste of your time.  Do not do it.  If you do get one just install Windows 8 or 8.1 and save yourself some time.

Although it said Ubuntu was supported I wasn't really happy with my attempts to install it.  I think possibly because the install process broke quite a few times and in the end I gave up with out actually getting it to boot off of the hard drive.  The live cd totally worked fine, but that's not the same as having a proper install.  Also I'm not a big fan of Ubuntu, that probably didn't help nor aid in my enthusiasm to see this work.  I had more success with Steam OS and that is just a beta product.

Don't buy any hardware that is bleeding edge like this and unless someone has proven something actually runs on it steer clear.

Am I happy with my investment.  Well yes in part, but I am in two minds.  I am really disappointed at poor level of the OS software support that this product had.  It really seemed to be ship it only for Windows 8 and then allude ( though not directly of course ) that it might support much more.  I think putting untested rumours in a big NUC bucket especially on the Intel site that this might work on the model you bought is kind of misleading.  I certainly did not find it helpful.  So Intel if you are reading this, you really should only put up confirm-able facts specific to each model if you want to do this.  I can get totally 100% unreliable hear say from other sources myself, thanks.

I REALLY did want to be able to run ESXi on it.  That was really disappointing.

Wednesday, 12 February 2014

SteamOS on NUC DN2820FYK doesn't work yet 13/2/2014

SteamOS does NOT work on the DN2820FYK.  Here is a list of what's good, what's not and what I don't know.

Installs - OK
Boots - OK
Networking - OK
Video - <F7> - BROKEN - Graphics does not work, the intel driver is rubbish.
Terminal - <F2> - OK - After it has booted you can switch to the terminals and the work fine.

You can switch from the graphical display to the terminal pressing <CTRL><ALT><F2> and back using <CTRL><ALT><F7>

You can login as desktop/desktop and use sudo for elevated privs.

su bash
su - steam

The system will eventually reboot

Let it create the recovery partition.

You can force updates as root using

apt-get update
apt-get upgrade

Still can't get the, main screen yep but startx will start x for you

Damn UEFI boot partitions

I'm not sure who came up with the idea of making UEFI boot partitions hard to remove, but who ever you are . . . you made a very poor decision.  Once you do an install with a UEFI boot partition, subsequent installs make new UEFI boot partitions and then nothing works.  If you do an install and it all goes wrong, get a Linux Live distro, startup Gparted and remove the sucker before you try to reinstall from scratch.

I wonder how the average Joe at home goes about this or is this an evil ploy to keep spotty nerdy kids employed in low paying IT sweat shops that take 5 weeks to fix your computer and invariably screw it up still.