Posts

Showing posts with the label Circuit

Game Console from Raspberry Pi Pico

Image
Recently, I ordered a Raspberry Pi Pico board for a project. But as this project need more time to start, and also these days are bored, I decided to make a simple gaming console from it. First of all I have never used RP board, so I had to do some studies. After reading on internet, I realize we can program raspberry pi with either using micropython or C++. As micropython is much easier I decided to use it.  First I downloaded the micropython bootloader from internet . Then, I plugged my board to the computer and I copied the downloaded file to the board.  From here, I need " Thonny " to upload and test my python code. So I downloaded it and installed. Then I started coding Test 1 - Simple Game For this test I decided to use 128*64 OLED and GY-521 Gyro module. I'm not going to use gyroscope, but I will use the accelerometer. Here is the description of my game. There is a ball, and it is the player object. Then, there are bombs and a cup cake. Player can move according to

Building My Dream Computer

Image
  A fter a long time, I'm going to start a project. Since I was very young, I always wanted to build a computer from scratch. Once I tried to do it with AVRs, but it didn't worked. While the covid-19 pandemic I could find some information about a CPU z80, which was used early computers. z80 CPUs are still available and, other chips like SRAMs, EPROMS can still find on eBay. So I decided to build my dream computer with this z80. So, I ordered some ICs with z80 two months ago, But I received them, in this year. So, I started my project in 2021. I have little experience with AVR and PIC microcontrollers, and Arduino. But I have never used a CPU like this before. So, my first step is trying  to write some little programs with this CPU. To control Inputs, Outputs, and Memory, I decided to use an Arduino Board. z80 CPU has 8bit data bus and 16bit address bus. with the control signal pins, I need at least 30 IO pins. If I had an Arduino Mega board, I could easily control this CPU. But