DIY-mini-PCB-based-handheld-retro-game-console

image

Hello friends in this post we’ll se how easily we can build a Attiny based mini game console.

In this mini game console you can play some retro games, which is obviously not very high tech but yes you get a good experience of making your own game console.

So in post I’ll tell you in detail how to can build you game console what components you need and how to program Attiny 85 microcontroller.

Components required for Attiny based mini game console

Here is the list of component you need to build your Attiny 85 based game console.

Attiny 85 microcontroller
10K Ohm x 2
6.8K Ohm resistor x 1
1K Ohm resistor x 1
LED 5MM x 1
6mm tactile PB X 3
0.96 Oled display( gnd,vcc,scl,sda) x 1
slide switch x 1
CR2032 battery x 1
CR2032 battery holder x 1
3V Buzzer x 1

For uploading code to Attiny 85

Any arduino board ( I am using Arduino UNO)
Data cable
Some jumper wires

image

Circuit Diagram

image

PCB of mini game console from JLCPCB

Link to downlod PCB gerber file to order PCB

https://drive.google.com/file/d/1kmdUMyGZZynyx7tNjBdYXktDiOe2jRE6/view?usp=sharing

image

image

image

image

image

image

image

My first aim in this project to keep it small as much as possible so decide to go with SMD components, so that Electronics component cover minimum space on PCB

So I design PCB accordingly now I am much excited to order this PCB and I choose JLCPCB

I got my PCB in a week only though it was a international shipment, I was quite satisfied with the PCB quality,

I also ordered Stencil along with PCB and thanks to JLCPCB both of this are not much havey on my pocket they have very reasonable price.

if you are trying prototype PCB first time you can definitely go with JLCPCB.

👉 Try PCBA service of JLCPCB.com and save your time and money, get PCB ready for project, 200K+ components in library of JLCPCB.com as well as 3rd party parts to choose from. Assembly will support 10M+ parts from Digikey, mouser

👉 $27 valued New User coupons

👉 $24 SMT coupons every month

If you want to see complete process of SMD soldering, go to the link below it was very satisfying to watch

https://www.youtube.com/watch?v=iG4kTLOWU5Y&t=14s

Brief intro about Attiny 85

Attiny 85 is a tiny 8 bit Microcontroller which is high performance and low power.

Attiny 85 is 8 PIN microcontroller, most of its I/O pins are multifunctional. if you are familiar with arduino borads like NANO, UNO or MEGA, you can easily relate Attiny 85 with them.

You can program attiny 85 same as you program Arduino board using Arduino IDE.

Due to its compact size Attiny 85 is best for compact projects where you not need many IO’s and need to keep size of project as small as possible.

image

Programming Attiny 85

So its time to program Attiny 85 means we need to load the code of game which we want to play on the game console.

For this we need code for game either you have to write your own game code or you can download it from anywhere from internet.

Writing code for game on your own is not piece of cake you need a pro level of coding skills, so we are going to use ready made game code for attiny 85 microcontroller.

Thanks to Andyhighnumber he already wrote many game codes and available for free to use, you can download Attiny Arduino game code from here.

As of now we have downloaded the code for games which we need to upload in attiny microcontroller, but this is not this easy because we cannot connect attiny 85 directly to PC/Laptop we need to us Arduino borad as ISP to load code to Attiny 85.

Preparing Arduino as ISP to program Attiny

We need to get ready arduino as ISP so we have to upload ArduinoISP code to the arduino board

Simply connect your arduino board (in may case it is Arduino UNO) with laptop via data cable.

Go to the File > Examples > ArduinoISP > ArduinoISP

and upload this code to the arduino board I am using arduino UNO to load code to Attiny85 so you must have...

Read more »