Posts

Showing posts with the label Programming

An Actually Good Autocross Timing App (and it's free!) - AutoX Live

Image
An Actually Good Autocross Timing App (and it's free!) - AutoX Live TLDR: go download app  autox.romangarms.com , it's on TestFlight. My AutoX app running on an iPhone!      I'm big into racing cars, as I'm sure will surprise no one (see the  Garage tab on my website ), but I've always been disappointed with the ability to compare your lap times with friends at the event. At the Golden Gate Lotus Club events, they've got a website updated in real time, but it's just a massive spreadsheet that sends you to the top every time it refreshes.     Worse, the app I use in Washington for the Evergreen Speedway Autocross has a $1.50/month subscription required to use the app! It's pretty cheap, but I've paid that price for at least 10 different events now.     Mind you, all of the actual timing data is publicly accessible for free... The Feature Set     The obvious thing is make a free app. But beyond that, there's a lot of other changes I w...

Concepts File Viewer - Web App

Image
Viewing Concepts Files in Your Browser  The app is usable here:  https://romangarms.com/Concepts-File-Viewer/  Concepts Drawings on Your iPad  A very basic user interface I've always disliked taking notes with physical notebooks and pencils and pens. I really benefit from having my notes be super organized, but that would require carrying multiple notebooks (one for each class) and multiple drawing utensils in order to color code and organize my notes. When COVID hit in 2020 and school became online, I used this as an opportunity to change my note-taking style. I was no longer required to use physical notebooks, or organize my notes a certain way, or whatever other criteria a teacher might have. I downloaded Concepts, since the app looked appealing enough, and everything I needed could be done in a single payment, as opposed to subscription. One Thing at a Time  Fast-forward a few years, and I'm using this app more than ever. Taking notes on a computer or iPad i...

OP-Z Sample Manager - Software to make the OP-Z Usable

Image
The OP-Z Sample Manager App  The app is available to download here on GitHub:  https://github.com/romangarms/OPZ-Sample-Manager . To read more about the development of the app, and what the Teenage Engineering OP-Z even is, keep reading below. Teenage Engineering - The Flagship OP-1  As a long time enthusiast of Teenage Engineering and their slightly odd synthesizers, I've always wanted their flagship OP-1. The OP-1 is a standalone synthesizer and groove box, capable of making entire songs, no computer required. It has a bright OLED display with whimsical graphics, creative sequencers ( including the Tombola I recreated as an OP-Z videopak ), and plenty of other fascinating features. In early 2020, having been making music with a friend for years, I decided it would be fun to purchase my first synth, and started looking at the prices. A new OP-1 would run you upwards of $1200, and even used they were $800+. As a freshman in high school, I simply did not have the budget fo...

Programming a Forza-Horizon-Style Map Tracker - WhereHaveIBeen

Image
WhereHaveIBeen  WhereHaveIBeen is a web app I've been developing over the past several months. I've always been interested in exploring new parts of my city or state I haven't seen, but it's hard to do that if I can't figure out where I've been! One of my favorite games of all time, Forza Horizon implemented a solution to this in a cool way. It's a driving game that involves a map that starts greyed out. As you drive each of the roads in the game, each road gets filled in with color, and a little progression calculation is done to tell you what percentage of the roads you've driven on so far. WhereHaveIBeen is one part of a several part project to track all of the roads I've driven. Before I can begin explaining the parts I made, let me explain the tools I'm using. OwnTracks is a GPS tracking service for iPhone and Android. The phone app basically works like Apple's FindMy. You can see where you are, where your friends are, that's it. The...

Making a Playstation 3 Game in 2024 - PS3 Unity SDK

Image
The Playstation 3  The Sony Playstation 3 is a game console that released in 2006, and had its last disc release in 2020. I think 2024 is the perfect time to come back to making games for it. Let me introduce the game I'll be bringing over to the PS3, Ultimate Tic Tac Toe. Ultimate Tic Tac Toe - Windows, Mac, iOS, Android Ultimate Tic Tac Toe ( which I've previously written about here ) is a Unity game that my friend ( who can be found on GitHub at AlteredNode ) built around 2 years ago. It's a pretty simple game, it's tic tac toe, but each square of the main board is a smaller tic tac toe game. Depending on where you play in the small grid, your opponent will be locked to that same square of the main grid. It can be a little complicated to explain in text, but the game is playable in your browser if you'd like to see it in action. When my friend was putting together the code for the game, I was adding small bonus features to it. I swapped out all the PNG textures ...

Hacking My Mazda Infotainment - MZD-AIO and CASDK

Image
How Does the 2014-2019 Mazda Connect Infotainment Work?  The infotainment system in my 2015 Mazda 3 is incredibly strange. The entire infotainment "operating system" that you see is nothing more than the Opera web browser showing regular old HTML, JS, and CSS web pages. As strange as this solution is, this offers amazing possibilities that most other car infotainment systems don't allow for. Unlike my old Audi running QNX or something equally strange, the Mazda runs a regular version of Linux with a very normal web browser. In fact, it has become even easier to work with in recent year, due to the abundance of Arm-based phones and laptops, just like the Arm CPU in the Mazda Infotainment.  The infotainment system was made by a company called Johnson Controls International, or JCI rather than being made in-house by Mazda. JCI left a lot of development and debugging features even in the final versions of the OS that went out to consumer cars. A Brief History of Hacking the M...

Doom on a Drone Controller

Image
Back in 2018  I bought a terrible drone manufactured by GoPro, called the "GoPro Karma." The idea behind it was really clever, a drone that worked with the GoPro ecosystem you have already been purchasing from over the years. Slap a camera you already own into a drone, fly it, and when you get back, you can remove the gimbal from the drone and use it handheld.  Truly a good idea, but it felt a little hacked together on the software side. The GoPro didn't always want to enter the drone mode, the controller refused to connect to Google WiFi networks, etc. My favorite part, is the controller actually runs Android, and the software for controlling the drone is just an Android launcher and app.  What I Did In 2021, 3 years after the GoPro Karma was discontinued, a youtuber found out you could install a different version of Android to the controller . There was a hidden recovery/reflash mode on the controller, accessible via a button combination, and with a custom driver on the...

The Nautilus - A Group Project

Image
The Game  The Nautilus is a game a friend of mine, Eden (found here on GitHub), started back over a year ago. It's gone through many revisions, eventually winding up as a web-based game that involves controlling a spaceship, navigating obstacles, and avoiding enemies.  Features Contains custom audio, perfectly looping music and background sounds, visual effects, a momentum storing and releasing mechanic, and more. Playable with WASD for movement, and the space bar to store, then subsequently release your momentum later for ultimate speed control.  The Project The source code can be found on GtiHub here , and is playable at the following link:  https://eden-annora.github.io/TheNautilus/ . Have fun! Please star the project, and report issues if you find some. Note that the game is early in development, so there will be some bugs.

Ultimate Tic Tac Toe - A Group Project

Image
The Game  Making It By now,  I'm certain you're aware of how to play tic tac toe. But what if, every single one of those 9 squares, was another tic tac toe game? Also, depending on where you last played, you can only play in that same square in the big full-size game. This is a project my friend (found on github at AlteredNode ) was working on, that I got involved in. Together, we built a game that was simple enough to make, but entertaining enough to keep a group focused for a while. We ported it to Windows, Mac,  Android, and iOS, though it is not in any of the app stores yet. It still has to be sideloaded for now.  The Project You can find the source code for the Unity project here , the XCode project for porting to iOS here , and download the game here . Play the Game Play it fullscreen here .

Videopaks for the OP-Z

Image
Background In 2020, slightly before the pandemic, I purchased a small synthesizer called the OP-Z, manufactured by Teenage Engineering . It's little gray rectangle, about the size of a tv remote, with full synthesizer and sampler capabilities. It's a very nice, capable little device, but it lacks a screen, or any kind of display save for a bunch of RGB LEDS inside most of the buttons. Now, no display whatsoever is a little tricky on such a complicated device, so the solution to this was to use your phone or tablet as a display to show what's going on inside the synthesizer. The best part, is the app allows you to create your own visuals to sync up with your music. What I Made I'm not the best artist out there, so I looked for how to make a tool rather than just art with this platform called "Videolab." I wound up creating two different tools. The first one was a spinning drum, where each note you play on the synthesizer would create a ball, playing a sound eac...

Raspberry Pi Spotify Status - The Sequel

Image
Background  Around a year ago, I set up a Raspberry Pi with a screen to show my Spotify status using a project on Github called " Nowify ." While this is an excellent project and worked well for most of my needs, I simply did not know how it was set up, as I was modifying someone else's project rather than just making my own. While possible, it became quite tricky to look through the project and add features according to my needs (automatic screen on/off, fixed scaling at small screen sizes, etc.) because I simply had no idea how the project had been put together. CS50 Over summer break and into the school year, I had been taking Harvard's free CS50 course, learning C, Python, and eventually HTML and CSS. For the final project for the course, I took a crack at recreating my favorite parts of Nowify, but with a few modifications to fit my needs. I was using my new knowledge of web app development, and hosting Python web apps with Flask, and got a rough demo together pr...

Raspberry Pi Spotify Display - Auto Screen Control!

Image
Project continues here:  https://blog.romangarms.com/2023/03/raspberry-pi-spotify-status-sequel.html What's new? A minor update, but now the Nowify Spotify display can turn on and off the Raspberry Pi's screen! The Java webserver ( GitHub link here ) can now get requests directly from my tweaked version of Nowify ( GitHub link here ).  How does it work? The webserver (hosted on the Raspberry Pi itself) looks for pings on either "localhost:9000/TurnOnScreen" or "localhost:9000/TurnOffScreen" to then send a vcgencmd command to turn the display on or off. My version of Nowify sends an HTTP get request to the "TurnOnScreen" URL when music begins playing, and sends a different HTTP request to the "TurnOffScreen" URL when music stops. Very basic, but it works quite nicely. Next Steps I'd like to prevent the TurnOffScreen request from being instant. I still have a "no music is currently playing" page, I don't want it to entirel...

Raspberry Pi Spotify Display - Nowify, Homebridge, and More!

Image
Project continues here: https://blog.romangarms.com/2022/06/raspberry-pi-spotify-display-auto.html Setup A while ago, I set up a Raspberry Pi 3B and cheap touchscreen display to show the song I'm currently listening to on Spotify. I did this by installing Raspbian, and then running Jon Ashcroft's Nowify  on the display, albeit with some slight modifications. I customized a couple of things. One, the "no music is currently playing" screen is now black, and less attention-grabby. Secondly, the font size got bumped up a little (a requirement for this tiny 7" screen, but still not enough!).  I also added one other helpful feature, though this one isn't a part of the Nowify site. I added integration with Apple Homekit through  Homebridge , which allows me to remotely turn on and off the display from my phone. Hitting buttons on my phone sends a signal to my computer hosting the Homebridge server, which sends a command over SSH to the Raspberry Pi to enable or disa...