PCB (overhead view)

ArduinoBoy build

Preamble

Following on from Making your own ArduinoBoy, here is a photographic guide…

Useful links

Galley of components

All components (LEDs and header pins are missing – see below)

All components
All components

All components

2019-06-27-3862

MIDI connectors. Both PCB mounted and alternative case mounted DIN sockets

5 pin DIN sockets - MIDI (side view)
5 pin DIN sockets – MIDI (side view)

and

5 pin DIN sockets - MIDI
5 pin DIN sockets – MIDI

Game Link cable, GameLink breakout PCB from OSH Park and GBA GameLink connector

Gamelink connectors and cable
Gamelink connectors and cable

and GameLink breakout PCB from OSH Park and GBA GameLink connector

Gamelink connectors
Gamelink connectors

ICs – optocoupler and microcontroller

ICs and sockets
ICs and sockets

The ATmega328P-PU microcontroller

ATmega328 and socket
ATmega328 and socket

The 6N138 optocouple

6N138 optocouple and socket
6N138 optocouple and socket

The discrete components. 22 pF ceramic capacitors, 8 MHz crystal, 7 x 2.2 kΩ resistors and other resistors of various values (2 x 220 Ω, 1 x 270 Ω, 1 x 4.7 kΩ). Note the alternate diodes on the left (1N4148 (preferred) and 1N4001 respectively)…

Discrete components
Discrete components

The 5 mm LEDs, although 3 mm LEDs can also be used. The yellow LED is used for the status indicator on pin 13.

LEDs

Header pins

Header pins

PCB

PCB bottom

PCB bottom
PCB bottom

PCB top

PCB top
PCB top

PCB mask

PCB mask
PCB mask

Board layout

Looking at the PCB Silk screen (original image)

PCB (overhead view)
PCB (overhead view)

Assembly

This is all quite straightforward, just populate the board in the following order:

Diode

Note the orientation of the diode, with the cathode (denoted by the black stripe) to the top.

Diode 1N4148

Resistors

220

Resistor 220

270

Resistor 270

4k7

Resistor 4k7

2k2

Resistor 2k2

XTAL

XTAL

Ceramic capacitors

Caps

IC sockets

IC sockets

LEDs

Note that the LEDs have the anode (+ longer leg) nearer the center of the board, the cathode (- shorter leg) on the outside of the board518d2d78ce395f2675000000

Also, as an added check, the flat side of the LED is next to the edge of the PCB.

LEDs - flat side closeup

The yellow status LED is on the left most LED.

LED

Header pins

You don’t need all of the various colours but it helps:

  • Red – +5V
  • Black – GND
  • Blue – input
  • Yellow – output
  • Green – GameLink
  • White – Button

Headers

Optocoupler

Finished board with optocoupler.jpg

ATmega328P-PU

After uploading the code to the ATmega328P-PU, via an Arduino Uno (or whatever your preferred method is), then insert into the IC into the board:

[photo]

Finishing off – External connections

  • The white headers are connected to a push button
  • The blue headers to the input MIDI DIN
  • The yellow headers to the output MIDI DIN
  • The green headers to the GameLink connector
  • The red and black header pins to 5V and GND respectively.

MIDI IN

There is a slight confusion in Trash80’s cartoon schematic, with respect to the MIDI connectors, as the pin of the DIN connector are not labelled. It is not clear whether the MIDI connectors are depicted looking from the front or the rear of the DIN sockets and the representation is not consistent for both DIN sockets.

Looking at a more explicitly annotated photograph

midi-labeled

  • The left most blue pin header goes to pin 4 – This is connected to the cathode of the 1N4148 diode via the 220 Ω resistor.
  • The right most blue pin header goes to pin 5 – This is connected to the anode of the 1N4148 diode.

This is the opposite to that shown in Trash80’s schematic- although it is correct if you assume that you are looking at the front of the socket shown in Trash80’s schematic.

MIDI OUT

  • The middle yellow pin header goes to pin 4 – This is +V via the 220 Ω resistor.
  • The left most yellow pin header goes to pin 2 – this is ground.
  • The right most yellow pin header goes to pin 5 – this is connected to the Tx on pin 3 of the ATmega328.

Again, this is the opposite to that shown in Trash80’s schematic – although correct if you assume that you are looking at the rear of the socket shown in Trash80’s schematic.

GameLink connector

From the top,

Gamelink connector

the order of the green header pins is:

  1. BR – GND
  2. BL – SOUT
  3. TC – SIN
  4. TR – SCLK
  5. TL – +V

Using a standard GameLink PCB connector

GameLink PCB connections annotated

or using the Gameboy link from OSH Park:

GameBoy Link connections annotated

Button

Using an OMROM push button to reset

[photo]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s