Loading ...

Translate

Thursday, 18 January 2018

Arduino Shakespearean Insult Generator

Hither is a little excit'ment thing I've hath built, to fig thy friends in the words of the bard ...

There are plenty of Shakespearean insult generators out there as webpages, but here's an implementation you can keep in you pocket.... (but someone came along and invented the smartphone, which sort of renders it all academic ... never mind... carry on!)

It's basically an exercise in cramming lots of text into the PROGMEM of an Arduino Uno.

There are 3 words stored, each having 53 variants, giving a total of 148,877 different insults....

Compiling for Uno, shows us the efficient use of memory ..

Sketch uses 4658 bytes (14%) of program storage space. Maximum is 32256 bytes.
Global variables use 85 bytes (4%) of dynamic memory, leaving 1963 bytes for local variables. Maximum is 2048 bytes

Code can be found on my Github ... https://github.com/andydoswell/Shakespearean-Insult-Generator

Have fun !


3 comments:

  1. Another flash of the Doswell genius, brilliant! Andy, have you considered adding a speech synthes

    ReplyDelete
    Replies
    1. It's funny you should mention speech. I'm currently working on speech synthesis for another project .... the trouble is, it does sound like me! It's un-nerving! Watch this space...

      Delete
    2. That will be a treat, I'm looking forward to your presentation sir!

      Delete