Problem: Need to test Li-ion batteries inexpensively
Battery tester needs:
- Ability to run tests over hundreds of cycles
- Independent data logging, i.e. not tethered to a computer
- Storage of test parameters in EEPROM
- Flexibility in test options and battery sizes
- Scalability so that many test units can be fabricated and operated
Parts list, and code files are available by request.
The modifications have been made to the Xbox One controller, where most of the buttons and thumbstick controls were ran to IDC connectors on ribbon cable. Next up is to figure out how to wire the joystick buttons to the controller. The layout will be fairly simple. The main joystick will control the left thumbstick, which for most games is movement. The right thumbstick will be moved to the top of the joystick, which is how you will “look around” in most games. The tophat on top of the joystick will be wired to the thumbpad. A new 4-way contact switch will be used in place of the X-Y-A-B buttons. The right trigger will be moved to the joystick main trigger. And both bumpers and the left trigger will be moved to the contact switches located under the index, ring and pinkie fingers along the joystick body. There are a lot of individual wires to hook up here and the workspace is pretty tight. I won’t go into all of the details, but enough that somebody could figure it out pretty easily if they chose to.
Here is what the underside of the flight stick looked like with the case removed. Most of the wires will be re-used. The usb cable can be removed since that won’t be needed. I left the larger circuit board in place otherwise the buttons on the controller base fall out. I removed the small circuit board since I was going to use those button holes to run the ribbon cable from the upper joystick. The 6 wires running from the main joystick potentiometers will be used in place of the left thumbstick on the Xbox One controller. Many of the other wires shown here are running from the small circuit board which houses the buttons for the upper joystick controls shown in the following picture.
This small circuit board is located on top of the joystick. It just holds all of the contact switches etc for the upper joystick buttons and tophat The wires run down into the joystick base where we can pick them up. All of these buttons are pulldown to common ground also, except the main trigger button, which for some reason had its own “ground”. I just wired the main button to common ground as the pulldown also. The ground will be the common ground run to one of the pins on the IDC connector in the Xbox controller previously. Now, basically, run down which button goes to which wire, track those wires to the base and label them.
A friend of the family suffered from a stroke which left him unable to use one side of his body. We went looking for a controller that would allow for one-handed operation of an Xbox One. He is a bit older so he never played any current video games, but if there ever was a time for learning anything new… I looked around at what was available for single-handed operation of Playstation or Xbox consoles, and was a little disappointed in the results. Probably the best overall is Ben Heck, who does engineer these units and sells them for a very modest price to help people with disabilities. In fact, much of Ben’s post was used to inspire and influence the design of this device. However, I don’t think that the design posted on Ben’s site is very user-friendly. A better design would be to graft the Xbox one logic onto a joystick. Basically replacing the left thumbstick with a joystick. I think that you will agree that this is a better design. I will be developing this as a I progress in the project.
These few websites give a detailed explanation of the board layout, what buttons go where etc… Take a look to familiarize yourself with the info. I am not going to re-create this info since they already did such a good job of laying it out. The subsequent images will just be an overview of how I wired the system up. It should make sense if you have read / watched these links.
Onto the joystick mods in the next post
I wanted a small utility trailer to haul around general house / yard stuff as well as something that would work for camping in the mountains of Colorado in style. I’m taking up flyfishing and it just sounds like a nice change of pace to go fishing / camping on the weekends and try to get away from all the crazyness / monotony of the work world and unwind in a way that did not bust my ass in the process, i.e. climbing, biking etc… At any rate, I needed a small trailer that would work behind a Honda Accord (yes I own just about the most boring car there is, but the damn accord is hard to kill, more mods on the Honda will likely follow in the future). Standard sized trailers are great for hauling full sheets of plywood but an 11′ long trailer is a bit ridiculous for a car with a max towing capacity of 1000lbs. I found some pretty cool trailers at SpaceTrailers.com, but by the time you tricked it out it would cost ~$3K, which is ridiculous. So I went where any cheap-o would go, Harbor Freight. And yes, this trailer is true Harbor Freight material. For those who aren’t familiar, Harbor Freight is basically the Ikea in the world of tools. Yes, such a place exists, and they have franchises all over the world peddling dodgy shit as tools. Some things work as advertised, but generally it is a bit more of an engineering challenge, and mechano-electrical endeavor than even simply assembling Ikea furniture. In point of fact, this trailer needed to be welded rather than bolted together. Built square (obvious, but not detailed at all in instruction “manual”). Re-engineering of the trailer receiver. Design and fabrication of the trailer “cage”. And a little multimeter work to debug the ground fault in the wiring. Plus some soldering or crimp connector equipment. So all-in-all if you feel intimidated by assembling furniture, give up now. Ok, onto the build. I don’t have nearly as many pictures as I should to describe the process I will try to recall what I did from memory. Your results may vary. Also, my initial design was taken from Charles Trailer Build , his site may clear up some of the things I may have missed in this post.
- First: Unloaded packaging materials and found out where everything went.
- Second:Assemble most of the parts with the provided bolts. An impact drill works wonders for the nyloc bolts, just don’t tighten them down too much at this point.
- Third: Mark the obvious top and bottom welds with Sharpie. Disassemble. Strip paint from weld locations. Reassemble. Square the frame. If you don’t know how to do this google it and you may want to reconsider if you are up to building this thing in the first place.
- Fourth: clean / grind / paint welds.
- Fifth: Attach the rest of the shit in the box to the frame.
- Sixth: Deal with the bearings.
- Basically, your have to pull apart the hubs, fish out the bearings, clean everything, repack the bearings and reassemble the hubs. Don’t beleieve the hype, just buy a bearing packer to press the shit Chinese grease out of the bearings. Don’t bother with trying to “clean it out” or “just use the palm of your hand to repack the bearings”. The bearing packer costs about $25 and you will be glad you bought it. Also, to get the medial bearing out you will want to cut a small block of wood to knock it out. You will know which bearing when you get to it. If you fucked up and put a screwdriver under the lip of the bearing seal thinking you could pry it loose, you will need to replace a spring. I just bought oil seals of a similar size from AutoZone and swapped out the inner springs. Again, you will know when you have reached the part of the medial bearings. Then repack with the bearing packer and some decent grease from AutoZone or whatever auto parts dealer is closest. Wear gloves and make sure you don’t burn down the garage with greasy rags.
- Seventh, Stick wheels onto axels. This is self explanatory.
- Eighth, Admire work, drink beer, wire the thing up.
Wooden DeckingThe manual suggests using plywood. Plywood kinda sucks for a trailer for obvious reasons. It swells when wet. Actually it basically sucks outdoors. You can paint it, but it will get borked pretty soon regardless. Treated lumber is probably the best bet for decking etc in the trailer world. Home Depot now sells what looks like less poisonous treated lumber. Their sign says that it is safe for vegetables, even has a hand pulling out a bunch of beautiful carrots from fertile soil in the picture, but if you believe that this shit wont give you colon cancer than you are an idiot. But it will work for a trailer that I don’t intend to eat. All of the decking is 5/6″x6″x8′ redwood-color treated lumber from home depot. Since the trailer is pretty close to 4’x4′, 8′ long lumber is the obvious choice. I think it took around 12 or 14 boards total. The lower decking is 2×4 treated lumber.
HardwareI used all 1/4 inch bolts for all non-supplied hardware. Virtually all of the hardware was 1/4″ carriage bolts with cut washers and lock washers. This combo is cheap, more than enough strength and easy to work with. Since carriage bolts do not require washers, they grab the wood under them and sink in, resulting in smoother surface. If you are a masochist, you could try counter-sinking hex head bolts, but there are a lot of them and you will be sad if you tried. Also, non-countersunk hex heads would be a bad choice. Hinges are obvious type, same with gate latches
Deck baseThe base of the deck was made from pressure-treated 2×4 boards laid across the three main horizontal members of the frame. They were bolted down on the edges and with 2x bolts in the middle of the frame. Cut out the obvious holes for the stakes. Attach with 1/4″ hardware in a manner that allows for clearance of 1/4″ hardware for decking above. This means leave space for the cut washer from the above decking so that it will fit between the bolt hole and the steel frame. Then add upper decking. Cut and install stakes. Cut and install fence rails. Build doors, install hardware. And you’re good to go. The pictures make it fairly obvious what to do given that you have done this sort of thing before.
Re-engineer the receiverMy receiver would not physically fit over my hitch ball. I think this was because I used an impact drill to fasten the nyloc bolts throughout the trailer, including the two bolts which hold on the receiver. I may have over-tightened them which caused the lip of the receiver to bind in the housing. To fix this I just took the receiver off and slipped a washer between the receiver and the trailer tow arm. Then the whole thing worked like a charm.
Trailer is ready for inspection and plating. After that I will have to build some stuff to allow the trailer to move with the back gate in a lowered state, since I want to be able to carry 2×4’s and such. The trailer will also need some plywood interior framing that is removable so I can carry dirt / mulch without it spilling all over the road.