I didnt do that first though. First I programmed the code into the Pro Mini (the one with legs but a duff regulator from yesterday), using it as an exercise in finding the right point to release the reset button! But I then realised that the Pro Mini is 3.3v and the LCD I had knocking about is 5v.
So I instead programmed up Sam's Arduino Uno, and breadboarded the circuit. All seemed to go together nicely, apart from the Words Per Minute control, which didnt seem to want to play. I eventually worked out that this was because I was trying to use the old codes method of a 10K pot, but the new version code uses a process of reading a 'key down' situation to select the Word speed. Once I realised this everything started going nicely.
I couldnt of course monopolize Sam's machine, so I transferred the code yet again, this time to a spare Arduino Nano. One of my stock of 16x2 LCDs was unsoldered, so ideal for this project! All the connections for the Arduino, plus the contrast control pot and the backlight resistor were soldered direct to the LCD pads. A 3.5mm jack socket and a piezo sounder from the junk box, plus a 5mm tricolour LED, completed the electronics
Under test on the bench |
Magic Morse Trainer v.8. |
So, not any of the projects I should have been working on! But one completed anyway.
No comments:
Post a Comment