Another rc system for the PLR

What is your latest project?
Post Reply
User avatar
ge_rik
Administrator
Administrator
Posts: 6497
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Another rc system for the PLR

Post by ge_rik » Sat Aug 24, 2019 10:43 am

I've been tinkering again. Not that impressed with the Bluetooth system - difficult to see the screen in bright sunlight and lack of tactile feedback. So, I decided to make a 'proper' transmitter using NRF24 (radio control) modules.
DSCI3107.JPG
DSCI3107.JPG (107.6 KiB) Viewed 6666 times
.
Yes .... I know it looks familiar - I adapted the artwork on one of my former RC Trains Txs for the new Tx. But inside, it's quite different.
DSCI3106.JPG
DSCI3106.JPG (111.85 KiB) Viewed 6666 times
.
Just did a range test and it easily coped with 30m, even when the loco went behind the shed. I'm still trying to figure out the coding for the sound triggers which sort-of work - but not entirely to my satisfaction.

Much happier with this controller than the Bluetooth tablet/phone version. Slightly more expensive as I need to fork out an extra £15 for the components for the Tx - but it's tactile and much easier to see in sunlight.

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
Lonsdaler
Driver
Driver
Posts: 1226
Joined: Tue May 20, 2014 9:50 am
Location: North Yorkshire

Re: Another rc system for the PLR

Post by Lonsdaler » Sat Aug 24, 2019 12:51 pm

And hopefully the subject of a blog when you're happy with it?
Phil

Sporadic Garden Railer who's inconsistencies know no bounds

My Line - https://gardenrails.org/forum/viewtopic ... 41&t=11077

User avatar
ge_rik
Administrator
Administrator
Posts: 6497
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: Another rc system for the PLR

Post by ge_rik » Sat Aug 24, 2019 1:26 pm

Lonsdaler wrote: Sat Aug 24, 2019 12:51 pm And hopefully the subject of a blog when you're happy with it?
Most definitely - assuming I can figure out why one of the sound triggers isn't behaving itself.

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Re: Another rc system for the PLR

Post by tom_tom_go » Sat Aug 24, 2019 1:31 pm

The range improvement is certainly a perk which the Deltang system suffers (although you can upgrade Tx's with a long range transmitter).

If you can crack the sound sync Rik then you are onto a winner!

DonW
Fireman
Fireman
Posts: 261
Joined: Mon Jul 22, 2019 12:57 pm
Location: West Somerset

Re: Another rc system for the PLR

Post by DonW » Sat Aug 24, 2019 1:32 pm

I looked up NRF24 and there seemed to be alsorts. Is that a 2.4GHz one? That sort of controller looks much more suited to model railway use to me.

Don

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Re: Another rc system for the PLR

Post by tom_tom_go » Sat Aug 24, 2019 2:36 pm

DonW wrote: Sat Aug 24, 2019 1:32 pm That sort of controller looks much more suited to model railway use to me.

Don
I used a similar Deltang Tx to operate my now removed 16mm scale railway with success (it's still a model railway even if it is outside):


DonW
Fireman
Fireman
Posts: 261
Joined: Mon Jul 22, 2019 12:57 pm
Location: West Somerset

Re: Another rc system for the PLR

Post by DonW » Sat Aug 24, 2019 5:24 pm

Ah you misunderstand me Tom. I meant more suited for 16mm than the joystick or gun types. Nice bit of video I enjoyed that. I regard them all as model railways if things like the station buildings etc. are to the same scale. When you get to ride on lines and buildings are adappted to be big enough for real people I don't feel it is a model railway even if the engine is a model.

Don

User avatar
ge_rik
Administrator
Administrator
Posts: 6497
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: Another rc system for the PLR

Post by ge_rik » Sun Aug 25, 2019 8:57 am

DonW wrote: Sat Aug 24, 2019 1:32 pm I looked up NRF24 and there seemed to be alsorts. Is that a 2.4GHz one? That sort of controller looks much more suited to model railway use to me.

Don
Hi Don
Not sure about the others, but the ones I use are 2.4gHz. I sort of assumed the 24 in NRF24 referred to 2.4gHz, but this i's new territory for me, so what do I know?
I much prefer a controller with a speed knob. Joystick transmitters were designed specifically for aero modellers and so seem out of place to me. Of course, if I was really clever, I'd replace the knob with a regulator lever..... :thumbup:

Rik

Edit: 'know' replaced with 'knob' - blasted predictive text!
Last edited by ge_rik on Sun Aug 25, 2019 5:32 pm, edited 1 time in total.
------------------------
Peckforton Light Railway - Blog Facebook Youtube

DonW
Fireman
Fireman
Posts: 261
Joined: Mon Jul 22, 2019 12:57 pm
Location: West Somerset

Re: Another rc system for the PLR

Post by DonW » Sun Aug 25, 2019 1:28 pm

I think you are right Rik. It was just when I googled Nrf24 some of the items were refering to Bluetooth, WiFi and some other frequency. Perhaps they acted as a go between.

Don

User avatar
Busted Bricks
Trainee Driver
Trainee Driver
Posts: 750
Joined: Sat Jan 22, 2011 9:16 pm
Location: Denmark
Contact:

Re: Another rc system for the PLR

Post by Busted Bricks » Sun Aug 25, 2019 3:43 pm

WIfi and Bluetooth also operate around the 2.4GHz band,

DonW
Fireman
Fireman
Posts: 261
Joined: Mon Jul 22, 2019 12:57 pm
Location: West Somerset

Re: Another rc system for the PLR

Post by DonW » Sun Aug 25, 2019 7:58 pm

Thanks for that I didn't realise makes more sense now. I have not kept my technical knowledge up to date.

Don

User avatar
-steves-
Administrator
Administrator
Posts: 2412
Joined: Thu Jul 28, 2011 1:50 pm
Location: Cambridge & Peterborough

Re: Another rc system for the PLR

Post by -steves- » Mon Aug 26, 2019 9:10 pm

Rik

Where do you get the boxes, on off switches and 10k variable resistors with detents in them? Struggling to find anything suitable from the UK :oops:
Last edited by -steves- on Tue Aug 27, 2019 7:49 am, edited 1 time in total.
The buck stops here .......

Ditton Meadow Light Railway (DMLR)
Member of Peterborough and District Association
http://peterborough.16mm.org.uk/

User avatar
FWLR
Driver
Driver
Posts: 4262
Joined: Sat Aug 05, 2017 9:45 am
Location: Preston, Lancashire, UK

Re: Another rc system for the PLR

Post by FWLR » Tue Aug 27, 2019 7:17 am

Ok Rik, that controller does look good....Thoughts about selling them...... :roll:

metalmuncher
Cleaner
Cleaner
Posts: 95
Joined: Sat Oct 20, 2012 4:15 pm

Re: Another rc system for the PLR

Post by metalmuncher » Tue Aug 27, 2019 5:29 pm

-steves- wrote: Mon Aug 26, 2019 9:10 pm Rik

Where do you get the boxes, on off switches and 10k variable resistors with detents in them? Struggling to find anything suitable from the UK :oops:
RS Components is my go-to company for electrical components. They have free next day delivery with no minimum order quantity AFAIK. Farnell is my second choice, but they tack on a handling fee for small orders.

You have to be careful with the information provided by the merchants, its best to check against the manufacturer's specs for the part number. For example, from the RS listing you'd have no idea this pot has a centre detent: https://uk.rs-online.com/web/p/potentiometers/7293426/ but if you check Alps' spec: https://www.alps.com/prod/info/E/HTML/P ... 4001T.html you can see that part number does have a detent.

I'm glad to see someone has made progress testing the RF24 for model railway use, I have a prototype transmitter using the RF24 pretty far on, but kind of stalled on the receiver front, it's good to see the range has been tested and is adequate. I think one of the benefits of using these modules is you get two-way communication, so you can send information like the battery charge level back to the transmitter.

User avatar
ge_rik
Administrator
Administrator
Posts: 6497
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: Another rc system for the PLR

Post by ge_rik » Tue Aug 27, 2019 6:40 pm

-steves- wrote: Mon Aug 26, 2019 9:10 pm Rik

Where do you get the boxes, on off switches and 10k variable resistors with detents in them? Struggling to find anything suitable from the UK :oops:
Hi Steve
When I was running RC Trains I had to do a deal with a Chinese company for the pots - they let me have 500 instead of their usual minimum order of 1000. However, more recently I bought five on eBay - they do come up from time to time - eg https://www.ebay.co.uk/itm/401612550350

The on off switches come from Rapid - https://www.rapidonline.com/sci-r13-529 ... ch-78-0188

The cases come from Eltop Electronics - http://www.eltopelectronics.co.uk/enclo ... ompartment

Hope that helps

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
ge_rik
Administrator
Administrator
Posts: 6497
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: Another rc system for the PLR

Post by ge_rik » Tue Aug 27, 2019 6:44 pm

FWLR wrote: Tue Aug 27, 2019 7:17 am Ok Rik, that controller does look good....Thoughts about selling them...... :roll:
Hi Rod
No. I don't think they are as good or as reliable as Deltang and so wouldn't be happy to make them for others. I will share the methodology on my blog for people to make their own, though.

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
ge_rik
Administrator
Administrator
Posts: 6497
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: Another rc system for the PLR

Post by ge_rik » Tue Aug 27, 2019 6:57 pm

metalmuncher wrote: Tue Aug 27, 2019 5:29 pm I'm glad to see someone has made progress testing the RF24 for model railway use, I have a prototype transmitter using the RF24 pretty far on, but kind of stalled on the receiver front, it's good to see the range has been tested and is adequate. I think one of the benefits of using these modules is you get two-way communication, so you can send information like the battery charge level back to the transmitter.
I must admit to using someone else's code and then adapting it. I got the speed control sorted out but it's not as precise as Deltang because the library I was using for PWM seems to have a few bugs and so I'm having to rely on lower pwm settings than I'd like. I've nearly sorted out the tx driven sound triggers but am finding they sometimes conflict with each other. So, a bit more work to do, but that's part of the fun.... ;) :?

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

DonW
Fireman
Fireman
Posts: 261
Joined: Mon Jul 22, 2019 12:57 pm
Location: West Somerset

Re: Another rc system for the PLR

Post by DonW » Tue Aug 27, 2019 10:06 pm

I think finding some suitable code and adapting it has become the norm these days. The problems arise when the code has bits in it that you dont need but may have unwanted effects. However it can be a devil to identify what is causing the effect and what part it plays. It may be the unwanted effects are caused by something vital. It would be lovely to have nice clean code but it is not practical unless writing code is your life.
Having got interested I looked up Arduinos and how to code them. It is basically C in format which I last used over 20 years ago but of course driving the various devices you attach to it is another matter.

Don

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests