Posts Tagged ‘Electronics’

[Engineering] – Bullet Flight Sensor, Design Validation Testing

Saturday, January 23rd, 2010

Successful night at Tam Labs tonight! :-)

Tonight, the goal was to test the breadboarded prototype of the bullet flight sensor’s electronics. Remember – I am a mechanical engineer; this is a completely new foray into the world of electronics for me, aside from some simple “hook a solid state relay to a microprocessor and bit bang some code to turn on the rice cooker” projects. So even though this may seem like kindergarden EE stuff, it’s a fairly big leap for me, design wise; I’m no longer relying on the ability to clobber code and instead using discrete logic ICs and doing actual calculations and setting RC time constants, etc.

We begin with the breadboarded model:

Electronics-001

And our setup in the lab:

P1000377

On the bench is a trusty oscilloscope to look at the signals at different lines, a DC power supply set to 5V, 100mA current limit, and a signal generator. The signal generator won’t be used for this project here.

First, I verified that the *new* sensor is working – the last one had a round put through it by accident:

Blogged at: http://www.TerenceTam.com

Next, I verified that the 555IC is getting the power that it needs. Turns out that the power rails aren’t fully connected all the way. A bit of poking with an ohm-meter fixed that. Now I am ready to insert my test points:

P1000378

And trip the break-beam sensor, with my gimpy fingers:

Blogged at: http://www.TerenceTam.com

Orange line, or Ch1, is my sensor’s output. It goes from High to Low when the beam is broken. The turquoise line, or Ch2, is my 555’s trigger output. It goes from low to high when the input pulse is received. That’s a VERY promising sign.

My fat butter fingers can only move so fast through a 10mm opening, so the event scrolls off the oscilloscope’s screen. I tried dropping a small machine screw through the opening, but that actually prove to be much harder than expected (don’t laugh!). Frustrated, I finally came up with the following idea:

P1000376

By flexing the rubber ducky antenna on one of my pocket wizards and getting it to spring through the break-beam sensor gap, I can generate a quick enough blip from the sensor:

Blogged at: http://www.TerenceTam.com

Each major division is 5 milli-second on this setting, so the rubber ducky antenna is only in the beam’s path for about 10mS. My fingers can’t move *that* fast, for sure :-)

Repeating the test again a few times, got me the same result:

Blogged at: http://www.TerenceTam.com

Note that irregardless of the pulse length from the sensor, the 555’s output always sits at about 35ms. This is a litte bit off from the design goal of 40ms (1/250 second shutter speed, or sync speed on a 1.6x crop camera), but close enough for government work. I attribute the difference in component value tolerances on setting the RC constant.

Now the final test – does the output from the 555 trip the SCR to fire the strobe and pocket wizard?
(I selected an SCR instead of a cheaper / more common transistor. The SCR is rated to 400V, so even an older, high voltage “digital camera killer” flash will work on this sensor. )

And…

*drum roll please*

Nothing happened.

Turns out the same bug that bit me on the 555 timer bit me again. The top and bottom half of the power bus on this breadboard is not connected, and the SCR wasn’t grounded properly because of that. Now, plugging in a pocket wizard, this is what I get (with Ch2 now monitoring the anode of the SCR):

Blogged at: http://www.TerenceTam.com

Interesting, it seems to add a bit of noise to the sensor output line. But the characteristic beep of the PW firing can be heard as the beam is broken. (Note that the sync voltage of the pocket wizard is only 3V or so).

Plugging in the 580EXii:

Blogged at: http://www.TerenceTam.com

Again, some electronic noise on the sensor line, but we got what we need out of it – the clean voltage drop that triggers the monostable multivibrator.

And here’s the happy camera dork with his new toy (click link for video:)

Test firing bullet flight detector switch

Now that the circuit is verified working, I am okay with releasing the resources to order the acrylic for laser cutting to form the chassis, as well as starting PCB layout. Stay tuned… :-)

[Engineering] – Bullet Flight Sensor, Systems Integration

Friday, January 22nd, 2010

Quick status update on the bullet flight sensor. This is heading into systems integration testing next, where I’ll be firing up each section of the circuit and making sure it all works. Missing is the break beam sensor that I put a air rifle round through by accident :-)

Electronics-001

Note the “unusual” arrangement with the pocket wizard. The “hot shoe adapter” is actually plugged into the sensor to simulate a camera’s hotshoe firing the pocket wizard.

[Engineering] – Bullet flight sensor – circuit design

Sunday, January 17th, 2010

Continued work on the bullet flight sensor electronics. Dad had suggested that I research a “monostable vibrator” circuit, and to look at the 555 timer IC, so after some tinkering and math, here’s my first draft circuit diagram:

scan0001

Dad (a retired electrical engineer) had given it his blessing, so the next step up would be physically prototyping it. Looks like I’ll be placing an order with DigiKey or Jameco or some other online electronics component vendor.

While the circuit components are enroute – and they will be breadboarded up first – I’m going to try my hand at learning Eagle, a CAD design software. The circuit is simple enough that I can probably etch it myself using laser transfer paper, but I might also just job it out to someone like BatchPCB.com and deal with it that way. It’ll all depend on the mechanical fabrication lead time as well as other project loads.

Meanwhile, mechanical design needs to be refined a little bit. These are current CAD model screenshots:

Bullet_Switch_Assembly.PartialDisassembly

Here the unit is partially disassembled to change batteries.

Bullet_Switch_Assembly.Top

Here’s a top view looking straight down on the circuit card, with the detector barrel rendered transparent.

Bullet_Switch_Assembly.ISOMETRIC

And finally an isometric view of the unit assembled.

Mechanical details for the battery contacts, as ewell as lead-in for the slots, needs to be integrated. Then it’s a matter of generating a file to drive Dave’s grandparent’s laser engraver to cut these acrylic parts!

W00t, can’t wait! :-)

[Engineering] – Testing of a Break Beam sensor

Tuesday, January 12th, 2010

Today, I performed validation testing of the breakbeam module selected to handle bullet-detection for high speed photography. The sensor module is a Sharp GP1A57HRJ00F from SparkFun Electronics (Datasheet). This is an infra-red emitter / detector combo: one half of the module holds an IR LED, the other half an opto-transistor detecting the output.

The output on Pin 2 is at TTL High until the beam is broken, then it goes to TTL low.

I wanted to make sure the sensor does as advertised (remember, I’m a mechanical engineer by trade, that happens to dabble in electronics and coding). So I hook it up with a breakout board and populated the current limiting resistor with a SMT 231 ohm resistor that we’ve got lying around the lab. Here’s the schematic:

001

Connecting Vcc to a 5V DC power supply in the lab, and connecting a probe from an oscilloscope between SIG and GND, I was able to get the following response:

TEK0000

As you can see, the output on the signal switches rather quickly. The oscilloscope was set to trigger off the falling edge of the signal at approximately 3.8V and the drop in voltage occurred within 20 *nano* seconds.

If we assume a .22 round that’s spherical in shape (say, a BB), travelling at 1000 fps:

Each milli-second the round covers 1 ft
To cover .22, or 0.0183ft, the round will take 0.0183 millisecond, or 18.3 microseconds.

I’m fairly confident that the round firing through the beam can trigger an electronic response. The next challenge is then designing electronic circuit to lengthen this response to a switched pulse to fire a pocket wizard radio transmitter.