RWLR - Robin Wood Light Railway
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
Hi Rik,
The Ardunio is very versatile so using push button switches would not be a problem. In the code you would just look for a HIGH or LOW state.
On the transmitter I am planning to use the 'Bind' button for a servo attached to a signal that will mimic realistic signal bounce like the below:
https://youtu.be/m6MmCO9eTKU?t=1m44s
I appreciate this is not of interest to most people at it is programming and electronics, however, happy to write this all up if anyone is interested as there is quite a bit going on behind the scenes
The Ardunio is very versatile so using push button switches would not be a problem. In the code you would just look for a HIGH or LOW state.
On the transmitter I am planning to use the 'Bind' button for a servo attached to a signal that will mimic realistic signal bounce like the below:
https://youtu.be/m6MmCO9eTKU?t=1m44s
I appreciate this is not of interest to most people at it is programming and electronics, however, happy to write this all up if anyone is interested as there is quite a bit going on behind the scenes
Have you considered using one of these cheapo remote control handsets?
http://www.ebay.co.uk/itm/400752673830
Ten quid for twelve relay controlled outputs seems pretty good value to me.
Rik
EDIT - Just noticed you'll be using the bind button. The cheapo Tx/Rx was a suggestion if you were thinking of adding more signals etc
http://www.ebay.co.uk/itm/400752673830
Ten quid for twelve relay controlled outputs seems pretty good value to me.
Rik
EDIT - Just noticed you'll be using the bind button. The cheapo Tx/Rx was a suggestion if you were thinking of adding more signals etc
Last edited by ge_rik on Tue Jul 26, 2016 5:12 pm, edited 1 time in total.
I for one would certainly be interested in a blow by blow account of using the arduino, please Tom.tom_tom_go:119089 wrote: I appreciate this is not of interest to most people at it is programming and electronics, however, happy to write this all up if anyone is interested as there is quite a bit going on behind the scenes
Philip
Sorry To Hi-jack, I love the line and it always a good read. I love the element of hands free on this layout, you hav edone really well. LOve the little details to
Rik you mentioned this. http://www.ebay.co.uk/itm/400752673830, am i right in thinking it controls servos?
Rik you mentioned this. http://www.ebay.co.uk/itm/400752673830, am i right in thinking it controls servos?
'Professional Bodge artist '
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
Thanks for the comments and I am glad it has given you enjoyment reading my little rants My line is even smaller these days after losing the dog bone so achieving 'hands free' operation is key for it all to work as an end-to-end design.Maple:119116 wrote:Sorry To Hi-jack, I love the line and it always a good read. I love the element of hands free on this layout, you hav edone really well. LOve the little details to
Rik's suggestion does not operate servos alone. You will require something in the middle to tell the servos what to do. Rik is using Picaxe microchips whereas I am using an Arduino but both require programming with code to operate.Maple:119116 wrote:Rik you mentioned this. http://www.ebay.co.uk/itm/400752673830, am i right in thinking it controls servos?
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
I may move on to using something like this Rik as it would allow me to operate more servos (the Arduino Mega can operate up to 48 of them), however, as my line is very small I would like to try and run the whole thing with just one controller as in some cases I can use one channel on the Tx to move multiple servos but code them to do different things.ge_rik:119103 wrote:Have you considered using one of these cheapo remote control handsets?
http://www.ebay.co.uk/itm/400752673830
Ten quid for twelve relay controlled outputs seems pretty good value to me.
Rik
EDIT - Just noticed you'll be using the bind button. The cheapo Tx/Rx was a suggestion if you were thinking of adding more signals etc
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
Maple, it has taken me about a month to get to this stage:
I want to eventually write this all up so others can use my code, however, if you want to have a go yourself check out the 'Getting Started' guide to Arduino:
https://www.arduino.cc/en/Guide/HomePage
I want to eventually write this all up so others can use my code, however, if you want to have a go yourself check out the 'Getting Started' guide to Arduino:
https://www.arduino.cc/en/Guide/HomePage
-
- Cleaner
- Posts: 69
- Joined: Mon Mar 09, 2015 5:22 pm
- Contact:
I've got a similar system for the points but using the following board:
http://www.microminiatures.co.uk/acatalog/SERVO.html
The points are connected up via CAT5 cable (4 pairs) allowing two servos on each cable back to the controller. I hard a lot of problems with the remote it comes with so purchased a remote relay board off ebay which is connected to the manual button inputs this board supports.
The hardest problem I'm finding is keeping the servo's dry and working, being outside all year round has meant a lot of swap outs!
http://www.microminiatures.co.uk/acatalog/SERVO.html
The points are connected up via CAT5 cable (4 pairs) allowing two servos on each cable back to the controller. I hard a lot of problems with the remote it comes with so purchased a remote relay board off ebay which is connected to the manual button inputs this board supports.
The hardest problem I'm finding is keeping the servo's dry and working, being outside all year round has meant a lot of swap outs!
HiMaple:119116 wrote: Rik you mentioned this. http://www.ebay.co.uk/itm/400752673830, am i right in thinking it controls servos?
As Tom says - it wouldn't operate servos directly. You'd need something like a Picaxe or Arduino to generate the signals needed for driving servos.
Rik
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
Not sure if your line allows servos to be mounted underneath the track but I have housed each of my servos in plastic takeaway tubs with drainage holes should any water make it inside. We have had a fair bit of rain since I uploaded the video and all is well so far although SWMBO wants the plastic ice cream tub housing the Arduino covered up as soon as possible as it ruins the garden apparently 😆 (I planned to place a building over this anyway).robyholmes:119186 wrote:The hardest problem I'm finding is keeping the servo's dry and working, being outside all year round has meant a lot of swap outs!
-
- Cleaner
- Posts: 69
- Joined: Mon Mar 09, 2015 5:22 pm
- Contact:
No I can't on mine line, I've used little project boxes (Black boxes) with the base removed. They seem to suck the water up. I had no problems first for months but over time they started to get affected. They will either move all the way to one end and jam or jump around. I'm only using cheap TowerPro 9G servos so can't expect much from them. Tried more expensive ones but they don't like the long cable runs.tom_tom_go:119222 wrote:Not sure if your line allows servos to be mounted underneath the track but I have housed each of my servos in plastic takeaway tubs with drainage holes should any water make it inside. We have had a fair bit of rain since I uploaded the video and all is well so far although SWMBO wants the plastic ice cream tub housing the Arduino covered up as soon as possible as it ruins the garden apparently 😆 (I planned to place a building over this anyway).robyholmes:119186 wrote:The hardest problem I'm finding is keeping the servo's dry and working, being outside all year round has meant a lot of swap outs!
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
I am using the same TowerPro 9G servos and I have one connected with a cable over 2m with no issues so impressed so far for the price.
Started working on the building to hide the Arduino, wiring and batteries today:
First time I have used Plastikard for a building project:
I might try and clad it with Plastikard for a wood effect or use some sheet metal I have in the garage.
Started working on the building to hide the Arduino, wiring and batteries today:
First time I have used Plastikard for a building project:
I might try and clad it with Plastikard for a wood effect or use some sheet metal I have in the garage.
- Peter Butler
- Driver
- Posts: 5246
- Joined: Sun Sep 09, 2012 10:33 pm
- Location: West Wales
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
Summer seems a long time ago now on the RWLR, however, I have been busy on the Arduino programming side of things as I want to bring signal control into the mix along with points. I am hoping to replicate a realistic movement similar to this in code:
And here is the signal I am going to be controlling complete with light:
The signal is from eBay and given the cost of material and time that has gone into it's construction I could not of made it any cheaper so thought I might as well buy ready made.
I am also relaying the track around the station area as I was not happy with it, the magnet uncoupling is more reliable when on a level surface...
And here is the signal I am going to be controlling complete with light:
The signal is from eBay and given the cost of material and time that has gone into it's construction I could not of made it any cheaper so thought I might as well buy ready made.
I am also relaying the track around the station area as I was not happy with it, the magnet uncoupling is more reliable when on a level surface...
Who is online
Users browsing this forum: No registered users and 3 guests