Hack OLED AXE133Y to upgrade 18M2 to a 20X2 PICAXE

mrburnette

Senior Member
20120210: Continued here: http://www.picaxeforum.co.uk/entry.php?63-AXE133Y-Evolution-with-20X2-for-Display-12-hour-Clock-amp-Temperature

Update: 20X2 raw port successful 01-14-2012

View attachment 10104
View attachment 10085

I am getting attached to the AXE133Y OLED module having moved from using the module as designed for serial input, to hacking around with the internal display code, to adding line buffers and advanced spooling routines, and now to changing out the 18M2 for a 20X2.

I made only a few lines of changes to use the 20X2 on a homemade carrier board constructed from an old predrilled PC project board... (of course, you must change the PICAXE model declaration, too!)

Code:
; old
symbol Temperature= C.2 ; ADC junction of 10K & 10K thermistor
symbol enable     = C.6    ; LCD enable
ReadADC Temperature, ADVal


; additions and changes
; symbol Temperature= C.2 ; ADC junction of 10K & 10K thermistor
symbol enable     = C.5    ; LCD enable
;added
let adcsetup = 00000100000000
; changed
ReadADC 8, ADVal    ; ADC channel 8
Notes:
- On the 20X2, pin C.6 is an Input Only pin
- Compiler cannot handle SYMBOL definitions for 20X2 ADC

All the "old" code is as available here for the 18M2:
http://www.picaxeforum.co.uk/entry.php?39-IR-set-18M2-clock-implemented-into-AXE133Y-OLED-display

Disclaimer: The code initializes, displays the 'not set' message and provides the 2 display lines to inform the user that they need to set the clock and to use the TV remote control. I have not moved the clock circuit or the IR circuit over to the new 20X2 board, so some future modifications may be in order.

Why: Well, because I can and because I want to play around with scratch memory and possibly background receive. Plus, I wanted some more breathing room for code.

A full set of picture are here: http://flic.kr/s/aHsjxoyd98

As I move more hardware onto the new daughter board, I will upgrade the code and post resolution to issues.

- Ray
 

Attachments

Top