Skip navigation.
Tech for Linux Users
Welcome to warped logic. This site aims to help those electronics hobbyists whom wish to use the Linux operating system in computer interfacing projects, electronic circuit development and microcontroller programming.

My backup solution

One of the things that has concerned me for a number of years is the fact that I am storing more and more important stuff on my PCs, electronic documents, source code and data files for home projects and a growing collection of videos and photos of my daughter (as well as those of my wife and I prior to her entering our lives). I need a good backup solution more now than ever.

PI2COM: Serial and I2C Board for the Raspberry Pi

I finally succumbed and bought a Raspberry Pi. I'd been holding out for quite a while, I had a ARM based NAS box (NAS4220) that I had bought a few years back with the intention of learning a bit more about Linux on ARM and as that was the only real reason I could think of for buying it, I didn't feel the need. A need did however finally present it's self, I wanted a small device to use to do some simple temperature logging. The Pi with a custom expansion board seemed like a fun way to get there and I could have fun doing some hardware development along the way with my etch tank. The requirements would be (fairly) simple:

  • An I2C temperature sensor.
  • An I2C battery backed Real Time Clock (to make logging data worthwhile, the Pi lacks a proper RTC).
  • A transceiver for the serial port (not strictly needed for the scenario in mind, but would make the expansion board more useful).

5.1 Surrond Sound, Via VT1618 and Linux

The Via VT1618 audio codec is used in a number of Via chipsets, including the VT8237, as found on the Via EPIA EN15000G and EN12000EG motherboards. These motherboards provide 3 audio jacks as part of the back panel I/O, Line-out, Line-in and Mic-in, however the Line-in and Mic-in connectors can also be switched in software to act as outputs, providing Rear (left and right), Center and LFE (subwoofer) channels. This seems to be marketed by Via as "Smart 5. Support" and seems to be an implementation of the "Universal Audio Jack" (UAJ). This makes it possible to drive a 5.1 surround sound system with out the need for an external decoder driven from a digital audio connection.

SDCC library for controlling a 16x2 LCD display from a PIC.

So, you have a small LCD character display, with a Hitachi HD44780 compatible controller and a PIC. You want to control the LCD display from the PIC. There seems to be quite a bit of sample code on the web, however, it seems to either have been written or an alternative microcontroller or in assembly. Well, here's a very basic library for writing to the controller from SDCC.

Using PicStart Plus under Linux

Microcontroller development under Linux at times is still a little problematic. Many applications exist to enable compiling of C, assembly language and for programming many different microcontrollers. Here we will consider how to program Microchip's PIC family of microcontrollers.

Installing and using SDCC on Linux

SDCC, the Small Device C Compiler, is an open source C compiler for a number of microcontrollers and small platforms. This document describes how to get SDCC installed and working under Linux, provides an example code and a description of how to compile it for the 16f877, 16f84 and 18f252.

Syndicate content