Skip to main content

Reply to "Wireless remote control of features in rolling stock from locomotive"

gunrunnerjohn posted:

I think we have a bit more than "hello world", at least what I'm considering.  I'm still a little fuzzy on the ESP8266 in a stand-alone environment and programming it from the Arduino IDE, that doesn't sound quite right, but maybe I just don't get it yet.

I looked around and I find a ton of slightly different ESP8266 products, hard to know which one to pick.

What I mean by a 'hello world' in this case is having one module set up to send data, and the other to receive said data.  the bulk of the code is in the getting each module to talk to each other.  This is usually done by setting up one module as a wifi access point and hosting an html page on it to store the data states, and having other modules read the page to look for new data.  

There are a lot of options out there for the esp8266, but the two main versions of use today are the esp-01 and esp-12.  The 01 is the type that is usually found on a board with 8 pins in a 4x2 pattern.  These have 2 GPIO's, and cost about $1.85 from the usual suppliers out of China.  The ESP-12 uses the same 8266 chipset, but it has more of the pins connected for you to use.  the -12 has 11 GPIOs, and one 10 bit ADC.  These usually come in a metal can package similar to other ble and wifi chips.  the esp-12 usually cost around $2.25 each.  While more powerful, they are harder to use for hobby level work because of the package type.  


In the more general of the what and how, it's my understanding that the what is to have a wireless device that takes an on/off from some source, such as an unused feature in an engine or perhaps a head light or back-up light and transmits that information to another device that can turn on/off a relay or similar device to match the state.  ex: when the back-up light in a main engine turns on, so will the one in a dummy unit.  The hows, as I understand it so far need to do this in a way that allows for many of these devices to work along side each other without causing each other to malfunction, or interfering with any other devices.  

Is that about right?

OGR Publishing, Inc., 1310 Eastside Centre Ct, Suite 6, Mountain Home, AR 72653
800-980-OGRR (6477)
www.ogaugerr.com

×
×
×
×
×