Jump to content
 

ESU switchpilot controlling arduino


Ouroborus
 Share

Recommended Posts

I've written a small program that sequences a dozen LEDs in some buildings.  An Arduino controls it.  Can the Arduino be connected to a switchpilot in order that the on/off of the sequence be controlled through a CV in the command station?

 

Thanks

Link to post
Share on other sites

In principle yes.  You might want to use an opto-isolator to link the two, to avoid different voltages blowing one up (probably the Arduino which will go "pfff").  

 

Alternatively, there are quite a few DIY Arduino DCC accessory decoder designs around, which you could adopt and merge with your sequencer code, and thus have the whole thing in one package. 

  • Thanks 1
Link to post
Share on other sites

  • 2 weeks later...
On 15/03/2020 at 19:28, Nigelcliffe said:

In principle yes.  You might want to use an opto-isolator to link the two, to avoid different voltages blowing one up (probably the Arduino which will go "pfff").  

 

Alternatively, there are quite a few DIY Arduino DCC accessory decoder designs around, which you could adopt and merge with your sequencer code, and thus have the whole thing in one package. 

 

Appreciated your advice with this.

 

I bought from Amazon some adjustable transformers for a couple of quid and tuned down the output to 9.5v.  Cut the plug off a battery lead and connected up.  Worked perfectly.  The Arduino runs a simple little program that flashes a blue led as a loco passess over.  It uses a hall sensor and the magnets are stuck to the underside of underground locos.   The attached video shows the most basic flash, but the Arduino is controlling four other sensors that each flash slightly differently.

 

Transformers https://www.amazon.co.uk/dp/B07SJFTD7F/ref=cm_sw_r_apa_i_uSsEEbMM5BERC

 

video:

 

Link to post
Share on other sites

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
 Share

×
×
  • Create New...