Yet another geeky universal remote

This universal remote is more dedicated to SetTopBox(STB) control. The fact is that Ivan wanted to make things more energy efficient and get more comfort. In order to make things working he used a PIC32 microcontroller board as base station which would receive IR commands from remote control. He connected his monitor to STB using HDMI and wanted to power this thing on. So he made it remote controllable. Another thing he did was added a PIR sensor which would boot on STB once movement is detected. So when you sit and click turn thing on – you get almost immediate picture.

He also realized that RGB strip light in his room doesn’t need a separate remote. He made it work from same STB remote (where unused VCR/DVD/DVR are). Remote station reads command and sends IR signal to strip to turn ON/OFF or change color. Ivan claims that his solution allows saving about 61kW of energy a year. But probably most benefit here is comfort and feel of your own input into this.

QR clock now with graphical LCD

QR code is capable to carry decent amount of information so it is suitable for encoding things like time. When you look at video it seems that it is some sort of alien clock ticking (the one you saw in “Predator” movie). All you can distinct here is a tick every second. If you need to tell a time you need to take a picture and decode QR message.

Clock was build by Markus with original idea taken from LED matrix based QR clock. Clock runs on PIC32 microcontroller which decodes time signal from DCF77 receiver, then calculates QR code and displays on ST7735R graphical LCD at 30FPS. It has a nice feature programmed in. When clock is unable to read radio signal it displays time in greyscale and it gets colorful with plasma effect once it locks to DCF77 signal. I would probably add a digital time as well to the screen since QR clock is quite useless unless you are really well trained to read them on the fly :)

Sending data from ChipKIT UNO32 to Python3 via serial interface

In many projects we want to have connection to PC. In most cases a serial interface works fine. Using it we can read data, send commands or simply debug program running on chip. Embedded programmers are looking for simple way controlling serial data flow. In many cases simple terminal is enough, but if you want to add some intelligence to program, then you need something more. One of great choices is Python. It is free, multiplatform tool that enables running programs using smart scripting language. Strong community has written tons of handy modules – libraries to do various tasks. One of these modules is called pyserial which allows accessing serial ports using simple functions. Pyserial is successfully used in many great projects so why not continue using it. Things changed a bit when Python3 has been released. The problem is that all modules were written for Python2. Developers of Python 3 decided not to add backwards compatibility to ver2. So many modules stopped working in Python3. Luckily pyserial is supported in Python3.

python3_pyserial_read_from_chipkit

Tutorial from scienceprog gives a simple example on how to set up pyserial to be used with Python3.3. An example script shows how to read incoming text messages from serial line and displays on console screen. As test data there were ASCII table sent from ChipKIT UNO32. Given example could serve as starting point for new project that connect microcontrollers to PC.

Free PIC32 C++ compiler

PIC microcontrollers are great choice but there is always a problem when choosing compiler. The weak side of PIC is lack of open source C compiler. What if you aren’t doing commercial projects and down want pay a penny just for trying things out. The best choice is to use trial or limited version like CCS. Anyway there is a bit change here with PIC32 microcontrollers. Microchip has announced a free version of MPLAB XC32++ compiler with no time or code size limitations.

Compiler supports all 32-bit PIC microcontrollers for C++ or mixed C/C++ projects. Free version has no best-in-class optimization or server license, but for most hobby and even commercial projects works fine.

Next Page »