gruvin.me

techno ramblings and such

Author: gruvin

  • KiCAD Freakduino

    Based on the excellent work of Akiba of Freaklabs

    For a long time, I’ve wanted to get into 2.4GHz digital RF communications, using microcontrollers. I recently came across the Freaklabs “Freakduino” v2.1a and bought a couple straight away.

    The Freakduino – or chibiArduino (link to authentic Freakduino site) – is an Arduino compatible device, with on-board 2.4GHz radio. It utilises a custom-built protocol stack, named “Chibi”, which means “midget” in Japanese.

    The radio chip itself is a Zigbee-compliant Atmel AT86RF device. The Chibi stack, written by Akiba of Freaklabs, is an easy-to-use and lightweight (small code size) stack, enabling simple communications for known network structures. No mesh capability, but it’s fully capable of addressed, bi-directional point-to-point and broadcast communications over 802.15.4 style data channels, using the AT86RF radio chip. I’ve found it to be really fast and it even handles error correction on the fly. Just the thing for sending sensor information or twitter texts. (Honestly, I barely know what I’m talking about, so keep your grain of salt handy!)

    If you wanted to, you could easily extend the Chibi stack to work whatever magic you can dream up. But you’ll be pleased to know there’s also FreakZ, a mesh networking stack. FreakZ is in early development at the time of this writing. It’s a big undertaking and already a great start!

    Chibi requires only your favourite microcontroller and a compatible radio chip, so quite small circuit boards can be made.

    Most importantly for me though, Chibi gave me the opportunity to learn and understand low-level Zigbee-style radio communication, without having to learn the full Zigbee protocol and everything it is capable of — just yet anyway. So, my learning curve has been significantly reduced, while still allowing practical devices to be built at my hobby desk now. Very cool. Thanks, Akiba! 😉

    The Freakduino hardware, whilst fully open, is apparently authored using closed electronics CAD software. I prefer to use open and free (as in speech) software like KiCAD. This project is about creating a Freakduino v2.1a compatible board in free KiCAD software, while at the same time gaining experience with the Atmel 2.4GHz Zigbee radio chip and Chibi, of course. This will also be only my second experience of hand-building a board with a tiny QFN part and my first ever 2.4GHz project. Plenty of new stuff to learn and play with.

    Luckily, my interests in Ham Radio have prepared me for some of the… shall we say, mystical aspects of microwave radio circuitry. I think I’ve got it about right in this case.

    So there it is. An open KiCAD-based version of the Freakduino v2.1a. Keep in mind though that it will surely cost you a lot more to build your own, compared to just buying from Master Maker Akiba at his Freaklabs Store!

    My design uses a couple of different components (level shifter and 5V boot regulator) due to local availability. Ironically, after a week of failing to find the two troublesome parts and going ahead with my modified version, I just received an email from China asking me how many thousands of the ones I couldn’t find! Oh well.

    Finally, I should point out that building one of these boards for yourself, using my open source design files hosted at Google Code (and not yet production ready at time of writing) will be MUCH (much!) more expensive than just heading over to the Freaklabs online shop and buying directly from Akiba, the original creator. I’m choosing to “suffer the expense” as an education cost, you see. 🙂

  • USB DSL Traffic Meter / Alarm Thingy

    USB Bandwidth Alarm image
    USB Bandwidth Alarm Prototype

    Recently, something went rogue on our network and happily consumed over 3GB every hour, for 16 hours — over 85GB in less than a day. :-/ I was not impressed.

    So, this afternoon I thought, “Wouldn’t it be nice to have some simple, visual / audible display or alarm that would alert me to problems like this, without having to remember to check on my traffic accounting system.” So I made one.

    (more…)
  • Curing Multiple Drive Map Weirdness in Windows

    To help Google help you find this article, I should mention a few names I’ve come up for this scenario, search query names like, “multiple unwanted drive mappings”, and “windows multiple duplicate drive mappings” or even, “windows many cloned drive maps fault”.

    Foreword

    None of the stuff in this article actually worked out in the end. Seems that underneath all the eye candy, Windows is still uselessly poor where it counts. Save yourself a lifetime of hassle and switch to Mac. You’ll never look back. That said …

    The Story

    A long, long time ago, I remember having a strange problem under Windows XP with Office 97. Machines around the office would have a single drive mapping to a samba network share — say, something like …

    \\server\homedir (H:)

    After booting, if I opened Windows Explorer soon enough, I’d see just that one mapping, as expected. Then, if I just sat there, doing nothing but staring at ‘Explorer, after a minute or so, that same mapping would start duplicating itself under every avaialble drive letter. Something like …

    \\server\homedir (E:)
    \\server\homedir (F:)
    \\server\homedir (G:)
    \\server\homedir (H:)
    \\server\homedir (I:)
    \\server\homedir (J:)
    ... all the way down to ...
    \\server\homedir (Z:)

    Back then, it took ages to find the cause, which turned out to be some kind of bug in the Office 97 ‘parasite’ program, FindFast — a file indexer meant to make finding stuff quicker, which it actually did do, reasonably well, I guess. (Who on Earth forgets where they saved things though? :p) Completely removing FindFast made the problem go away back then and I hadn’t paid it the slightest thought over the ten plus years hence. (Never came across it again either, oddly enough!)

    Fast-forward several major service packs of Windows XP, through Windows Vista (yikes!) and all the way up to Windows 7 (with the latest service packs as at 2011-01-01) and we find that, in true-to-themselves Microsoft form, the SAME fault still exists in the Windows7 buil-it Indexer service today. AMAZING, yet somehow not surprising. (I converted to Apple Mac as soon as they went Intel under BSD Unix — after some 20 years of Windows’ psych0-trauma’ing. To think — I used to actually believe that bugs like this were just an unavoidable part of owning a computer. I’m much wiser now though! :p)

    Granted, this is one of those faults that seems to hardly ever show up anywhere on the planet — unless M$ have a secret pact with Google to remove all mention of it, somehow. But it’s not completely unheard of. I did manage to find ONE solitary post on the topic, from back in 2004 I think. Heck — it might even have be from me. (Don’t think so.)

    So the fix under Windows7?

    Go to the Control Panel, change the view to anything but ‘by Category’ and locate Indexing Options icon. Activate that and click the Modify button, lower left of the resulting window. Remove the tick from checkbox alongside Offline Files. (Searching for files you can’t even access? What’s with that anyway?) Problem solved.

    I have to admit that I was quite astonished when this stab in the dark actually did cure the fault. Since I’ve been living with it for months (in a virtual machine I use for PCB design under Windows) and only just finally came up with this brain-storm-fluke of an idea, I thought I’d better blog about it somewhere, in hopes others with the problem can learn the answer too. Hope it helped … and that my sarcastic, cynical banter wasn’t too bad a thing to endure.

    Oh no!

    The problem came back. It no longer happened “just on its own”, as mentioned above. But some programs seemed to trigger it to happen again after opening the Choose File dialog box.

    Suspecting the possibility of residual index data from before I disabled ‘Offline Files’ indexing, I click the Advanced button in the Index Options window and then the button to delete and rebuild the index. So far, the problem has not come back again. Yay \o/

    I suppose that disabling the indexing service altogether (don’t know how in Win7 yet) might be the ultimate fix. But it seems a little ‘sledge hammer’ to me.

    I Give Up

    OK. I give up. It came back again the next morning. If you stumbled upon this post and did eventually find a permanent cure for this ancient incurable Windows BS bug … please do let me know by way of a comment. Thanks.

  • ER9X-ala-gruvin has its Own Project Home

    Wow. Looking back on those earlier posts about my ER9X hacks is kind of embarrassing now. But hey … that’s life. Always moving on, until it doesn’t!

    My TH/ER9X hacking adventures have now launched off in whole new directions — including an open design project for a complete replacement main logic board for ‘9X radios. As of this writing, the first prototype PCB and components have been ordered, due to arrive for assembly very soon.

    The gruvin9x project is currently focussing on Fr-Sky telemetry support and the afore mentioned prototype logic board. The latter is all about expanding the program capacity of the ATmega controller (upgrade to ATmega2561) and adding a fully functional MMC/SDCARD interface, with FAT32 file system support. This will be used to store model data and other stuff — like telemetry logs or even autopilot flight plans (much later). The fun has only just begun!

    The whole project is now hosted at Google Code, under the vanity name gruvin9x — including the KiCAD open-source circuit diagrams and PCB design. Enjoy!

    Once again, a BIG thanks to Thomas of TH9X, who got us started — and Erazz of ER9X, with all the followers and contributors there, who have added so much already. I haven’t had so much fun in years!