Deathblades: Next-day Shipping Edition

I was able to hop onto a lab parts order early yesterday and throw in some force sensitive resistors and prototyping miscellanea. Thanks to the miracle that is modern supply chains and logistics, I had them on my desk in less than 24 hours.

Now, if only Advanced Circuits could finish my Double DEC’er boards that fast. I mean, without costing a significant percentage of my undergraduate tuition.

Oh, speaking of the Double DECers, here’s the latest board iteration featuring discrete 3.3v and 5v regulators. The amount of power I wanted to draw from the 5v line was cresting the limit of the DECs’ onboard regulators, so I added one that runs directly off the battery input. Also, a power LED.

I figured it was safe to stop there for now.

And here’s (part of) the controller parts roster. On the left is a Lilypad Xbee holder and prototyping antiperfboard. Lilypads were designed to be used with wearable electronics, and I figured that the controller qualified as a piece of wearable electronics. These things are actually huge. They looked tiny and cute in the pictures, but are actually about 2 inches in diameter. I foresee no fitting problems, however.

I got four coin cell holders. The controller power will, for now, come from 2 CR2032s in series for a 6 volt power source, which will be regulated to 3.3 volts.

The XBee 2mm headers are for the Double DECers, so I don’t have to solder my poor XBees to the board.

Anyways, here’s How Shit Go Down™ with the FSRs.

Their resistance decays as 1/R with linearly increasing pressure. There is a very high (megohms) unloaded state, and a minimum force must be applied to enter the hyperbolic region. After a certain pressure is applied, the decay saturates at a steady value until you compress it out of existence. Actually, all this is in the datasheet. Why am I explaining it?

I elected to begin experimenting with the “buffered voltage divider” on p. 16. As fig. 9 illustrates, the voltage response is highly nonlinear near zero force. However, with a low load resistance (Rm), the logarithmic curve is approximately linear at higher forces.  And with a high parallel resistance inserted across the FSR, the Precipitous Voltage Cliff is smoothed out to a zero force intercept with a value of approximately (Rm /  Rparallel + Rm) * Vref.

I exaggerated this approximately linear curve even further by using a 1Kohm load resistor, which seems to put me on the edge of the FSR’s 1ma per cm² current tolerance. Next, I set up the op amp buffer as an adjustable noninverting amplifier (as seen in figure 10). Tuning the blue potentiometer effectively let me set the force slope.

Now I had a response that was kinda-sorta-not-really-but-close-enough linear within an adjustable force range. To supplement, I put a slow RC filter (t ~ 0.5 sec) on the output of the amplifier.

After having enough fun playing Squeeze the Resistor, I began to attach it to spots on the wrist plate for ergonomics testing.  The results:

  • Palm area: Good wrist bend force response, but had the unfortunate side effect of also responding when I opened my palm all the way. This was due to the way the sensor was oriented – a normal force could come from either forcing the hand down through the wrist or pushing the palm out by uncurling the fingers.
  • Other side of same area: Very little response at all, because the force didn’t really go that way.
  • Behind the wrist on the flat portion of the plate. This is the 1st class lever equivalent of the first configuration, so it suffered from the same undesirable side effect. Pushing out with the palm also meant that this area of the plate was pushed upwards (with the main wrist strap as a fulcrum), triggering the sensor. Clearly, any response having to do with “opening of the hands” is bad, because that means if I’m trying to recover from an impending faceplant, it will just faceplant me harder.
  • Right under the wrist: Now this was actually promising. While the motion is reverse (i.e. now I pull up with my wrist), the side effect was eliminated – if not, it was a transient at most.

Crap, should have made the damn wire longer.

And so I actually settled with the original motion I was going to reserve for a brake or reverse mode. Now, something that can clearly solve this issue is having multiple FSRs such that different ones are triggered depending on hand position. The ability to distinguish between the open hand and limp hand with wrist pressure positions clearly mean the difference between go faster and oh shhhhh–.

However, that would require some software processing of the multiple signals, and I want to just start simple for now.

Here’s a short video illustrating wrist bend control. In the video, the control looks sensitive with respect to distance displaced, but that distance comes with substantial force applied against the wrist straps and plates. It’s actually quite easy to maintain a certain voltage position, and the “muscle twitch” response is well damped due to the filter.

The moving line scale is 1 volt per division, and the maximum output voltage is just under 3.2 volts. The system runs on a 3.3 volt bus (XBee native voltage) using the LMC6484 rail to rail I/O op-amp to take maximum advantage of the low voltage swings.

Next mission: Transmit this 0-3.3v signal to another board using the XBees in direct I/O bridge mode and decode & buffer the output to 0-5v.

Read more “Deathblades: Next-day Shipping Edition”

BOARDS BOARDS BOARDS BOARDS

After two weeks of nervous, anxious anticipation…

SMALL CUTE HALF BRIDGE BOARDS! They’re so clean… so shiny… so detailed… so…

… expensive…

I ordered 4 (+1 free) from Advanced Circuits shortly after posting about them. Over the course of 2 weeks, I got no less than 1 postcard, 1 thick envelope (which I thought contained my boards) full of brochures, a round PCB drink coaster, and three sales representative calls asking me how I’m doing and whether or not I had any order questions.

And with the boards, I got a little packet of free microwave popcorn.

Advanced Circuits is like a grandmother or gift-pushy uncle. I’d actually appreciate it if they laid off the customer appreciation and just got me my damned boards faster. That means more than any random token ever will.

Anyways, 5 is enough for one split-pi converter and 1 3 phase motor driver bridge. So there may be some more minor power conversion experiments in the future.

While waiting for the boards and the WHERE THE FUCK ARE MY BATTERIES, STILL? for Deathblades, I decided to make a second iteration of the “Double DECer” board.

Alot cleaner, isn’t it?

Shortly after finishing the previous iteration and  debating myself over component placement and available volume, I discovered there was really no problem at all.

In designing the most recent drawing of the ‘blades, I mistakenly constrained the top of the battery pack to be 5 millimeters under the edge of the aluminum sides. When I changed the battery pack spec, I only changed the part dimensions and not that constraint. In reality, then, what seemed like only 5 millimeters of space was actually 23mm. I thought it was a little weird to have a 31mm tall battery fill up a 54mm cavity almost to the brim.

I then remembered that PCBs can have two sides, which was instrumental in creating the new layout. If I put the Xbee and DECs on opposite sides of the board, then they won’t conflict with eachother volumewise!

The new layout reflects this. On the “top side” sit the Xbee, glue circuitry, bus capacitors, and I/O connections. The DECs, now turned to face eachother, occupy space on the board’s bottom, and the “overhang” they provide is used to park the 3.3v regulator. All the control pins are right there and there’s no more cross-board running of signals.

I was even able to add some real mounting holes. The outer dimensions are within Eaglol’s 4 inch X-limit, and the board is 1.5″ wide.

This is a board that is actually worth sending out now.