Posts

Various Updates

Image
 Well, the big news over here at MIAR labs is that I purchased a new 3D-printer, a Prusa Core One +. This was something I've been considering for a while but was putting off, because of the large price tag. Around Halloween, I was attempting to print a large mask on the ol' Creality Ender 5 and I kept running into issues. That frustration coupled with a Prusa Black Friday deal prompted me to pull the trigger. I had sorta sworn that I would finish this project with the Ender, because I knew I could and that a better printer was unnecessary. But I was also tired of dealing with the Ender. So, fast forward, past waiting for the printer to ship, assembling and calibrating the printer, and the first print. It's been a week and a half since the Core One arrived and I've been printing away like mad. I couldn't be happier with the Core One. I am nearing completion of a tank that is printed entirely by the Core One. I have been making minor adjustments to the CAD files along...

The Grind Continues

Image
It's been about ten years since I first conceived of what would become Laser Tag Robot Tank (I'm still shopping around for a better moniker). There were a lot of stoppages and detours in that time. I put serious work into the project over two winters during Covid times. And then I've been working pretty steadily on it over the past year. All that to say, it's been a long time and I'd like to see something like a finished project. Sometime around Fall of last year I had something like a finished version. It did all the functions required and it seemed like the motor-driver issues that have plagued me had been resolved. I showed it around and everyone was duly impressed but when I mentioned that there existed two possible improvements of better batteries and a range-detecting sensor, everyone agreed that these things would be good additions. I didn't really want to but the project went in for another round of revisions. In the event, it was a good thing because th...

Not Dead Yet

I've been working on this project and wished to post an update. I don't imagine this blog has a ton of readers but I was looking over old posts and reminiscing and thought maybe it was useful to keep track of progress, for myself if for nobody else. I wanted to include some photographs and screenshots but that will have to wait for another post. Or maybe I'll come back and update this one. I started blogging about this project in the Fall of 2017. I worked on it most of that Winter and into the Spring and then other things took hold. I bounced between Portland and Arizona and most of my stuff was in storage during that time. In 2019 I returned to Portland and I finally ended up living at a place with the space for projects. Up to that point, I had been purchasing remote-controlled tanks off the shelf and modifying them to be autonomous. I had a couple of parts custom-printed from Shapeways. There were several disadvantages to this approach but it was always going to be cost...

More about Motors

Image
I received Revision 4 of the main boards last weekend. The part I was most nervous about was the motor IC footprints and soldering the tiny surface-mount pins. But that actually went pretty well, even though I forgot to use flux on the first attempt. I did make one major mistake on the board, wherein the controlled-voltage line to the micro-controller is missing. It's something that I had noticed and thought that I fixed, but somehow didn't actually fix. The good news is that it's really easy to jumper that connection. So pretty soon, I had enough components soldered onto the board to test the motors. The result from that was fairly disappointing: the controller would reset immediately when the motors were turned on. But it didn't ALWAYS reset and, when it actually continued working, the motors were turning strongly and motor IC was not getting warm. So, that was the silver lining, I guess. I tried bodging in various capacitors but, still the result was nearly alw...

Main Board v0.4

Image
I received Main Board v0.3 back from OSHPark and the TB6612FNG IC did not seem to line-up with the contacts on the board. It was, in fact, about a millimeter too wide. I had anticipated a challenge, as this was to be my first attempt at soldering surface-mount. But this footprint problem was not an issue that I had expected to encounter. I had taken a SSOP-24 footprint from KiCad's library and modified it only in that I joined adjacent pads for the motor connections. Looking at the TB6612FNG datasheet, I confirmed from the drawings that the footprint I used was not wide enough. Yet another reminder to check and double-check datasheets. So I did attempt to bend the IC pins to see if I couldn't work the chip on somehow, so that I could test the board functionality. But, with the pins bent back, even a bit, they became impossible to solder. I did briefly consider attempting to bodge wires onto the chip and in that way connect it to the board. But it looked like an exercise in ...

Infrared reception

Image
So, while waiting on a new main board, I decided to work on the software a bit. I wanted to get IR reception/transmission working reliably and also modify the code to support the new motor controllers (PWM on all motors + control signals supported with a shift register). I began with the IR reception. Most importantly, this will record the hit from the other tank's shot. Secondarily, it will be used to receive commands from an IR remote. I sourced some  cheap IR remotes  from Sparkfun. I think that these will be useful for debugging (in debug mode, you will be able to control basic tank functions with the remote). Also, they can be used to give a start signal for the tanks to begin fighting. I had messed with the IR stuff a little, before, using the  IRemote library . The library makes it stupid-simple but when I tried using it with the rest of my tank code, I began having problems. The main issue seemed to be that, even though I had my IR receiver diode on a har...

IR Distance Test

Image
A month ago, I had the rather belated realization that merely sticking a bog-standard infrared LED on a short mast on top of my tank was not going to work very well. Most LEDs are intended to be directional. I needed an LED that would point not up but in 360 degrees, so that the opposing tank could detect it, no matter where the tanks were in relation to each other. So I ordered a few different lenses and infrared LEDs from Digikey. Though the number of choices on that site seem overwhelming at first, once I narrowed-down the options based upon my needs, there were only a few options left for each. Also, since I finally had a working camera PCB, I used one of the boards plus an OLED display to build a "detector box", a gadget that displays detected IR blobs on the screen. This made testing much easier, since I didn't have to sit next to a computer reading serial debugging information. [Before I even received the LEDs in the mail I experimented with using sandpaper t...