Archive for the ‘Uncategorized’ Category

h1

Giant rings are IN, right?

December 3, 2014

I finished up the working modes of my ring, so rev1 of the software is done. Here’s what it does:

On TAP: shows a vocabulary word. On tap or double tap, shows definition.

On DOUBLE TAP: starts Pong game, paddle position set by tilt of accelerometer.

On UPSIDE DOWN SHAKE: says to consider a question, waits for upside down shake (or punch) to give a response.

On PUNCH: puts up a punch word and a couple rectangles for emphasis.

As long as the wires are secure, this all works pretty well. I still need to format some of the Magic 8 ball style responses. And I could go through the vocabulary words to make shorter (better) definitions. I can probably pick up about 50 words too (yay!). I may continue to get rid of nonsensical floating point stuff so I can put more definitions in. Oh, and I should check the power usage, I didn’t minimize the accelerometer’s draw.

However, those tweaks can all wait as I need to make it wearable again. The button version was wearable but the ring blanks from that are a little too small for the accelerometer+battery stack up.

microView with accelerometer and battery

From another angle

MicroView, accelerometer and battery

 

On the back of the MicroView is a dab of funtac (that stretchy sticky stuff you might have used to hang posters in your dorm room), a modified Adafruit 5V tolerant MMA8451 board (ahem, they didn’t need all that space for logos and mounting holes). Tiny wires are soldered to the board, then hot glued. On the other side, they are soldered to the MicroView.

On top of the accelerometer is a SparkFun 40mAh LiPo battery with its connector snipped. It is held on to the accelerometer with funtac (sometimes I build things entirely from funtac). I needed the battery on the outside so I can remove it for charging. The

This all stacks up higher than I wanted and doesn’t leave much space for attaching the ring to the device. With the button+battery version of the ring, I pressed the MicroView pins into the ring blank and press fit it all together. That doesn’t work so well now, especially as the poorly pressed fit doesn’t hold the power on.

Add connectors

 

I snipped some jumper wire so I could build a connector on the inside of the ring blank. This was just a trial run. It worked out ok but I think I want to do something a little different for the real ones, maybe destroy 8 wires to get 16 connectors. Having attachments only on the pins of interest has some downsides (especially if I don’t line them up properly). More connector ends also lets me add some needed rigidity. Even these few fix the press fit problem. The female connectors are all too bulky though I may look around some more.

Ring on

 

It doesn’t look too bad. Though I think the new black version are going to be better (still waiting for those to dry).

photo 4

Well, let’s see it on!

OnThe 5s timeout on the screen makes it impossible to get an in-focus shot by myself.  Ahh well, you get the idea. This angle is probably the nicest. From the side where you can see the stackup, not so nice. (Realistically, it wouldn’t be hard to cover this.)

head on

But I can’t leave it on that shot, one more, a little prettier.

Sideview

h1

Stuff I need

December 2, 2014

I know, I write this blog so people can read it. But then I hope only my husband reads it. Which he does but usually only after I’ve told him about whatever I wrote.

Anyway, I find myself going to the same pages a lot. I figure I can reduce my tabs by putting a few links here:

Yeah, I’m still working on my little ring. With a tap, it gives a word. Another tap, the definition. With a double tap, it starts pong (you tilt your hand to move the paddle). Another double tap (or win/lose), pong ends.

Today I hope to use the motion thresholds on the MMA8451 to detect when you turn your hand upside-down and shake (ahem, ask me a question!). I’ve already got the answer strings in there and I’m using 27166 bytes, out of 32k. Though I’m down to 100 words (instead of the 200 I started with).

Better get to work now that I can close some of these tabs.

h1

Seven

November 28, 2014

I got to thinking about Thanksgiving as a holiday devoted to eating (though, thanking is sometimes considered, let’s be honest about the true tummy extending form of the holiday). That got me to thinking about gluttony and wondering if we had holidays devoted to all seven deadly sins.

Wikipedia says Dante’s Divine Comedy lists the sins as

  1. luxuria (lechery/lust)
  2. gula (gluttony)
  3. avaritia (avarice/greed)
  4. acedia (sloth/discouragement)
  5. ira (wrath)
  6. invidia (envy)
  7. superbia (pride)

Lust is obviously St. Valentine’s day. That’s easy. Gluttony is Thanksgiving.

Greed? Hmm….

Oooh! Sloth is Labor Day! Actually, I think April Fool’s Day is the best match for sloth/discouragement. While normally the gags are funny, they are often deceptively discouraging.

Wrath? I think maybe Halloween, though that really depends on tricks or treats.

Envy, I would say would be Christmas. Is anyone ever truly happy with their presents? And don’t we ask for things we envy? Or is that greed? I don’t think I understand the difference between these. Maybe Christmas is greed and CES is about envy. But that isn’t a holiday.

Clearly, I need a list of holidays. Ahh, that helps. New Year’s Day is drunkenness, which doesn’t make the list of sins. I suppose I’m glad for that. Sadly, stupidity is not a sin or Groundhog’s Day would get a slot.

Pride? I suppose St. Patrick’s Day. Or 4th of July. Yeah, that’s more general. Though I do like fireworks.  Oh! I know! Ahahahahaaheeehee!

Let’s see:

  1. Lust – Valentines (90% match)
  2. Gluttony – Thanksgiving (90% match)
  3. Avarice/greed – Christmas (85% match)
  4. Sloth/discouragement – April Fool’s Day (75% match)
  5. Wrath – Halloween (50% match)
  6. Envy – CES (40% match); Spring Break (40% match)
  7. Pride – SuperBowl Sunday (75% match)

So the easy ones are easy but the other ones, not so much.

Have you considered this? What did you come up with for wrath and envy? I did consider Christmas Eve for Greed and Christmas Day for Envy. That is better than the ones I chose but seemed unfair that Christmas got two slots.

 

h1

Air Punches!

November 26, 2014

My accelerometer FINALLY arrived (hint: don’t pay for expedited shipping until you know when their ship cutoff time is). It does not work. I am quite cranky about that.

This gets me to thinking about that fourth possible mode (three others flowcharted in previous post, flowchart is a verb, right?). I am pretty certain I can set thresholds to get an interrupt on a sudden motion, such as the very end of a punch (even an air punch). So… the ring is going to say “KER POW”, “BIFF”, and “THWACK” when that happen.

This amuses me very much. I thought it might amuse you. I plan to make it little screens with edges, Batman style, not just words. I suppose I have time to do that artwork and put it in the code. Since my accelerometer is DOA. Hmph!

 

h1

Planning ahead

November 24, 2014

The Adafruit accelerometer did not arrive in time for my birthday and I really wanted to wear my ring to my party. I went to RadioShack and got a small momentary pushbutton. I charged my 50mAh battery, clipped the leads and used tweezers to coil the stripped wires around power and ground. A few more tiny wires and it was working.

I wore my ring several times over the weekend. It was pretty functional and didn’t need charging (yay for sleep mode!). The wires were a little fiddly so if I took the ring on and off or handed it around, sometimes it would reset and be flaky but pushing the ring blank back on usually fixed it.

As I was passing it around or fixing it or just playing with it, someone asked if it could do Magic 8 Ball instead of vocabulary and down the rabbit hole I fell.

With a button, well, it can only do one thing. But the accelerometer identifies (interrupts on) taps, double taps, and portrait/landscape changes. It can also do thresholds so I suppose it would recognize punches as well (air punches! real ones would definitely break the wiring!).

Right now, I have 200 words, some of the definitions are poorly formatted, there are only 60-ish characters allowed so if the definition is longer it gets cut off. I tried to prevent that but the cutoff is probably 62 instead of the 66 I used so a few definitions are missing the last bit. However, with the 130 GRE vocabulary words and the 70 strange wordnik words, it is a fairly amusing mix.

MicroView ring

 

For some reason, though, the ring really likes the word ‘turpitude’ (which means depravity or wickedness). The randomness is working well except for that word coming up more often than I’d expect. I’m trying not to read anything into it.

Anyway, I still have about 5k of flash space. Magic 8 ball responses will be easy, they are small. It can do a portrait/landscape interrupt as I turn my wrist around so I’ll put up “Think of a question!” and then another turn back and forth (P/L interrupt) will get the random yes/no/maybe response. Though really, a tap or double tap might as well get the response.

But, what should it do with a double tap? (I just thought up a punch so I’m going let that percolate a bit.) My husband asked if the ring could play pong, using the angle of the ring to move the paddle I thought about that and found that someone has already done that work for me (video!). I only need to replace their pot with tilt sensing.

After getting a little frustrated with trying to make the state machine work from inspection, I decided to stop doing that thing where I don’t apply professionalism to my personal projects. Thus, I made a flowchart to decide how it will work.

flowchart

I need UPS to arrive with the accelerometer so I can test the implementation of this mini-beast. In the meantime, I probably should make a few more ring blanks, these are all probably a bit small to work with the accelerometer and the battery.