hippy
Ex-Staff (retired)
The Winstar OLED text modules we stock have a graphics mode. They may not as useful as a true graphics display, because the pixels are segmented into 8x5 character blocks with gaps between them, but they can still display useful graphics and using them graphically allows more than eight user defined characters.
The attached code allows an AXE131Y or AXE133Y OLED display to be turned on its side and used as an analogue thermometer display. The code runs in the 18M2 on the AXE131Y or AXE133Y controller board, and only requires the addition of a DS18B20 temperature sensor. The code is tailored for the AXE133Y (8x2) but will run on an AXE133Y (16x2) unchanged. I will provide an AXE133Y tailored version later.
To test the code without a DS18B20, just uncomment one of the "#DEFINE TEST_FULL" or "#DEFINE TEST_PART" lines at the top of the code. The temperature will then move up and down every second, TEST_FULL covers 0C to 37C, TEST_PART covers 9C to 31C.
"#DEFINE SHOW_BIG_C" and "#DEFINE SHOW_SMALL_C" determines which degree C symbol indicator should be shown if any. "#DEFINE SHOW_IDEAL" determines if the ideal temperature range should be shown as a dotted area marked on the right hand side. "#DEFINE SHOW_MIN_MAX" determines if markers for minimum and maximum temperatures should be shown as dots on the right hand side. To clear minimum and maximum markers; power cycle the unit.
The code isn't optimised for AXE131Y or AXE133Y display connections, it is coded so it can be used with any other PICAXE and wiring scheme by changing the OLED connection definitions.
I could not get a decent photo of the display so have attached an annotated artist's impression of what it looks like in operation. Click image for a better view of it -
Turned on its side, an AXE131Y seems to be the perfect size to fit to a blank 'MK wall outlet' mains panel in the UK.
The attached code allows an AXE131Y or AXE133Y OLED display to be turned on its side and used as an analogue thermometer display. The code runs in the 18M2 on the AXE131Y or AXE133Y controller board, and only requires the addition of a DS18B20 temperature sensor. The code is tailored for the AXE133Y (8x2) but will run on an AXE133Y (16x2) unchanged. I will provide an AXE133Y tailored version later.
To test the code without a DS18B20, just uncomment one of the "#DEFINE TEST_FULL" or "#DEFINE TEST_PART" lines at the top of the code. The temperature will then move up and down every second, TEST_FULL covers 0C to 37C, TEST_PART covers 9C to 31C.
"#DEFINE SHOW_BIG_C" and "#DEFINE SHOW_SMALL_C" determines which degree C symbol indicator should be shown if any. "#DEFINE SHOW_IDEAL" determines if the ideal temperature range should be shown as a dotted area marked on the right hand side. "#DEFINE SHOW_MIN_MAX" determines if markers for minimum and maximum temperatures should be shown as dots on the right hand side. To clear minimum and maximum markers; power cycle the unit.
The code isn't optimised for AXE131Y or AXE133Y display connections, it is coded so it can be used with any other PICAXE and wiring scheme by changing the OLED connection definitions.
I could not get a decent photo of the display so have attached an annotated artist's impression of what it looks like in operation. Click image for a better view of it -
Turned on its side, an AXE131Y seems to be the perfect size to fit to a blank 'MK wall outlet' mains panel in the UK.
Attachments
-
9.7 KB Views: 65