Waveshare GameHat, Lora and Chip8 emulator

The place to share and discuss your Ultibo projects.
tomvdb
Posts: 1
Joined: Wed Jul 03, 2019 12:22 pm

Waveshare GameHat, Lora and Chip8 emulator

Postby tomvdb » Thu Jul 11, 2019 10:58 am

Hi All,

I've known about ultibo for a while, but only had a chance last week to start playing with it. My pascal is very rusty (haven't touched it since school). But I am enjoying it. The main reason for starting to play with ultibo was that I wanted to use the sharewave gamehat with the pi for a robotics controller. I tried using various operating systems, but between boot time and failing sd cards I figured this would be a good use for ultibo for me.
It took me a few days, but got ultibo working on my pi with gamehat. Basically first test was just to get all the buttons going and to be able to send commands via uart. That worked well and I posted some example code if anybody is interested (https://github.com/tomvdb/ultibo-wavesharegamehat). Next up was to untether the pi. Wifi or bluetooth doesn't seem to be supported yet so I decided to do a basic lora library that uses a rfm98 (connected via SPI) module to send and receive packets. The library is still a work in progress but I can send and receive basic packets over lora (https://github.com/tomvdb/ultibo-lora).

Image

Lastly I started looking at doing some graphics. I started with the framebuffer example and in the process started putting together a chip8 emulator using the framebuffer. It's slow and I need to investigate the keyboard options to get input working, but all the opcodes are supported. It currently loads a hardcoded chip8 rom file from the sd card. (https://github.com/tomvdb/ultibo-chip8emu)

Image

All these projects have lots of room for improvement as I'm learning to navigate my way around Ultibo, but I figured let me share so long in case someone wants to play along.

And that has been my past week or two with ultibo :) I love the ultibo concept and looking forward to more updates/exaples (especially around graphics and wifi/bluetooth).

My biggest gripes with Ultibo has been finding examples for things I wanted to do (the existing examples have been very helpful though)

Project Repo's:

https://github.com/tomvdb/ultibo-wavesharegamehat
https://github.com/tomvdb/ultibo-lora
https://github.com/tomvdb/ultibo-chip8emu


T
User avatar
Ultibo
Site Admin
Posts: 2308
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: Waveshare GameHat, Lora and Chip8 emulator

Postby Ultibo » Thu Jul 11, 2019 11:55 pm

tomvdb wrote:All these projects have lots of room for improvement as I'm learning to navigate my way around Ultibo, but I figured let me share so long in case someone wants to play along.

And that has been my past week or two with ultibo :) I love the ultibo concept and looking forward to more updates/exaples (especially around graphics and wifi/bluetooth).

Hi tomvdb, welcome to Ultibo.

This is very cool stuff, thanks for sharing it with us. You might of noticed there has been a lot of interest here in retro style gaming so I'm sure quite a few will be keen to explore what you have done.

We'll look forward to seeing more of what you do as Ultibo grows.

tomvdb wrote:My biggest gripes with Ultibo has been finding examples for things I wanted to do (the existing examples have been very helpful though)

And that's why it's great that you have shared your work as well, every extra example makes it a little easier for those that follow :D
Ultibo.org | Make something amazing
https://ultibo.org
Gavinmc42
Posts: 1666
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Waveshare GameHat, Lora and Chip8 emulator

Postby Gavinmc42 » Fri Jul 12, 2019 2:06 am

Wow, I'm impressed, I saw that GameHat the other day.
Never expected to see Ultibo console on it.
But it make sense now, lots of small HDMI screen are around, down to 800x480 4"
Needs some to make it downunder, might need to chat to my Pi supplier ;)

The Pi blog had the latest Wireframe no 17 with a Platform game Lemmings in it.
I thought I need to do an Ultibo version, got side tracked by doing a dual screen Battleships game using the PP4S code

If you do a search for Ble and Microbit you will find some Ultibo bluetooth code.
I don't think it has been tested with the Pi4 or the new WiFi chip firmware that now does BT5.0.
I have been using the Adafruit Arduino libs for BT on the Microbit.
Use the Microbits as BT game controllers?

Let me know if you get LoRa working I have a few of those modules.

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 87 guests