mijnmodelbaan

Then to get involved with Arduino's and the like - they're very addictive and I love it!

The first time I discovered those little devils was when I read a post written by Geoff Bunza here in MRH. It was his SMA12 blog post ( 17 Channel Configurable Multifunction $5 DCC Decoder For Servos) and soon after his other posts were found, very interesting stuff altogether.

This inspired me to build some things myself and ordering some Arduino's was done. They're not that expensive if you order them from China, you only have to wait a bit longer. After tinkering with those ready-built machines I decided it was time to create my own little beasts.

The first one was a '16 output switch machine' with FET's as outputs so one can connect the switches to the PCB w/o using relays and the like. The FET's are connected to the processor, an AtMega328P, via Opto Couplers and the PCB has also an OC for the DCC input. There's also a power part which can get the input power from DCC or from a separate power supply. The outputs have their own power input. This was isn't tested, yet. 

After that one a '16 I/O LocoNet DCC' machine came, which has a LocoNet and a DCC connection (but only one at a time) and 16 'things' which can be set up as Input or Output, in groups of 4. Inputs are really only useful if one uses LocoNet which, at that time. I was checking out.

Then I read an article about power districts which got me thinking and came up with a DCC controller with 8 separate DCC outputs of about 1 to 1,5 Amp each, all on a single PCB. Boards are here, but testing hasn't been done yet.

A while later my son came along, asking about lighting for his coaches and vans. As we're both into N scale we needed something quite small. And small it became: 9.5 by 49.5 mm (0.36 x 1.94 inches) with 3 LED's, an AtMega and a simple DCC input on board. So we can program it as we like and control it via DCC. It also has 4 connections for extra lights (rear lighting).  A bigger version (9,5 x 99,5 mm) is in the making. This one will have 6 LED's and some extra features. Still thinking about it.

My latest project involves a changed Geoff Bunza project:  SMA20 Low Cost 17 Channel DCC Decoders. I changed the dimensions of the PCB a little (bit wider, bit shorter) and used SMD techniques. On the PCB one can solder SMD parts: the same parts as used by the Arduino Pro Mini and it has the same pinning as the Pro Mini. There's also a motor driver at the back and a DCC input and power circuitry is also available. Instead of using the SMD components one can put a Pro Mini on it. PCB's are expected to arrive next week.

I'll add some pictures (3D artists impressions) to this post to get an idea what everything looks like. Later some posts about each circuit (including schematics) will be done. It may take a while before I get to it as at the moment the track is being demolished due to the fact we have to move house sometime this year. We have a rented house and the whole neighborhood is being renovated. Our house is being demolished so we have to move.

This is it for now, as I'm going to walk the dog...

  

Willem from Rijen, the Netherlands.

Modelling the Wiesentalbahn, Zell im Wiesental, mid-century in N (that is, after we move to the new house).

read my blog

Reply 0
Jim at BSME

Other processors?

Since you building your own boards from the ground up, have you consider other Atmel/Microchip processors like the ATtiny series instead of the ATMega328?

Don't know the costs difference, might be useful from the space savings since you working in N-scale, I expect for the light decoder you are not using all the I/O on the mega.

- Jim B.
Baltimore Society of Model Engineers, Estd. 1932
O & HO Scale model railroading
Check out BSME on: FacebookInstagram
Reply 0
GT Mills

Yeay!  just getting into this

Yeay!  just getting into this stuff. 

Greg

Grew up next to the Flint & Pere Marquette RR tracks originally laid 1871 through Northville, Michigan

 

 

Reply 0
Michael Tondee

You're way above my pay grade

I am running a DCC ++ system with an Uno and a Polulu motor shield. Sitting on the desk here, after just getting it in today's mail is the Mega and Deek Robot Motor Shield recommended for DCC ++ EX. Right now I just run off a temporary connection to my desktop PC and using my phone as a throttle. I eventually plan on getting a Raspberry Pi to dedicate to the layout. I'm hoping to expand the layout at some point and will need to come up with a booster solution as more locos begin running on it.

Michael, A.R.S. W4HIJ

 Model Rail, electronics experimenter and "mad scientist" for over 50 years.

Member of  "The Amigos" and staunch disciple of the "Wizard of Monterey"

My Pike: The Blackwater Island Logging&Mining Co.

Reply 0
mijnmodelbaan

Re: Other processors?

@Jim B: I considered using other processors, yes. The cost difference is neglectable (few cents). The big thing is the cost of the whole package: PCB, SMD's, assembly and programming.

I could use a very small AtTiny, but then I would have to use another assembling company as the one I'm using now doesn't support those really small ones and my hands are way to big to handle them as well. And then, not all assembling companies accept small quantities and for the really small ones one needs special programming equipment, too. Altogether this will triple or quadruple the costs..

The smallest one I could use at about the same costs is the tinyAVR® 1-series (ATtiny1616/3216). The package is ± 3 x 3 mm, which is 2 mm smaller in both directions as the AtMega and it has enough output pins. And with some High Efficiency LED's the source current would be sufficient.

Yes, you got me thinking again about this... Thanks!

  

Willem from Rijen, the Netherlands.

Modelling the Wiesentalbahn, Zell im Wiesental, mid-century in N (that is, after we move to the new house).

read my blog

Reply 0
mijnmodelbaan

Re: Other processors?

Thought about this, found some solutions (smaller processors), designed some new boards... and then put everything on hold as the prices of the processors went through the roof. I'll just wait a bit, prices will go down again. 

  

Willem from Rijen, the Netherlands.

Modelling the Wiesentalbahn, Zell im Wiesental, mid-century in N (that is, after we move to the new house).

read my blog

Reply 0
vasouthern

I feel your pain....

I started out looking at the DCC++EX, that led to NANO boards and a complete signal system with my own circuit boards. Then a NANO based monitor for my geothermal heat pump, now learning code to build wifi throttles, and just ordered two Raspberry Pi for JMRI and other projects Im exploring.

Amazing what these little boards can do. 

The best source for learning code for me was Paul Mcwhorter on youtube. Now Ill work on python with the Pi.

 

 

Randy McKenzie
Virginia Southern - Ho triple decker 32x38

Digitrax Zephyr, DCC++EX, JMRI, Arduino CMRI
On Facebook:   http://www.facebook.com/groups/485922974770191/

Proto freelance merger of the CRR and Interstate

Based on the north end of the Clinchfield.

 

 

Reply 0
jimfitch

Should've known better

Saw the title to this topic and the first thing that came to my mind was this song by Richard Marx.  

 

 

.

Jim Fitch
northern VA

Reply 0
bkivey

Reminded Of

the mid 70's: you wanted a computer, you built it. Learned machine architecture and programming. Fun stuff. 

I have to admit: I enjoy the topic and discussions, but I'm at a point where I just want stuff to work. 

Reply 0
vasouthern

I remember those days too.

I remember those days too. Jameco used to have kits, my first was a 10mhz 10MB HD and maybe 32k of ram.

Hot stuff and I did everything in BASIC....

Then here comes arduinos and Raspberry Pis and are incredible and honestly very easy to program, even for my aging middle aged mind....

 

Randy McKenzie
Virginia Southern - Ho triple decker 32x38

Digitrax Zephyr, DCC++EX, JMRI, Arduino CMRI
On Facebook:   http://www.facebook.com/groups/485922974770191/

Proto freelance merger of the CRR and Interstate

Based on the north end of the Clinchfield.

 

 

Reply 0
mijnmodelbaan

RE: Jim Fitch

Didn't know the guy, but I like the song!

  

Willem from Rijen, the Netherlands.

Modelling the Wiesentalbahn, Zell im Wiesental, mid-century in N (that is, after we move to the new house).

read my blog

Reply 0
Reply