Skip to main content

Week In Review: TouCans Straight Key, ChatGPT, Tuna Salac Sender, and Halikey

 I started out the week without a straight key for TouCans. By the end of the week, I'd worked with ChatGPT to make the WiFi straight key for TouCans into something pretty cool that worked on both Windows and Chromebook. (Alsthough, Windows is one cool thing ahead at the moment, I'll get to that.)

Having decided I wasn't going to be able to get a wired straight key, i took another look at why I'd gone down the wired straight key path.

  • TouCans has had a WiFi sraight key since last year. The issue is that it didn't work with the Chromebook. It was written in Python, and it was a bit more of a chore than I wanted fix it. 
    • Linux on the Chromebook didn't want to provide keyboard access so that a key could be pressed as a straight key. 
    • It also didn't want to provide speaker access, so there was no sidetone.
I decided to do an end run and asked ChatGPT to translate the Python version of the WiFi straight key to JavaScript. ChatGPT pulled off the task so perfectly that I asked it to also histogram dit/dah timings of the key commands sent to TouCans.

I got more work done on prototyping video QSLs. We've had czml QSO maps that display in Cesium for a while. I asked ChatGPT if it was possible to do screen captures of each QSO automatically. ChatGPT dumped out code that automated the process.

On the heels of that code, I asked ChatGPT to add the abliity to create images of the dit/dah historgrams after a CW session That worked well, but it was at about this point that ChatGPT started making a few mistakes. 

The keyer works by sending the time in milliseoncds to hold the straigh tkey down and then amount of time to release it. ChatGPT took out the code that sent hte key-up times. This led to munged code and that resulted in me adding a CW replay button to the CW metronome. Sure enough, when I played back the dits and dahs, they were munged. That provided the clue to double check the key down adn key up times.

A day later, using the straight key on the Chromebook and working to make the histogram peaks as narrow as possible, TouCans was spotted on the RBN! 

there wsa one last issue. Teh straight key occasionally locked me out of the keyer altoghter. A few debug messages show ed that this only happened when the number of key down and key up delay digits exceeded 800. I learned how to loop the Pico-W's server code to ensure the entire message sent to the keyer was pulled in in 800 byte chunks. That solved the lockup issue.

The next step was to see if the WiFi keyer would work with a Halikey as opposed just using a keyboard key as a straight key. I asked ChatGPT ot translate Python code written by Mark Smith into JavaScript. ChatGPT got almost all the code correct, but left the serial port sampling code out of the sampling loop. That was a simple fix, and the WiFi keyer and metronome now work with a Halikey!

By this time, I'd passed quite a bit of code to ChatGPT for contest. ChatGPT also seemed to be making more errors as time progressed. I wonder if it was a demonstraion of somethign pointed in an article that Simon Willison reviewed:

"Every model seems to get confused when you feed them more than ~25-30k tokens. The models stop obeying their system prompts, can't correctly find/transcribe pieces of code in the context, etc." --Paul Gauthier

Meanwhile, KO6BTY and I built our QRPME tuna salad senders, (iambic keyers), following along with Rex Harper's buildathon. the imabic keyer is up and running with Halikey!

It was a busy week, but a lot of fun!





Comments

Popular posts from this blog

The Valentine's Day Magnetic Monopole

There's an assymetry to the form of the two Maxwell's equations shown in picture 1.  While the divergence of the electric field is proportional to the electric charge density at a given point, the divergence of the magnetic field is equal to zero.  This is typically explained in the following way.  While we know that electrons, the fundamental electric charge carriers exist, evidence seems to indicate that magnetic monopoles, the particles that would carry magnetic 'charge', either don't exist, or, the energies required to create them are so high that they are exceedingly rare.  That doesn't stop us from looking for them though! Keeping with the theme of Fairbank[1] and his academic progeny over the semester break, today's post is about the discovery of a magnetic monopole candidate event by one of the Fairbank's graduate students, Blas Cabrera[2].  Cabrera was utilizing a loop type of magnetic monopole detector.  Its operation is in...

Cool Math Tricks: Deriving the Divergence, (Del or Nabla) into New (Cylindrical) Coordinate Systems

Now available as a Kindle ebook for 99 cents ! Get a spiffy ebook, and fund more physics The following is a pretty lengthy procedure, but converting the divergence, (nabla, del) operator between coordinate systems comes up pretty often. While there are tables for converting between common coordinate systems , there seem to be fewer explanations of the procedure for deriving the conversion, so here goes! What do we actually want? To convert the Cartesian nabla to the nabla for another coordinate system, say… cylindrical coordinates. What we’ll need: 1. The Cartesian Nabla: 2. A set of equations relating the Cartesian coordinates to cylindrical coordinates: 3. A set of equations relating the Cartesian basis vectors to the basis vectors of the new coordinate system: How to do it: Use the chain rule for differentiation to convert the derivatives with respect to the Cartesian variables to derivatives with respect to the cylindrical variables. The chain ...

More Cowbell! Record Production using Google Forms and Charts

First, the what : This article shows how to embed a new Google Form into any web page. To demonstrate ths, a chart and form that allow blog readers to control the recording levels of each instrument in Blue Oyster Cult's "(Don't Fear) The Reaper" is used. HTML code from the Google version of the form included on this page is shown and the parts that need to be modified are highlighted. Next, the why : Google recently released an e-mail form feature that allows users of Google Documents to create an e-mail a form that automatically places each user's input into an associated spreadsheet. As it turns out, with a little bit of work, the forms that are created by Google Docs can be embedded into any web page. Now, The Goods: Click on the instrument you want turned up, click the submit button and then refresh the page. Through the magic of Google Forms as soon as you click on submit and refresh this web page, the data chart will update immediately. Turn up the:...