Unfortunately, I couldn't figure out how to override KiCAD's layer colors for the 3D preview (nor did the internet help), but here's the "final" version I sent to OSHPark shortly before Christmas:



I also ordered a batch of parts from Digikey:
Code:
Screw terminals       ED2580-ND            4 @ $0.73 = $2.92
5V regulator          296-39011-5-ND       1 @ $2.01 = $2.01
10nF caps, radial     BC2662CT-ND          3 @ $0.15 = $0.45
220ohm 0805 0.4W res  RHM220KCT-ND         2 @ $0.10 = $0.20
2.5mm SMD jack        CP-2523SJCT-ND       2 @ $0.96 = $1.92
2.7Kohm 0805 0.4W res RHM2.7KKCT-ND        2 @ $0.10 = $0.20
Clear red 0805 LED    732-4985-1-ND        2 @ $0.17 = $0.34
1Kohm 0805 0.4W res   RNCP0805FTD1K00CT-ND 2 @ $0.10 = $0.20
100nF caps, radial    399-9870-1-ND        2 @ $0.25 = $0.50
1uF caps, radial      445-173583-1-ND      2 @ $0.32 = $0.64
Al elec 1mF 35V cap   493-1085-ND          2 @ $0.67 = $1.34
Stacking Arduino pins 1528-1074-ND         2 @ $1.95 = $3.90
*bump* The PCBs for my shield version of the TI-DCC board finally arrived earlier this week:


I found minutes here and there for assembly, and here's the current version (with bonus photos, including one where I'm testing the overtemperature LED). I encountered a few interesting issues: I was rusty on soldering tiny SMD discretes, I initially put the ICSP header in upside-down (that is, the normal way up), and I discovered that the pins from the track screw terminal block touch the metal case of the Arduino's USB port, which I plan to solve with an insulator of some sort. I also need to get myself another LMD18200T; the one you can see in the photos elsewhere in this thread had its pins bent in an odd orientation, which meant predictable metal fatigue set in when I tried to bend them back. More updates soon!



Click for full resolution.


Got the last of my parts in today so here it is assembled!

Test by weeks end probably! Nights end Very Happy


Train on idle, Click for full size.

I made a small mistake and forgot to make a logic ground for the control line coming out of the calculator. Not the end of the world just means I need to remember to hook it up. Though on a real setup the calculator would probably be wired to the 5v rail no the power connector. and there for could easily use the ground pin which would solve the problem.
Some minor changes made and pushed to https://github.com/Cemetech/TI-DCC/ for my smaller board. I forgot some a ground pin as I said above. Fixed that and exposed the copper on the text, And added some silk screening for pinouts...because I kept forgetting Very Happy Makes it looks nicer :3


Click For full resolution
The assembled version looks great, and the fixed version looks great as well! Did the assembled one pass all of the tests? I see that the headlights on the train are on, but I assume it happily went forward and back as well? I think I shall nag you about DC mode, too, so you can test your new trains and I can test my ACS-64.
It functions exactly as expected Very Happy All tests passed with flying colors on my setup Very Happy

DC mode is coming up soon on the robin I feel. I need to get Iambian to whip me up a new interface for it as well. I feel like this controller interface is not meant to manage multiple trains at once. So having a DC only mode makes sense. So Upon hitting the DC button We are going to have it Display DC on the Address box. Do something with the buttons and set it to a step mode. Step count is to be determined still. Have to see what I can realistically squeeze out of the I/O port in terms of PWM resolution.
An update on geekboy's/Iambian's end: DC mode hasn't happened yet, but the interface is pretty much ready for the interrupt. Geekboy and I were tossing thoughts on properly implementing fine-grained PWM back and forth. We both agreed that it should require that separate interrupt to avoid overcomplicating the DCC interrupt, especially since you can't run DC and DCC mode locomotives simultaneously anyway.

A week or so ago, I did some really unfortunate soldering work to temporarily salvage my genuine TI LMD18200T that I got before they stopped sampling that chip, and was able to test it successfully working with my N-scale P42DC.



This weekend, I visited geekboy (and geekgirl), and we did much train debugging. Among the things we explored and figured out:
  • Thanks to geekboy getting a number of (relatively) inexpensive "LM18200T"s from China, my shield now is complete! On the next batch, I want to use a slightly bigger drill hit for the LMD18200T's pins.
  • The address of the new Atlas train that I got at the Amherst Model Railway show this year. We were able to eventually read and program its CVs using my shield, once we finally made sure we weren't trying to drive the 5V line from both my shield (5.13V) and USB (4.30V, because really long USB extension cable).
  • We (possibly?) found a small issue with the 5V supply in geekboy's board that we want to resolve.
  • We discovered that the TI-DCC ASM program appears to be producing an unclean PWM signal, more like 75% duty cycle than 50%.


Geekboy, what did I forget here?
A few things that would be good to mention:
  1. We brought this project to Maker Faire again this year, in a much more reliable and polished form than last year, and it was a big hit. Brian Benchoff of Hackaday published information about it as part of a larger article about our hardware hacking work with calculators.
  2. geekboy1011 continues to improve the software, and to my knowledge has been designing the DC mode.
  3. I finally (over a year late) placed a split AliExpress/eBay order for more LMD18200Ts, those red mushroom emergency stop buttons, more screw terminals, and a couple of LCDs (for the TI-87 project).
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 3 of 3
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement