Rustic Engineering

My Mind working on…

Archive for the ‘OLED’ Category

DorkbotPDX PCB Service

with 2 comments

I send some pcb’s to DorkbotPDX PCB service and they arrives las week. See the picture above, with side by side comparison to BatchPCB board.


I really like colors and the gold finish. Se result was great!




Written by forrequi

April 8, 2012 at 13:24

Posted in OLED, pcb

New year comming… New devices… New Projects

with 9 comments

The of the year is coming, and a lot of ideas bring to my head. During this year I change my work line from Microchip PIC 18F Family MCUs (like PIC18LF2520, PIC18LF2620 and PIC18LF14K50) to PIC24F Family (PIC24FJ32GA002, PIC24FJ64GA002, PIC24FJ256GB106). It’s a lot easer work on 16bit cores. My list of benefits:

  • More portable code;
  • Better  code optimization;
  • Free compiler, without restrictions;
  • PIC24F Family is pin compatible with other family devices, so if you need more flash only you need is change the MCU;

2010 was the year of Arduino for most hobbyists. I’ve to confess that I don’t like much Arduino, but I’ve some Arduino’s and some shields too. I don’t understand very well what happens, but I’m not very comfortably with libraries. I think that is because Arduino try to be “much” friendly to non-electronic people. That’s “friendly” you can see on libraries: SD card access, OLED access, RFID access, all stuf very very very easy and directly, but don’t made by you. I don’t like to “rediscover the wheel”, but I like some control about what happen.

But even with this opinion, I’ve a project with Arduino for next year.

In this week I receive a lot of new devices, like:

  • new OLEDs (SSD1339 controller, very smart, with graphic accelerated functions);
  • new TFT LCDs (SSD1289 controller, not so smart);
  • new 16bits MCUs (PIC24HJ64GP502, PIC24HJ128GP502 and PIC24FJ64GA102);
  • new 32bits MCUS (ARM STM32);

I’ve doing great goals in this projects, but all of them still very young yet. But see the photos above and conclude that they are very nice:

TFT LCD SSD1289 Controller - some problems with pixel functions yet.

128x128 OLED Board from SparkFun (with SSD1339 Controller) - 65k colors ok, but 262k colors tsc tsc... little bit hard...

MicroStick from Microchip - Learning PIC24H MCUs next year


Written by forrequi

December 23, 2010 at 19:50

Posted in electronic, LCD, OLED, personal

OLED Display (SH1101A) and DS18B20 (with C18 example code for download)

with 12 comments

For who need SH1101A OLED driver, I’m posting here my code (written in Microchip C18, but easly to port to other platform) to help more people on get use this great OLED display. It’s not finished, yet, but it’s very useful.

Demo code running


The code has geometric draw functions to draw single pixel, lines, rectangles and circles with fill option. There’s  characters output functions too, with 8×6 pixel font.

The icons for Battery (animated), Bluetooth, WiFi, Sound (animated), etc are on the code too.

Some example of available functions are:

  • SetPixel(), GetPixel();
  • Line();
  • Bar();
  • Character output functions, PutROMString(), PutString();
  • PutImage();

In the code you’ll find a DS18B20 Dallas OneWire Digital Temperature sensor driver too. That’s a limited version (only work for one sensor in OneWire bus) but works great. You get a float reading plus a string with temperature value (in Celsius Degrees). More improvements coming soon.

Well, let’s go to download link:

DS18B20 with 12bit resolution!

If you have any trouble with that code, email-me or let me a comment.

Written by forrequi

November 26, 2010 at 01:03

Hand Soldering OLED – video

with 5 comments

Hi friends.

Some people ask me about how to do hand soldering on smaller parts, like on my OLED Display Board. It uses a “TAB” (tape automated bonding) or “COF” (chip on flex) style flex tail mated with a “COG” (chip on glass) display. Normally, TAB connector is soldered directly to corresponding pads on your PCB using a hot-bar soldering machine.

I don’t have that hot-bar soldering machine, so my hand’s can make the job. The first time I’ve done this soldering, I was a bit scare about damage the connector. My only tip is “don’t spend much time over the fragile contacts.

For help us, I’ve recorded my last OLED soldering. Maybe can help some people about SMD soldering (as some internet videos help me some years ago).

On YouTube:



Written by forrequi

November 11, 2010 at 16:55

Posted in electronic, LCD, OLED, pcb, projects

Tagged with , , , , , ,

OLED 0.96″ Breakout Board (SH1101A Driver)

with 19 comments

Some mounts ago I’ve bought a PIC24F Starter Kit. It’s a very nice development kit from Microchip for who wants know about USB OTG, Capacitive Touch Sensor and more. But I really like is the OLED display it comes.

The OLED is very small but with a good resolution (128×64 pixel). It’s monochrome black and white and, believe or not, very bright but without backlight! Well, I’m very impressed and obviously imagine what I can do if I have a small OLED like that.

So I’ve started to find the manufacture of OLED. I find some information at Microchip driver code and with some Google research:

  • It’s use a Sino Wealth SH1101A controller;
  • Parallel  or SPI interface. Very nice feature for a display;
  • The controller logics operates with 2.4V – 3.5V, but OLED requires 7.0V – 16V. It’s have a internal simple DC/DC Booster for that;
  • The display is constructed with COG  (Chip-On-Glass) technology;
  • There’s a version where 128×16 pixels being yellow OLED, and 128×48 pixels as blue OLED;
  • Crystalfontz sells this Yellow/Blue with code CFAL12864N-A-B1;
  • Univision has the Black/White and Yellow/Blue version;

After that, I’ve started design a board to this OLED. Oh, if you don’t know what OLED means visit Wikipedia page.  My design concentrates in a breadboard friendly board. The circuit is little variation of the circuit founded in Microchip PIC24F Starter Kit schematics. I’ve substituted some components for more flat and foundable items. Basically I change the inductor, the N-Channel MOSFET and the diode. You can see the design bellow:

Eagle cad board

Design goods:

  • 0.1″ pin space and breadboard friendly;
  • It comes with SPI interface preseted. If you want use 8080 parallel interface, simply pull-up “P/S” pin;
  • Very flat design with only SMD parts;
  • Clear pin identification;
  • Small size (don’t increase OLED size too much);
  • Can be hand soldered (whitout hot-bar or even hot-air station);

That’s my board finished:

My board and OLED

Circuit and solder

First test...

Breadboard friendly

Low profile

I really like this board because it’s work at first time, and it’s not so common in electronics word with your first board design. After some tests, I’ve learning some useful information about the OLED displays in general:

Most of OLED displays have SPI interface. But most of them don’t let you read the display RAM data with SPI interface, because it’s a SPI 3-Wire interface. When you cannot read  display RAM, should be impossible make functions that read display RAM and alter only one pixel (for example). So, some simple functions (like line creation) became very complex if you like to use it without modify some graphics already displayed. Example: if you have a picture and draw a line, you will change some blocks of RAM, don’t only the line pixels. I’m working on that problem.

If you like this board, email-me at I’ve five empty boards and five OLED yet.


Written by forrequi

May 10, 2010 at 16:33

Posted in electronic, engineering, LCD, OLED, pcb, projects

Tagged with , , , ,