Category Archives: Uncategorized

Drawing a bounding box over an image with C#/.net and WinForms

Most of the info in this post can be found between the following two links: http://stackoverflow.com/questions/2065162/filled-rubber-band-in-winforms-application https://msdn.microsoft.com/en-us/library/3t7htc9c(v=vs.110).aspx Drawing a bounding box over an image to select a region took me longer to figure out than I expected. Here’s a brief bare-bones … Continue reading

Posted in Uncategorized | Leave a comment

Control a power strip with an Arduino

I’m running some tests at the office that require cycling the power to a device. After spending a few days doing this manually by flipping the switch on a power strip, I started searching for a better way. Some Googling … Continue reading

Posted in Uncategorized | 1 Comment

ADXL335 Accelerometer on an Arduino

I picked up an ADXL335 accelerometer in a packaging designed to fit onto a solder-less breadboard so that I could interface it to my Arduino. I had a few time-consuming problems interfacing with it because I’m not used to reading chip … Continue reading

Posted in Uncategorized | Tagged | 24 Comments

C# Struct Sizes

I’ve been banging my head against trying to get C# to talk to a .dll written in straight C for the past few days. I finally got a grip on passing basic data types, and pointers to basic data types, … Continue reading

Posted in Uncategorized | Leave a comment