This started as a simple remote switching project. After hearing about Craig’s crossover prototype board, I thought it would be nice to be able to change caps or resistors by simply pushing a button on a remote. That’s fairly simple and I had it working just fine. That gave me another idea, but my coding skills are not great. I’m trying to use ChatGPT to help me expand this into an ABX switcher. I lost track of how many revisions it’s generated. I’ve had to remind it that the hardware is working fine, so it shouldn’t change any of that code, just the logic and text formatting on the OLED panel. I still have a few things to debug, but the basic functions seem to be working.
That sounds great Tom. Can you expand and elaborate on your project?
Esp32 board, IR receiver, sony remore for the up down A, B, X selection. Oled screen for display.
When using chatgpt to help with coding I will often tell it all of my hardware and feed it examples if possible. Then when I have basic functioning I will only “modify” code not have it rewrite the whole script. You can also use folders/tabs to make it so all the functions arent in one script.
Exactly right on the hardware side. I started with an Arduino Nano clone and that was fine for the basic A/B switcher. But ChatGPT eventually determined it didn’t have enough memory to hold all the setup & variables for the ABX tester. I had bought an ESP board by mistake some time ago and only yesterday learned they work with the Arduino IDE and have more features than I’ll need for this project. I wanted a larger OLED, so I got a 2.4” SSD1309 delivered this morning. I changed it to I2C, but I’m currently having issues getting the right library to load for that display.
Sometimes you have to tell chat GPT no. I have run some pretty intense scrips on nanos. I don’t have anything against the esp 32 boards but I like staying in the arduino, adafruite and sparkfun platforms as they have better support and consistency. Nano R4 is about $15 gives you usb c amd lots of power in a platfor that is very well suported aincluding qwiic connector. Adafruite feather series is also pretty awesome with a lot of board and wing combos.
I didn’t know about the tabs - thanks!
I think ChatGPT is asking for a library that doesn’t exist. I’ve been round & round with it trying to set up a SSD1309 display and it’s gone in circles. I think I may try the Arduino AI Assistant tomorrow night.
Some of the best Arduino tutorials / examples / projects that I have found.
Hope this helps!
I’ll check them out. Thanks!
You guys can definitely make me feel pretty dumb sometimes lol.
Both of these channels are super usefull.
Yeah, I’ve been watching DroneBot Workshop.. Thankfully he dumbs it all down to a level I can usually understand. I watched that OLED video yesterday.
