I work in a therapeutic environment and part of our daily routine is to check in with our team (not clients) to find out how we're all feeling. Good, OK, Fine - not acceptable. In fact we have a published list of approved feelings. They fall into two groupings - positive & happy or negative & sad.
Since these 'check-ins' take place in the mornings - often before an adequate volume of caffeine has been consumed - coming up with an approved feeling is a challenge.
Using my shiny new HAD Trinket, I'm taking inspiration from Kirk Van Houten and his immortal album "Can I Borrow a Feeling?" - My project is to populate an array with near on 300 words and, with a press of a button (well, two buttons - one green button for positive feelings, the other red for negative feelings) a randomly chosen emotion will be displayed on an LCD screen for all to see.
No longer will I be left struggling with how I feel - the HAD Trinket will tell me!
First step in final assembly was to pass the wires from the buttons through the case - as these need to be in place when I solder the wires onto the Trinket Pro. If I could count the times I've soldered switches and buttons up too soon.... But not this time!
I didn't have a JST connector handy for the battery, so I used a 2-pin locking header. I bent the pins in an 'S' shape - works like a charm!
I decided that since I'm only using a few connection points I didn't need the headers, just solder straight onto the board. I created a junction for the three grounding wires (1 for the LCD and one each for the buttons) - you can see that in the image above.
Here's the layout in Fritzing -
With everything up and running, the screen, battery and Trinket Pro were then placed into the case.
To stop the battery and Trinket Pro moving in the case, I've used some double-sided tape. Ok, so my cable management skills need some work!
The back panel was held in place by 4 M3 screws - quick and easy access to the battery when it needs to be changed.
And here we go! Up and running ! Woot!!
How are you feeling? Press the Green button for Good and the Red for Bad :)
How's the team going to take this? I think they'll love it! Big reveal is a week away.
I started the day with a trip to my local parts supplier to obtain a nice new 16 x 2 LCD since the one I've been using for development is old and fading - I don't know. You spend $5 on an LCD, shouldn't it last for ever?? Bah!
So, I picked up a Polymer LCD screen... Except that I've got no response from it - it's just dead right out of the bag. Argh! I have no idea what's going on.. Very unhappy about that. Still, I did pick up a cheapie LCD screen at the same time - $4 in the discount bin and it's working like a champ! (in fact, I might pop back some time and grab a couple more!)
Oh - I spent lunch enjoying a tour of Melbourne's largest brewery along with a tasting.
Lunch was a really yummy steak burger, but I digress!
IF (length of spaces before the word * 2 (so, total spaces) + the word itself is greater than 15, then add the same number of spaces as before. However, if not greater than 15, add the same number of spaces + 1 (so, this will result in 16 characters total)
You'll find the first formula in column E and the 2nd formula in column G
Go, have a play with the excel file - see how changing the lengths of the words affect the numbers of spaces added before and after - but always resulting in 16 characters (unless, of course, you enter a word with more than 16 characters...)
I have two word lists I need to use - one being the positive feelings and the other being negative.
While in most cases, putting positive and negative things together will result in sparks, with the careful use of Excel, I've managed to create a 'master list' of words. This list holds in harmony both the positive and negative feelings as approved by the organization.
Why did I use Excel?
Due to the size of the word list, I need to push the data into PROGMEM. Each data element needs to be formatted as follows -