Jump to content
 

Day 28: More controller testing - with locos!


TurboSnail

171 views

A bit more development on the controller concept - PCBs have been ordered, so I'm doing some more work on the software. It's now set up to respond to the throttle using centre-off (so no clicking a reversing switch every few seconds while shunting) and it seems reasonably smooth. I had to incorporate a bit of a dead zone in the centre otherwise it was a bit twitchy - it seems pretty smooth now. I've also wired in a light-dependant resistor, which stops power to the track when it senses dark - fortunately this works, as the little Ruston would fall off the end of the desk otherwise!

 

day28.jpg.646d8feb4629f02d6c7a90a54c2bff91.jpg

 

Stats:

No. of lines of code needed to make this work: 55 (with extra spaces to make it easier to read)

Correct resistor to use with a 20k to 2M LDR: 1k (this took considerable experimentation to get right)

Cumulative pushup counter: 3325

  • Like 4

1 Comment


Recommended Comments

I love this.

 

I have the opposite experience - I have a small shunting layout with a homebrew controller running via DCC++. I hate the centre-off speed control and am gradually getting round to building a controller that's even more cumbersome than the direction switch plus speed knob you were using. What I'm going for is a reversing switch, potentiometer power control, and spring-loaded release/lap/apply brake switch, and controller-side physics simulation…

 

I'm expecting it will make shunting more fun. If so, will invest the time in printing/fabricating more elaborate controllers, with notched power handles and gear selectors!

Edited by BusDriverMan
  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...