Archive for the ‘Coding’ Category.

Turn Your Android Phone into a Wireless Touchpad

In this blog post, I will show you a simple way of turning your Android phone into a wireless touchpad. For this to work all you need is your Android phone, an Arduino board and a HC-06 (or HC-05) bluetooth module based on BC417. A short demonstration video is included towards the end of the post. Continue reading ‘Turn Your Android Phone into a Wireless Touchpad’ »

MCP3903 Library

MCP3903 is a six channel Delta-Sigma A/D converter. It features six synchronous sampling differential channels which can be programmed to sample between 16 bit and 24 bit accuracy, the gain for each channel can also be programmatically set from 1 up to 32. It also has an internal low tempco (5ppm/°C) voltage reference, making MCP3903 an excellent choice for digitizing small differential signals from various sensors. Continue reading ‘MCP3903 Library’ »

Arduino Library For LTC4151

LTC4151 is a high voltage I2C current and voltage monitor. It is capable of monitoring input voltage ranging from 7V to 80V with the onboard 12-bit ADC. It can also measure the high side current and an additional external voltage with the same 12-bit ADC resolution. Besides LTC4151, LTC4151-1 and LTC4151-2 have split SDA (SDAO and SDAI) for interfacing with Opto-Isolators. Continue reading ‘Arduino Library For LTC4151’ »

“Program Will Not Fit Into Available Memory” Error In CCS

I upgraded my Code Composer Studio (CCS) to 5.2.1 a few days ago. An interesting thing I found out was that while building existing Lauchpad projects, I was receiving a “program will not fit into available memory” error: Continue reading ‘“Program Will Not Fit Into Available Memory” Error In CCS’ »

Hex/Bin/Dec Converter And Calculator — Updated

Based on some user feedback, I have updated the Hex/Bin/Dec converter and calculator I created a couple of years ago. Added features include shortcut to clear all fields and additional calculations besides bits manipulations. Continue reading ‘Hex/Bin/Dec Converter And Calculator — Updated’ »

MCP2210 Library Reference

I have created a dedicated page for the MCP2210 library documentations. An link to the reference can also be found on the side navigation pane. The Doxygen generated project documentation can be viewed directly here. Continue reading ‘MCP2210 Library Reference’ »

MCP2210 Library — MCP3204 SPI ADC

During the past few weeks, I have shown many examples (see 1, 2, 3, 4) of using the open source MCP2210 Library with SPI devices under Linux. In this post, I will conclude this series with one more example: interfacing MCP3204 with MCP2210. With this example, I will have covered all the devices included on the evaluation board, which represents most of the scenarios you will run into. Other SPI devices can be controlled similarly using the methods illustrated in this series. Continue reading ‘MCP2210 Library — MCP3204 SPI ADC’ »

MCP2210 Library — SPI EEPROM

So far, I have shown examples of using the open source MCP2210 library with MCP2210 GPIO, MCP23S08 and TC77 temperature sensor. In this post, I will show an example of interfacing the chip with an SPI EEPROM using the library. Continue reading ‘MCP2210 Library — SPI EEPROM’ »

MCP2210 Library — SPI Example Using TC77

A couple of weeks ago, I showed an example of using the open source MCP2210 Library I created earlier to communicate with the MCP23S08 port expander under Linux. In this post, I will provide another example of using the library with the TC77 temperature sensor included on the MCP2210 evaluation board. Continue reading ‘MCP2210 Library — SPI Example Using TC77’ »

MCP2210 Library — SPI Example Using MCP23S08

I made a few minor tweaks to the open source MCP2210 library during the past few days, and had also updated the documentation. In my previous post, I illustrated how to manipulate the GPIO pins using this library and today I will show you an example of communicating with a MCP23S08 8 bit IO port expander using SPI. Continue reading ‘MCP2210 Library — SPI Example Using MCP23S08’ »

MCP2210 Library

After a couple of weeks’ coding and testing, I finally finished the initial version of the MCP2210 C++ library for Linux. This library utilizes functions from Signal 11‘s HID API (hidraw) to communicate over the USB HID interface. Continue reading ‘MCP2210 Library’ »

COMException (0x80072020)

This post is programming related and has nothing to do with electronics. I have not written anything programming related topics lately, but this one is worth sharing as it is related to an rather obscure error. Continue reading ‘COMException (0x80072020)’ »

Makefile for Arduino 1.0

A while back, I created an Arduino plugin for NetBeans so that I could use the full-fledged NetBeans IDE for all my Arduino projects. The approach I took was using the NetBeans project sample module method. Under the hood though, it is nothing more than a makefile and an source file template. Continue reading ‘Makefile for Arduino 1.0’ »

Simple Alexa Ranking Script

Alexa is a great tool for gathering your website’s statistics. Using its traffic rank moving average, you can see how your content affects your site’s popularity over time. Continue reading ‘Simple Alexa Ranking Script’ »

Interfacing DS28EC20 with Arduino

DS28EC20 is a 20Kb 1-Wire EEPROM chip from Maxim. Like all other 1-wire devices, only a single pin is needed for both power and communication. In this blog posting, I will show you how to how to communicate with DS28EC20 using the popular Arduino platform. Continue reading ‘Interfacing DS28EC20 with Arduino’ »