Wednesday, December 28, 2022

Human factors and ergonomics - the door handle

 A few days ago I went to a play at  Woolly Mammoth Theatre Company It was a one mane show called Just For Us by Alex Edelman.  Good show, enjoyed myself.  That's not what this is about though.  it's about the bathroom stall doors:

Door handle


If you saw that door handle, what would you assume?  


I assumed that it was vacant via the green indicator - which was correct.  

I assumed I should put my fingers under the lip and pull the door open.  It didn't move.  I went to the next stall that was green.   Wouldn't open.  Then I tried to push the door and it opened. 

Wikipedia defines Human factors and Ergonomics as:

Human factors and ergonomics (commonly referred to as human factors) is the application of psychological and physiological principles to the engineering and design of products, processes, and systems. Four primary goals of human factors learning are to reduce human error, increase productivity, and enhance safety, system availability, and comfort with a specific focus on the interaction between the human and the engineered system.

 Not sure this succeeded on the human error front.  There isn't a visual indicator to tell me to push.  I can contrive a scenario where someone is assisting someone and needs to pull the door shut and therefor needs the pull handle but I'm not sure that was the rationale there. 

On a plus side, there are no gendered bathrooms at this theater.  A trend I hope spreads.  Full floor to ceiling stalls where everyone gets privacy.  It just seems like a more efficient use of limited plumbing space.  One line for everyone.

Wednesday, November 30, 2022

The worst 3d printer fail I've ever had

 So this is worst printer fail I've ever had:

3d printer blobs of plastic

It looks like I was printing grapes or corn smut (the fungus use of the word smut that's a google images search). The print must failed fairly early in the job and enveloped the entire print head and heat block.  Luckily it didn't block the cooling fan.   

Initially I tried heating the nozzle to see if it might pull of somehow but it was wrapped around too tightly.  it got loose and I could wiggle it but not much more.  Next I tried my heat gun.  That was effective on softening the blobs but it was also softening the 3d printed parts of the print head carriage.  Yikes! 

The thing that ended up working is putting a blade shaped tip on my soldering iron and essentially cutting my into the blobs and hacking it off piece by piece.  I was able to get the majority of the large pieces off that way.  After quite a bit of work I got it down to this:

print head with plastic residue


It took a little bit more work but eventually I got all the chunks off and out.  At this stage you can see the next problem.  The heater block should be shiny metal instead of goopy plastic.  Because it was so enveloped in the plastic the interior of the blob was quite liquid as the heat couldn't dissipate quickly. The interior plastic was able to seep inside the slot for the heat cartridge (and maybe the thermistor).   The end result is the print head can't reach operating temperature now.  It maxes out at around 170 degrees.  So either there's an insulating layer preventing the block heating up all the way or a layer preventing the thermistor reading correctly.  Either way it doesn't work anymore.   So I've bought a new set of parts direct from Prusa and will be replacing the head end and what ever brackets have to be swapped out as well. 

Tuesday, November 15, 2022

Trying to NeoPixel my Christmas tree part 1

This all started with the video by Matt Parker from @standupmaths He had a super cool Christmas Tree lights idea: I wired my tree with 500 LED lights and calculated their 3D coordinates. Pretty much like it sounds, he put neopixels on his tree and figured out a way to calculate their array position in 3d space.   Kind of like stringing a measuring tape on your tree and knowing where every inch is relative to each other when looking at a single side.  He then made a way for people to upload their own animations to his tree (I'll be skipping that part).

Anyway this is my hack at the same idea stealing everything from Mr Parker and the MIT students who helped him.  Check out the links in his video description for more details. It's pretty neat, both the math of it and the execution.

So here's what I used:

First, I'm using the same lights that Matt linked to in his video.  (affiliate links because Amazon has a handy tool bar to make short URLs)  https://amzn.to/3AcK3yj  - ALITOVE WS2811 RGB LED Pixels Light Individually Addressable 12mm Diffused Digital Full Color LED

I already had a Raspberry Pi 3 laying around:

rwhiffen@raspberrypi:~/prog/XmasTreeLights $ more /sys/firmware/devicetree/base/model

Raspberry Pi 3 Model B Rev 1.2

rwhiffen@raspberrypi:~/prog/XmasTreeLights $

I boought this 10A 5v power supply that came up as a *Products related to this item* suggestion. https://amzn.to/3g0u67x - Aclorol 5V 10A 50W Power Supply 100V-240V AC to DC Adapter 5V 10 amp Switching Converter 5.5x2.1mm Plug for WS2811 WS2812B WS2813 5V LED Strip Pixel Lights

The other stuff I had lying around from other projects, like gator clips with breadboard pins etc. 

Here's a few of links that taught me how to do this.  Sites that I mimicked the results of may be a better description than this post.

* The Adafruit Raspberry Pi NeoPixel tutorial  - I'm using the Using External Power Source Without Level Shifting config towards the bottom of the page.

* Adafruit again -  how to set up Python for NeoPixels on a Pi 

* MIT's GSD6338 github XmasTree  project

* There were a bunch of other pages I referenced while trying to debug what was going wrong with my setup.  

This did not start out well.  Initially I couldn't get the pixes to light up correctly.

Picture of NeoPixels on my workbench, not working :-(

First - most the LEDs wouldn't light up.  Second the colors were off and they'd flicker and blink oddly.  I had also incorrectly wired the pins at some point - now I'm not sure if I fried something.   There are 10 of these 50-light strings so tired another one - same results.  

So I started troubleshooting.  In the past I made a 10-light string attached to a Circuit Playground BlueFruit setup that I knew worked.  Since the plugs were the same I plugged the 50 lights into the CP BlueFruit and after fixing a loose connection I got them to light up.


 

Colors were still wrong, but it works. First up - to fix the colors I had to set the pixel_order parameter when creating the new strip in the code.  If you read the @StandUpMaths code you'll see a comment about these particular strips be GreenRedBlue - GRB instead of RGB The example code I was using had this line:

pixels = neopixel.NeoPixel(NEOPIXEL_PIN, NUM_LEDS, brightness=1.0,

                           auto_write=False,

                           #pixel_order=(1,0,2,3) #uncomment if using RGBW NeoPixels

                           )

and I had to change it to this:

pixels = neopixel.NeoPixel(NEOPIXEL_PIN, NUM_LEDS, brightness=1.0,

                           auto_write=False,

                           pixel_order=(1,0,3) 

                           )

And that got the strips working, so now I knew it was something with my Raspberry Pi not the lights. A little more searching and I discovered a post where someone mentioned moving off of the default GPIO 18 pin and onto 21 - so I set:

pixel_pin = board.D21

and it's started working!  I can address each pixel and do the expected neopixel operations!  

Next I wired up five of the 50-pixel strings and hit my next snag - the 10Amp power supply I have isn't quite enough to light all the pixels.   So it's back to Amazon for a bigger power supply (and 500 more LEDs while I'm at it).  

More to come.



Monday, June 27, 2022

printing the Tic-Tac gun

My friend Mike posted an etsy link to a Tic-Tac gun for sale on his facebook page.  I looked at it and realized I had seen it before on thingverse.  So I went and looked it up and decided to make one.  The version I printed is here: TTG2 Elite - they sell pre-printed versions at their etsy store 

The print is pretty straight forward - I did 0.2mm precision - it may do better with finer detail, but I didn't want to spend the time not knowing how it would turn out.


The two sides came out very clean.  



The test fit was excellent.  Made me regret not doing finer detail for a smoother print.


Assembled and loaded:

I had the M3 20mm screws and nuts already on hand.  I ordered the 6mm springs recommended from the thingverse page.   Did have one printing defect with the overall build.  The screw for just above the trigger didn't seat deep enough so I was unable to thread the nut on the other side, so there's one screw thats a 25mm instead.  So the gun doesn't lay flat if you set it on that side.  It would be easy to fix with a soldering iron to melt the hole a bit.  I may yet do that before I send it off to my buddy Mike.



As you can see in the test fire, it doesn't quite launch them as well as you'd hope.  I suspect there's 3 things at play here #1 the catch that holds the tic tac in place is restricting the mint from exiting while the bolt is trying to push it.  #2 my print didn't come out quite smooth enough to allow the bolt to slide well.  #3 the entire thing is meant to be printed with PETG not PLA.  I'll try to reprint in PETG if I have the filament and time.  The bolt sled might be improved with some silicon lube on the bolt slide.  Not sure what to do about the latch that keeps the tic tacs from falling out - Pulling the trigger faster/harder helps

Friday, June 3, 2022

A real use for one of my gadgets!

 So I buy a lot of gadgets because I think they're cool.   This year I bought a USB Snake Inspection Camera, I had originally intended to find a leak under one of our bathrooms but that didn't go well at all and was pretty much a bust.  Ended up having to cut a big hole in a wall and find it the old fashion way. 

But this past weekend I found another opportunity and the camera came up big.  The new Airpod 3's from apple aren't great compared to the previous generation in my opinion.  The Sound is way way better.  I love what I'm hearing compared to the previous ones.   Because they shortened the little stick coming out and made the part that goes in your ear bigger, they're more awkward to handle.  Especially if you're used to the previous ones which are more svelte.  Anyway the smaller "stick" means its easier to miss the hole on the charging case.  Which means you can fumble them.  And if you're sitting in the back seat of a car with bench seats, it can go down the hole for the seatbelts.  

Hard to find things that go down the seatbelt hole.  Unless... Unless you like to accumulate gadgets and have a snake camera!


 

I thought I found it right away, but turns out that's just a piece of bright foam from the seat.   But further down I found the unmistakable "L" of the left airpod.


And all the crumbs and stuff that have fallen under there.  Yuck.  Anyway, USB snake camera saves the day.  It had gotten kinda "up and under" the seat brackets so you could not see it without the camera.  Additionally the silver sheet metal behind it made it even harder to see.

The moral I take away from this story:  Buy more fun gadgets.  Just in case.


Saturday, April 2, 2022

Cleaning out someone else's cabling

So my company is moving our DC office location. We're taking over an excellent space that used to house a startup.  We were able to acquire all of their office furniture and that 's making it relatively easy to move in.  New paint and carpet and then some easy fixes here and there and we're in our new home.

I'm spending a fair bit of time meeting contractors and installers in the new space.  While I'm there I take care of some of the little things that aren't clearly anyone ones job (we're a pretty small part of the company) because we don't have a dedicated facilities management team.  One of the things I've been doing this week is removing a lot of junk cables they left in the main conference room.  

Judging by the mounting brackets and empty boxes I've seen left behind it looks like they home-brewed an A/V setup with Logitech gear.  That I have no problem with.  What I did find troubling is the way they did the cabling. 




In this example they cut the power plug wire and have spliced about 30 feet of copper wire in and did some poor taping jobs connecting them together.  They took the cameras but didn't take the power cords, which I found odd.   Then they took a crapload of USB extenders to run these cameras all around the largest conference room.


I mean I get it, you have to put some USB repeater/extenders in the connection to get them to reach that far. But did you have to do this too?


So there's a power outlet near-ish where there camera was located and they powered the USB repeater with it but not the camera, that they back-hauled to the front of the room by cutting the cord and spicing. 


This little gem was a beauty.  It's hard to see there but the bit that's in my hand is a short C13 to C14 power cord.  They took a significantly long, 10 foot or so NEMA 5-15 plug to C13 cord (the kind you'd plug into a PC power supply or monitor) and then put the C13 to C14 adapter on it and then plugged in an TV power cord.  Baffling.  The also have multiple places where they took lamp extension cords and chained them together to reach where they needed to get power to.

Ok so as I'm taking all this stuff out I'm getting more and more annoyed and the "duct tape and baling wire" level engineering work going on here.  At some point I stopped to think, why am I so bothered by this?  It's getting corrected now, why is it so maddening to me? Because it's me. This is the kind of work I've done in my past. The more I take this stuff out the more I see myself in the choices they made. 

Sunday, February 20, 2022

Crazy keyboard at my library

 This has been bugging me for a while.   At my library you can either type in your library card number, or you can have it associated with a user name which is easier to remember.  I've chosen the user name route because it makes logging into the website easier for me.  So when you go to the actual library and go to enter your account details, it assumes you 're doing a number and presents a typical numeric keypad on the touch screen.  There's an option to get the alpha keyboard, and when you press it this is the keyboard layout you get:


It's the most bizarre thing I've ever seen in a user interface.  I mean the dangling "i" and "=" along with the "R" and "/" row?  Makes little sense.  I could imagine an assumption that a wider screen resolution was used which would make the short rows not wrap around to the next row, but that doesn't fully explain the "=" and "/" being mixed in the middle of the alphabet.