Posts

Not a First Impressions Post

Hello! This post was supposed to be the promised "First Impressions" post for the IoT pHAT from RedBear we unboxed recently. Sadly, I will be holding that post off for a little while. Why, you ask? Basically, it comes down to the current setup process. Apparently there are certain issues with the Pi's firmware which are to be fixed in the next release. While the pHAT is currently usable, I know whatever process I'd describe will soon become redundant so I'm holding off for the next Raspbian release (should be out really soon) to do everything all at once. In the meantime, I recently got my hands on an Intel Edison Kit for Arduino, so I should post some stuff about that really soon. Perhaps even do a First Impressions post about that instead? ;-)

Revisiting RF24 on Ubilinux

Image
[TL;DR: In summary, we need to modify the “configure” script a little bit, then run the configure command with certain arguments, then edit the Makefile (comment three lines out) then run make install –B. Details/specifics below.] Hello! Although this post should be about the first impressions of the IoT pHAT unboxed last time, my attention was recently drawn to major changes in the RF24 compilation process, so I decided to revisit it and leave the IoT pHAT post for next time. As before, the goal is to be able to use nRF24L01+ radios on Intel Galileo boards running the Ubilinux distro. We’ll be focusing on using the MRAA library as the HAL/backend (recall that RF24 can use SPIDEV or the bcm2708 library as well, the latter supported only on Raspberry Pi boards). To get started, MRAA itself must naturally be installed. To do this, you’ll want to have the following installed: clang, cmake, python-dev, build-essential (things like make and all that). A full list of dependencies is prov...

Unboxing the RedBearLab IoT pHat

Image
Hello! Been a while – I hope the winds of fortune have been blowing favorably in your various directions. Been rather busy with work myself, so I apologize for the long silence. As a reparation, today will be my first ever unboxing post! In my never-ending search for cheap yet functional stuff, A few months ago I began following a certain project on Hackaday.io , which combined two of my favorite things at the time – the ESP8266 WiSoc and the Raspberry Pi (Zero). Essentially, the project was exploring a means of using the ESP8266 as a WiFi peripheral for the Pi with full OS support – so theoretically you’d hook up the ESP8266 (specifically the ESP07/12 models as I recall), load up whatever kernel module was needed, and you’d get a wlan0 device which you could use to do awesome. At the end, it ended up working and the board designs and everything needed are up there on Hackaday.io. However that guy ended up with a ~$20 board, which is like 4x the cost of a Pi Zero. Shortly after that,...

Nancy

Image
Hello all, I’m hoping everyone has had a good week. Tis Thursday folks, the weekend’s a’comin’! I also realized that I barely blog about anything C#, which is a shame since the blog’s tagline implies I should, so this week I’m going to talk about Nancy. I’ll take a rain check on the Alchemy thing though… NancyFx or Nancy for short is a lightweight, server-side web framework for the .NET framework. Basically, it comes into play when you’re trying to build a web-application with server-side smarts, such as a data-bound application (where data is stored, queried and retrieved), building web APIs (web apps returning XML or JSON data in response to requests) and things like that. Granted, there are tons of neat frameworks to do this for every language – there’s Django for Python, there’s ASP.NET and ASP.NET MVC for the dotNet framework itself, etc. However, ASP.NET and ASP.NET MVC are rather heavy and (for me) rather difficult and clunky to deploy on non-Windows hosts. If you’re going t...

Getting Started with Logic Analyzers and Pulseview

Image
Hey all, Been a while. Hope you’ve been up to no good, hm? A couple of days ago, I had to do some low-level I2C work on a bare-metal ATMega328P. Digging out the datasheet, I cobbled a simple I2C driver together, the purpose of which was to permit me write a driver for the particular peripheral which would call the lower-level functions the driver provided (i.e things like i2c_start(), i2c_stop(), i2c_address(), etc etc). When I finished the I2C driver, I tested it out with an MMA8452Q I had lying about and it seemed to work just fine. Believing everything to be dandy, I went ahead and wrote the peripheral driver for the component I was working with. And that was when the funny stuff started. To cut that long story short, it wouldn’t work right when deployed to the hardware. At all. I was in a bit of a bind – the code looked great, no errors no nothing, so it was time to look at the hardware/wire-level end of things. Logic analyzers (in my limited understanding) are tools/instrume...

ButtonGizmo

Hey all, As promised, here’s the second update. I would’ve posted this back then, but I needed to sort through some issues beforehand. So without further ado… A couple of weeks ago, I posted about designing a USB-based input device, which would have four buttons, and whenever any of those buttons were pressed, would emit a USB report to the host (PC) specifying which of the buttons was pressed. That was followed up with another post detailing how to configure a V-USB device as a HID. Well, I sorta mashed everything together into a single project I call…*drum rolls* …ButtonGizmo. Let it be known that I’m not known for my astounding naming abilities. Essentially, ButtonGizmo is a HID with eight buttons, which operates as described earlier. While it doesn’t exactly solve a groundbreaking problem, its designed to be a simple starting point with V-USB and HID devices using the same. To this end, I’ve decided to put the hardware design (which is just a schematic – I built it on a stripbo...

Enabling SPI1 on the Raspberry Pi B+/Zero/2/3

Image
Me hearties, Let us plunder and pil.. Sorry, wrong blog. Ahem. Hey all, Its been a while. Been busy at work as usual, and haven’t really had much time to write much. As penance, I will post not one but two updates! This particular post is in relation to Raspberry Pi users specifically. I had earlier talked about the vagaries involved in emulating SPI over GPIO in order to get an additional SPI peripheral. It was a moderately involved process, but the rewards were great With the most recent release of the Raspbian Jessie distribution (2016-05-10), a number of improvements have been made to both the desktop parts and the “under-the-hood” parts, perhaps most significantly the kernel. This new release uses Kernel version 4.4, which now adds the ability to use the second hardware SPI peripheral, SPI1, on the Raspberry Pi. This is only available to devices with the 40-pin header (as seen from the title of this post) so users of the original model A and B will probably need to turn to...