Arduino Unibox

Hi all. Introducing my latest project, Arduino Unibox, inspired by Rodot's Gamebuino. But not only gamebox. Unibox is based on Pro Mini, 7-button keyboard, N-3410 LCD display, piezo speaker and Li-Pol battery in Altoids-like box. Have 12-pin connector with +Vcc, AREF, 5-analog, 4-digital and GND. First two analog inputs are connected to 3,5mm jack too (connect analog potentiometers, for example). Battery is charged from miniUSB charger. In next version i planned to use Arduino Nano instead Pro Mini, for easier programming.
Unlike Gamebuino, Unibox using only one pin for direction buttons (analog keyboard). Other keys are digital. I needed some free input/output pins for any measuring (using Unibox as oscilloscope, logic probe, c-meter etc...).

Some photos here: Arduino Unibox – Jaromír Zapletal – album na Rajčeti

Schematic will be later.

Here is schematic. And pinout:

Arduino ProMini

0 - TX
1 - RX
2 - to I/O connector
3 - to I/O connector
4 - to I/O connector
5 - to I/O connector
6 - BTN_A
7 - BTN_B
8 - BTN_C
9 - Piezo Speaker
10 - D/C
11 - SDIN
12 - RES
13 - SCLK

A0 - to I/O connector and analogpad jack
A1 - to I/O connector and analogpad jack
A2 - to I/O connector
A3 - to I/O connector
A4 - I2C SDA (not connected)
A5 - I2C SCL (not connected)
A6 - to I/O connector
A7 - Analog Keyset

serial:
1-GND
2-GND
3-Vcc
4-RX
5-TX
6-DTR


Analog Keyset values on A7:

Up - 205
Down - 510
Left - 314
Right - 128

UpRg - 290
UpLt - 420
DownRg- 545
DownLt- 604

UpDn - 568
LeftRg - 379

UpLtRg - 467
UpDnRg - 595
LeftRgDn- 627
UpDnLt - 643

All - 663


I/O connector:

1 - Vcc (+3,7V from Li-Pol battery)
2 - AREF (direct from pin20 ATMEGA328)
3 - A0
4 - A1
5 - A2
6 - A3
7 - A6
8 - D2
9 - D3
10 -D4
11 - D5
12 - GND


AnalogPad connectors: (3.5mm jack)

1(tip) - Vcc
2(ring) - A0 (A1)
3(base) - GND

Awesome! Any pictures/video/demonstration?

Pictures are on the posted site - but I am wondering about the code?

Here is some code :slight_smile:

(where alt_basic is only "template" for programming other apps)

unibox_examples.zip (39.1 KB)