Categories
Uncategorized

Ethernet Tester (Almost)

Ethernet Tester

I should probably just submit this to Hackaday’s Fail of the Week because this is full of fail. I’m going to share it all anyway.

Sometimes at work we make our own Ethernet cables, and we usually test them by connecting them to computers, or whatever weird electronic thing we’ve built, and we hope they work. They usually do, but we don’t have a good way to test them. I know there are network cable testers but they are expensive. (Mistake #1, more on that later.)

I had some RJ45 8-Pin Connectors and some RJ45 Breakout Boards on hand that I never used so I came up with the “brilliant” idea of building a simple Ethernet Cable Tester. (Mistake #2.)

Ethernet Fail

The idea was that you could make an Ethernet cable, plug it in to each end, and then use a multimeter to check continuity by matching up the colored wires on each side. Simple, right? Right…

Ethernet Tester

I decided to use a piece of stripboard, which seemed perfect for this project. For whatever reason, my soldering skills went out the window. I swear I know how to solder, and I’m actually pretty good at it. Maybe it was just one of those nights where everything goes wrong. And when I tried to clean things up my solder sucker kept not working. Just, not working. Why? I don’t know!

Ethernet Tester

Oh, and you see those notches in the board? I had to Dremel those out because it was too difficult to press the little lever that releases the RJ45 connector. It was even worse with cables that had boots on them. (Mistake #3, or #4, I lost count.)

Ethernet Tester

There’s also a lot of hot glue on there. I was using that to hold the wires in place because it seemed like some didn’t take to the stripboard very well and I had to add more solder. Yes… more solder! (Mistake #4 or maybe #5.)

Ethernet Tester

Sure, more hot glue. This time to make the breakout boards stay level and not flex around when plugging in cables. This sort of worked, so it’s not terrible, but yeah… hot glue. Fine.

Ethernet Tester

So the good news is, it does work. I tested some cables. I didn’t have to build an expensive Ethernet Cable Tester. I was so proud of myself I decided to see how much money I saved the company.

Oh hey, look… I can find some cheap network cable testers on Amazon (with Prime!) for under $10. Aw, shit… I give up.

Categories
Uncategorized

Bitbeam Fan Holder

Bitbeam Fan Holder

I have a computer fan on my workbench at home that helps draw the fumes away from me when I solder. I’ve been meaning to get some Carbon filters for it (which I just ordered) but I also want one for my desk at work, so I finally got around to building a little stand to get it up to the same height as the helping hands I use for soldering.

Bitbeam Fan Holder

I ended up using some piece of Bitbeam to build the frame. I love Bitbeam and should probably use it more often. Jason hasn’t really done much with it in the past few years, but you can still find some info on Thingiverse and Github. (I’m sort of tempted to start designing some compatible pieces, plates, and other bit and bobs.)

You might notice I had to angle two of the pieces. Things didn’t quite line up with the fan mounting holes, so I improvised a bit.

Bitbeam Fan Holder

And while I did have a good collection of 6-32 nuts and bolts, most of the bolts I had were either too short or too long. (I ended up using the ones that were too long because the other option didn’t work at all.)

Bitbeam Fan Holder

Here’s the fan stand raised up to the proper height to match the helping hands… all ready for soldering! Well, almost ready…

Bitbeam Fan Holder

I added a barrel jack to the fan wires. These brushless DC fans (from an old Apple Computer) require you to twist three wires together for the positive, and use one wire for negative. (You have to experiment to determine which are which.)

I also used a 5 volt power supply from an old Zip Drive. What else am I gonna do with a Zip Drive power supply? While the fan expects 12 volts, it just runs a bit slower (and quieter) at 5 volts. If it doesn’t draw enough air I’ll change it to 12 volts.

Bitbeam

If your 3D printer is sitting idle, print some Bitbeams to have on hand for a future project. I’ve got a box of various sizes at the ready for the next time I need a simple framing system.

Categories
Uncategorized

Presentation Camera

Samsung Presenter

When I teach at UWM we’ve got this presentation camera at the front desk that can be used to show the Arduino and a breadboard and how things are connected. I believe it’s a Samsung SDP-860. It was probably awesome in its day, but the quality is not amazing. It does have a number of controls to zoom in and adjust the brightness, and has a built-in light and multiple outputs, but I still am not impressed with the image quality. When I did use it, I just connected it via USB to my MacBook and used QuickTime Player to get a video window and then showed that with the projector. It allowed students to see the tiny components I was using… so yeah, it worked.

But then I thought to myself, “Why not just use a webcam!?” and that’s what I’m going to do. Since I’m not teaching in the Spring semester I offered to do a Beginner Arduino Class at Milwaukee Makerspace, so I built my own camera thing… the Raster Presenter!

Raster Presenter

Yes, it’s basically a desktop microphone stand. There’s a long gooseneck to allow positioning the camera to point directly down at the desk. (It’s similar to the gooseneck rig used on Time Lapse Bot III.) I’m using a Logitech C910, which I’ve had for years, and which outputs some decent quality video.

Raster Presenter

The Raster Presenter is not quite as pretty as the Samsung model, but I dare say the quality is better, and it may even be more adjustable. It’s also lighter, can be disassembled, and does not require an external power supply. (Just a single USB connection!)

Raster Presenter

The camera mounts to a small piece of wood using zip ties that fit into notches. The wood slides into half of a mic holder that came with the mic stand. There’s a little bit of gaff tape to stop it from rotating on the gooseneck, and Bob’s your uncle!

QuickTime

When you launch QuickTime Player you just choose “File” and then “New Movie Recording” and you should see some live video. If it shows the computer’s built-in camera you can change it via the drop down menu.

QuickTime

After choosing the proper camera you can also choose to change the quality. I found that “Maximum” gave much better results than “High”, although it did seem to enable the auto-focus in the camera, which can occasionally be an issue (at least with other webcams I’ve used.)

QuickTime

Once you have all your settings you can move your mouse off the window and the controls (and title bar) should disappear. As long as you’re connected to a projector your students are ready to see the small things you want to show them! In the sample shot above the only light I used was daylight from the window to my left. I could see a bit of static in the image, but even in low-light it looked pretty good. I’ll do some testing to see if I can get away with existing light or need to augment it with another light source.

Categories
Uncategorized

Troubleshoot & Debug

USB Fail

Checking on the meaning of the word “troubleshoot” shows it to be defined as “trace and correct faults in a mechanical or electronic system” and the word “debug” describes “the process of identifying and removing errors from computer hardware or software”.

I use both of these words, a lot, and I hope I’ve used them enough in class to plant the idea into student’s heads that both of these words are really about problem solving, which is probably the most important thing you can learn in my class. If you’re dealing with physical things or electronic things, they are not always going to work, and figure out why they don’t work, and getting them to work is what it’s all about.

I recently had a student who had written some very simple code. It checked the distance of an object using an ultrasonic sensor, and when the right conditions were met, it turned a servo. This is dead simple, but for a student not well versed in writing code, can be a challenge. The student could not get it to work reliably. It worked for maybe 10 to 30 seconds, then froze up. I ended up wondering if there was a conflict between two code libraries, did some searches, determined there might be, found a way to write code without using a library, had the student test it, and the results were the same. I then duplicated the student’s circuit, ran the exact same code, and it worked fine for me. I then swapped servos with the student, then ultrasonic sensors, then Arduino, then… Then I just took the entire setup from the student, Arduino, USB cable, breadboard, wiring, sensor, servo, and tried it on my computer and it failed. Failed! Did not work. Eventually I discovered the student had a bad USB cable. Yes… a bad USB cable, that “sort of sometimes” worked. Sometimes. It worked reliably enough to upload code, but the student kept getting errors when trying to open the Serial Monitor (which should have been a clue) and had to attempt multiple times to open it.

Eventually, as you eliminate more variables, you narrow things down. Sometimes it’s just luck. Sometimes it’s knowing where to look, and not getting stuck thinking it’s one thing when it’s totally another. I took the bad USB cable, cut the end off, and tossed it in the junk bin, and gave the student a new cable. Everything worked fine then.

Whether it’s troubleshooting, debugging, or just “solving problems” it can take time, and you have to be willing to put in the time. It can be frustrating, but at the end you usually walk away with more knowledge about how to solve problems in the future. I can bet that if something like this happens again the student will remember that one bad USB cable that set back their progress for a few hours.

(I’ve also been working on rescuing a failed Windows computer this week, so I need all the strength I can muster to deal with the dumpster fire of an operating system that is Windows 7. I remain convinced that everyone who says they hate computers says so because they are forced to use Windows.)

Categories
Uncategorized

T35TP4TT3RN

T35TP4TT3RN

T35TP4TT3RN (aka TEST PATTERN) is a piece I created for Maker Faire Milwaukee in 2016. It consists of a Raspberry Pi single board computer connected to an old Sony broadcast monitor. (I got the monitor from another member of Milwaukee Makerspace who was getting rid of old equipment.)

T35TP4TT3RN

As I often do, I wanted to contrast old hardware with modern hardware. I ended up using a Raspberry Pi Model B which has composite video out via an RCA jack. I used an RCA to BNC adapter to connect to the monitor. The display is a whopping 640×480 pixels.

T35TP4TT3RN

I used the Raspberry Pi Slideshow technique and with most installations, I tried to do a good amount of testing beforehand, letting it run for days at a time. I came across an issue where the system would freeze, and it would get stuck on an image. I contemplated switching to display of a video, but really wanted to avoid that, so I set a cron job to reboot the Pi every 30 minutes. I figured that if someone saw the screen during reboot it would be an extra BTS sort of treat. (The Pi boots very fast.)

T35TP4TT3RN

I did end up altering the monitor a bit. I removed the case and broke out a bit of the battery compartment so I could slide the Pi and extra cable into the battery slots. Since I’ll probably never own the batteries for this unit, hacking it seemed like a no-loss situation.

Here’s a collection of a few of the test patterns that were displayed.

T35TP4TT3RN

T35TP4TT3RN

T35TP4TT3RN

T35TP4TT3RN

T35TP4TT3RN