CircuitGizmos

Electronic Products for Creative Minds

  • Home
  • Gizmo Store/Products
  • Documentation/Datasheets
  • Projects/Libraries
  • GizmoBlog
  • Services/Contact
    • Design
    • Contact Gizmo!
  • Your Gizmo Cart
    • Your Account

January 15, 2019 by robert Leave a Comment

Re-energizing the ColorMax, Pt. 2

Re-energizing the ColorMax, Pt. 2

Adding a relay interface shield to the ColorMax

In part 1 it was mentioned that the ColorMax is a great (modern design) retrocomputer for interfacing to the real world. Using the Arduino Shield area on top of the ColorMax, it is easy to interface to a relay module shield. 

Relay Shields

Pictured are two relay shields that I pulled from my collection. They both control 4 relays and they both use the same lines to do so. I had really hoped that they would use different lines so that I could stack them and control 8 (or even 16) relays total. It would have been great if the design of the relay board could have included some option to select other control lines.

The front board uses “D4 through D7” (Arduino nomenclature) to turn the relays on and off. Translating to the ColorMax pin numbers, the control lines are 25, 26, 27, and 28. The “translation” from Arduino numbering to ColorMax numbering is here:  https://circuitgizmos.com/documentation/hardware-datasheets/cgcolormax2-technical-information/cgcolormax2-pin-outs-and-functions/

ColorMax board, bare naked.

So here is my setup for this article. A VGA monitor and a small PS2 keyboard attached to a ColorMax (on an anti-static platform). The Arduino Shield footprint on the ColorMax is populated with headers to accept the Relay Shield. The ColorMax is powered by a 12V supply and connected to a PC via USB.

One Relay Shield in place

With the ColorMax bare naked, the relay board is installed onto the headers. That leaves the relay board ready for control by BASIC.

The simplest way to check out the operation of the relays is to use the immediate mode of basic (and the VGA display with PS2 keyboard) to set the control line direction to output and then write a 1 to turn the relay on and 0 to turn it off. At the basic prompt on the VGA display the first relay (pin 25) can be set to output with this command:

1
SETPIN 25,8

The relay turned on with:

1
PIN(25) = 1

And turned off with:

1
PIN(25) = 0

Next blog: PC control.

Filed Under: Uncategorized Tagged With: Arduino, BASIC, ColorMax, relay, Shield

January 15, 2019 by robert Leave a Comment

Re-energizing the ColorMax, Pt. 1

Here on CircuitGizmos one of the popular products is the CGCOLORMAX2, or as we call it the ColorMax. The ColorMax is a VGA color-output retro computer that is a lot like a 1980’s home computer (TRS80, C64, etc) running on modern hardware.

The CGCOLORMAX2 – ColorMax

The ColorMax is based on (and compatible with) Geoff Grahm’s Color Maximite design. This retro computer is very similar to the computers that sold in great number in the 80s. The ColorMax powers up to a BASIC prompt, much like those earlier machines. The BASIC is much more advanced, however. The ColorMax’s BASIC doesn’t require line numbers. It is closely compatible with MSBASIC, but has a lot of extensions. BASIC (4.5) runs at about 30,000 lines per second.

ColorMax graphics

The ColorMax can be plugged into a VGA monitor (8 colors at 480×432 pixels) and a PS2 keyboard. The ColorMax has an SD card slot for up to 32G of program and data storage. The 32 bit processor takes care of the video and SD card interfacing. The VGA output can display graphics or 33 lines by 80 characters of text, or a combination of the two. Graphics support in BASIC includes pixel, line, rectangle, and circle commands. Custom fonts, BLITs, SPRITEs, and BMP files are also supported. As an alternative to VGA, monochrome composite video (in PAL or NTSC) is supported.

I/O lines

More than just a fast and capable retrocomputer, the ColorMax supports a serious number of ways to interface to the real world. A dual-row connector on the back of the board has 20 lines that support digital i/o, analog input, frequency, period, and counting. 20 additional lines are arranged in an area centered on the top of the board in a pattern compatible with the use of Arduino Shields. Analog output and even sound can be achieved by the use of the two PWM outputs.

CGCOLORMAX2 Interface Circuits

A number of communications protocols are implemented. These include I2C, serial (RS232 and RS485 with a suitable driver chip), SPI, 1-Wire and CAN (with suitable driver). The ColorMax has an area on board where the support/driver chips can be installed.

ColorMax Control Tool

The ColorMax can operate as a stand-alone retrocomputer, or can be linked to a PC (via USB) for development. The time-keeping facility of the on-board BASIC is augmented by the battery-backed-up Real Time Clock.

Here is a “moonlander” example video
CGCOLORMAX2 Technical Information
ColorMax technical information at this link.

Here is a link to the language manual:
https://circuitgizmos.com/documentation/mmbasic-language/

Next blog: Relay control.

Filed Under: Uncategorized Tagged With: Arduino, BASIC, ColorMax, Maximite, Shield

A Ton of Documentation

Open all | Close all

Projects made by Gizmo, Friends, and Members

open all | close all

Recent GizmoBlog Musings

  • Altair 8800 using a ColorMax!
  • Re-energizing the ColorMax, Pt. 3

Visit us!

  • Facebook

Electronic Products for Creative Minds

CircuitGizmos is your source for electronic products that help you create your embedded projects. Here at CircuitGizmos.com you will find a friendly store filled with creative products and all of the documentation that you need to use these gizmos.

We create devices that we believe make electronics fun, but we also know that our products are used for professional designs. For decades we have designed products for commercial, military, and medical industries. Our gizmos here are great for engineers and hobbyists alike.

Copyright © 2008+ CircuitGizmos, L.L.C. All rights reserved

Image already added

Recently Viewed Products

Copyright © 2021 · Generate Pro Theme on Genesis Framework · WordPress · Log in