Category Archives: Articles

Why do Developers release iOS versions before Android?

Category : Articles

If you are an Android user, you may have noticed that developers commonly release on iOS before Android. Why is this? There are actually a number of reasons worth understanding.

iOS has less devices to develop for
In iOS you basically have 2 devices to develop for (iPhone and iPad). Although there are slightly taller and shorter screens to consider on various models, testing is very straight forward. On the other hand, there are >50,000 different Android devices to develop for and take into consideration.

iOS enforces Operating System software updates
Apple works really hard to pester users into getting the latest version of iOS. Although users may not like this, it makes life much easier for developers, because the majority of iOS users are running on the latest software update for their device, meaning less bugs (bluetooth connectivity). The 50,000+ Android devices out there are running thousands of different versions of Android (ranging from version 4.3.1 to version 12). Most Android device manufacturers write their own Android software, which makes it even trickier. Large companies (like Samsung) have giant programming teams developing updates for every device they have ever put out (so Samsung devices operate fairly consistently). Smaller Android manufacturers obviously have less programming resources, and their updates may be slower to come out (and perhaps not entirely bug free). Bluetooth control products require and rely on an Android operating system that is bug-free (when it comes to handling bluetooth).

Knowing this, it is generally prudent to develop for iOS first. This way you are developing on a more consistent platform, and can focus on getting the functionality of your software where it needs to be (which is often an iterative process through updates). Once you release on Android you need to be prepared to spend time addressing device-specific issues that only appear in a limited amount of Androids out there.

Our development process is: develop on iOS, verify everything functions, port to Android. We know there are many Android users out there and appreciate their support.

If you are an Android user, while you are waiting you might consider you can generally purchase a used iPhone6s plus on eBay for ~$50, and you don’t need any sort of plan to use it.


Unable to Connect to Train

Category : Articles

If you think you have setup everything correctly, and cannot see your train/board, there are several possible issues to check:

Do NOT pair with train from settings >> bluetooth.     When you connect to a bluetooth train, it becomes unavailable to other applications and devices. For this reason, do NOT pair with your train from settings >> bluetooth (as you may be used to with other bluetooth devices). Doing so will make the train unavailable in BlueRail or E-Z® App. It is ok to use settings >> bluetooth to test if your train, but you will need to hit disconnect in order to see the train in one of the control apps. If you do connect to the train (for test purposes) within the settings >> bluetooth section, you should choose “forget this device” to prevent your settings app from monopolizing the train in the future.

Does your train have power? Check to see that your layout is receiving power or battery has charge. If the BlueRail board is receiving power, a green LED will flash on the board.

Is your train connected to another app or smart device? When an app on a smart device (like a smartphone or tablet) connects to a bluetooth train, that train becomes invisible to other users. If your train is receiving power and you still cannot see it listed on your Home screen, check to see that the train is not connected to another smart device in range that is running a bluetooth train control app (BlueRail or E-Z® App). The best way to rule this out is to temporarily cut power to the locomotive for 30 seconds. The train should become available in the Home screen once the board within the train has powered back up. Also, if you have both BlueRail and E-Z® App installed on your smart device, make sure you only run one app at a time (and that the second app is not running in the background).

Is bluetooth working properly on your smart device? Bluetooth service in smart devices sometimes acts up and gets glitchy. This can generally be resolved by temporarily switching off bluetooth in your smart device and turning it back on, or rebooting the smart phone. 90% of connection issues can be resolved by turning bluetooth off and then back on within your device.

ANDROID SPECIFIC ISSUES There are more than 24,000 models of Android. Each Android manufacturer writes their own Android software and updates. The most popular brands generally have bluetooth implemented properly and work great. Less popular (or older) Androids can have bluetooth bugs that can only be solved by the Android manufacturer releasing an update fix. One great way to determine if your connection issue is caused by your Android is to borrow a recent iOS device (iPhone or iPad) and see if everything works. If so, your Android might need an update fix. See if any software updates are available for your Android. The general method for updating your Android software is: Settings >> General (scroll down) >> About Device >> Software Update. See THIS ARTICLE.

Clearing the bluetooth cache on your Android. Sometimes Android bluetooth issues can be resolved by clearing the bluetooth cache. This procedure may be slightly different on different Androids.

1) Tap the Settings icon.
2) Hit Application Manager.
3) Swipe the screen left or right in order to find All Tabs.
4) Select Bluetooth.
5) Tap Clear Cache.
6) Select Clear Data.
7) Choose Ok.

Turn on Location Services in Android. Due to changes in Bluetooth permissions with Android 6, the app may not be able to detect BLE trains properly. To resolve this issue, go to Settings in the OS–> Location and turn on location services.

9-PIN HARNESS NOT PUSHED IN ALL THE WAY If you can connect, but are having trouble running your loco (or the lights) it is possible that the 9-pin connector isn’t pushed all the way into the board, so some of the colored wires aren’t really making contact, and therefore not getting any power. Before you mess with it, I have found these connectors can be delicate and are easily broken, so I like to take a little strip of duct tape and wrap it around the harness right where the 9 wires go into the plastic JST connector – just to reinforce it before messing with it. Once its reinforced, push the connector all the way so it is well seated.

Is your phone/tablet bluetooth smart? Assuming this is your first time operating trains with a certain smart device, check to make sure your smart device supports bluetooth smart.


Sound Issues in iOS

Category : Articles

If you ever don’t hear any sound while in the iOS app, this article may help you.

One thing to know is that if your phone/tablet has been asleep or the BlueRail App has been left in the background while you use other apps, the sound may not work. This can be rectified by closing the app completely (double-click and swipe the app upward) and restarting the app.

If this doesn’t solve your problem, here are a couple of suggestions for getting sound working:

First, make sure the BlueRail app is turned off entirely (and not running in the background) .

Check the little mute slider on the side of the phone/ipad.

Use the volume buttons to turn volume up.

Touch the home button and slide finger upward to bring up the grey settings bar (may take a couple of attempts). Make sure the volume is all the way up on this screen. On this same screen, make sure the “moon” (do not disturb) is turned off.

Now see if the sound is working.

If not, the two things to try are:
1) go into sounds and switch ringtones momentarily.
2) restart device.

Also, some iOS devices give you the option of using the little side slider to “lock orientation” (instead of for muting purposes). This option is generally controlled from:

Settings>General>Use Side Switch to: Mute System sounds / (Lock Screen Rotation )

If you have the side switch set to “lock screen rotation” then the system sound control is in the task bar. Access the task bar (described above), swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.


Considerations for using BlueRail board in larger gauges

Category : Articles

BlueRail’s first board targets HO steam tenders, S, On30 and lower amperage O and G trains.  A narrow board (more appropriate for for HO diesels) and a high amperage board will be released subsequently. Many people are happily running this first board in their O and G locos. Understanding the board’s amperage specs is key to deciding if this first board will work in your larger scale loco.

The first basic thing to check (regardless of amperage) is to make sure your DC can motor(s) is electrically isolated from both the chassis and the track. This is a necessity for using any train control system to run your loco. Please refer to THIS ARTICLE to test that.  It is also of course key that you have determined you have the space somewhere to put the board.

The second thing (which is related to amperage) is knowing your locomotives SLIP and STALL current. HERE is an article on how to determine your loco’s stall current.  HERE is a great online reference I have found with the stall and slip currents of many trains already listed.  The idea is to understand how many amps your loco draws when it is trying it’s hardest (ie pulling 100 cars uphill).  There is also a second part of this related to how slippery your wheels are. If your wheels start slipping under a certain amount of load, your loco will never actually reach it’s full stall current (when pulling many cars uphill). For this reason, that site lists both the “slip” stall current and the “hard” stall current.  When testing stall current yourself, this is a factor of how hard you push down while testing (ie hard enough to keep the wheels from turning or not). If your loco has a SLIP current of 2 amps or less, it is a candidate for this BlueRail board.

Overload ProtectionThe maximum amperage support from the board follows a curve (in RED above). Locos generally draw higher current when they first start rolling. For this reason, the board is designed to handle 8 amps for the first 1/2 second and 4 amps for the first second. This is to give some extra headroom as you first start to roll. After 15 seconds of continuous pulling, the curve is down to 2 amps.  The board assumes you have a little momentum going by then, and your loco is not close to “stalling”.  After 1 minute of continuous pulling, the amperage support eases down to 1.2 amps.  If the board senses the max amperage support has been exceeded, it shuts itself off  (via a PTC fuse) and protects itself.

For discussion purposes, referencing a G scale Bachmann 4-6-0 on the chart we see a “slip” current of 1.5 amps and a “hard” stall current of 4 amps.  Depending on how many cars it is pulling and how steep and long the inclines are, it can be kept within the board’s amperage curve.  This loco may be able to pull 10-14 cars on a level layout, and perhaps 8-9 cars on an incline. Pulling 20 cars up steep inclines that last more than a minute (on the other hand) would likely trigger the onboard protection.

The objective is to consider your loco’s slip and hard stall current, how many cars you intend to pull, and how steep and long your inclines are, and decide if this first board is in the ball park.  With the board in place, run your train with a couple of cars, and add a few more till you find the “sweet spot” as to how many cars you can pull (on both level track and an incline).  Don’t start right off pulling 20-30 cars. The durability of the PTC fuse is a factor of how much you exceed the amperage draw by, so if you throw 10 amps at it all it once you could damage it.  But as long as you gently find your limits and then stay within them, you should be fine.

You can wait around for the higher amperage board (we do not yet have a release date on that) but the truth is, this current board might be sufficient for some of your locos. Please visit our User Showcase to see some of the locos this board is currently used in.

Large-Scale-Decision-Chart


Using an old BlueRail Blue Horse board to run DC trains and lights on a conventional train set

Category : Articles

This article is written about the old “Blue Horse” boards. Similar behavior can be achieved using BlueRailDCC boards, but BlueRailDCC boards do not support multiple LEDs.

You can use a BlueRail Blue Horse board to control a DC train layout and up to 4 lights or accessories from your smart device. Use the diagrams below to see how to easily modify a 9 wire harness and connect a power supply. This is a great simple solution for HO, N or even Z train sets. You cannot control separate trains independently, but you can control either a single train or multiple locos as a consist.

Using a BlueRail board to run DC trains on a conventional train set


Note: to simplify the diagram, the colored wires on the 9-pin plug in these diagrams are not in the proper order. Please use the wire color to make your connections.

The diagram below shows how to power up to 4 low voltage LED lights on your layout. These can be independently controlled from your smart device in the “Light Panel”.

Using a BlueRail board to power low voltage lights on a conventional train set


BACK-EMF NOTE: If you plan on using multiple BlueRail boards to control different blocks on your layout, you will need to turn off back-EMF in each board. This is accomplished by going into the “Settings” screen in the app for each board, and toggling on the “Advanced Tuning” panel. Then, using the “Tuning Fork” button (now accessible in the Train Control screen) set the following three settings to a value of “0”: Proportional, Integral, and Differential. With all 3 PID values set to “0” back-EMF will be turned off. If you do not turn back-EMF off, you may find that your locos slow down briefly as they enter each new block.


Example Videos

For the Bachmann Trolley, N scale trains and some other conventional locos you may achieve improved slow speed performance by adjusting the “Differential” value in the Advanced Tunings to “0” (instead of the default of “.235”). You’ll find this in the board “Settings” screen by clicking the little cog on the train control screen.


Wiring directly to a Bachmann loco (R, M+, L-, B+, L+, B-, M-, L)

Category : Articles

The BlueRail board can be used as a plugin board (plugging into a DCC-Ready port) or as a complete replacement PNP board. Sometimes when putting the BlueRail board into a tight place, it is preferable to remove the old board to make space for the BlueRail board. On Bachmann boards, each wire usually has a letter code where it is soldered to the board. Here is a list of some of the letter codes to help you determine what each wire leads to:

Letter Code Purpose NMRA wire color
R Right Rail (+) Red
L Left Rail (-) Black
M+ Motor positive Orange
M- Motor negative Grey
L+ Light positive Blue
L- Light negative White, Yellow, Green or Violet
B+ Battery positive
B- Battery negative

Once you have identified each wire, simply connect them to the color-coded wire on the 9-pin harness as in this diagram:

BlueHorse datasheet - small


Tuning Locos and the Advanced Tuning Panel

Category : Articles

This article is about the “Advanced Tuning Panel” in the BlueRail App. For the vast majority of users, you just drop your board in and you’re off and running. But electric motors can vary from loco to loco, and its inevitable that there are going to be some locos that need a little additional tuning to the default settings in order to achieve smooth slow speed operation. For this reason, we have included an “Advanced Tuning” panel in the BlueRail app – to allow users to “tweak” slow speed operation. This article is for those people.

So how do you know if your loco needs advanced tuning? Symptoms that you might need advanced tuning are if your loco jiggles a little when traveling at slow speed, or if it starts to roll, then stops.

If the loco is stopping immediately, you’ll also want to read the articles about “measuring you loco’s stall current” and “verifying your motors are isolated from the chassis and the rails“. You can recognize stops related to amperage issues, because they are usually followed by a “cool-down” period, after which a fuse in the board resets itself (or you may have to turn the board off and back on).

You’ll know your loco is stopping because of a tuning issue, because you can immediately run the train again the moment after it stops.

A little technical background, we use Pulse Width Modulation to run the loco motors. This is essentially a sine wave with 16,000 pulses per second. The exact shape of this sine wave is defined by an equation (we’ll call the PID equation), and this equation has 8 variables that dictate the shape of the waves. By adjusting these 8 variables, you can “tune” the shape of the wave to pretty much any motor. At BlueRail we have tuned these 8 variables to values that seem to work for 90% of the locos out there (we call these the default tunings). If you’re loco is jiggling at slow speeds, or starting then stopping (and its not an amperage issue) then it’s time to play with the tunings.

Some of the tuning variables you may be familiar with. Start Voltage is one. Three popular options for Start Voltage (0v, .6v and 1.2v) can be found in the loco settings screen.

Start Voltage simply gives your loco a little extra voltage so it doesn’t take so long to get rolling. Its kind of like “frosting” on the tuning settings, so when diagnosing a tuning issue it’s safest to set the Start Voltage to 0. This is because Start Voltage can cause issues if it is set too high. You can always come back and add some Start Voltage in the end after you are happy with your loco tuning.

The first tuning variable you want to play with (after setting Start Voltage to “0”) is the “Update Period”. The Update Period dictates how often (in milliseconds) that the loco speed is measured and the PID equation gets run. The most popular settings we have found for this are 10ms, 20ms and 35ms. So inside the settings screen you’ll find these 3 options. Try these options, and see if they affect you’re locos initial take-off. If they don’t, it’s time to go to the “Advanced Tuning” panel. To get to the Advanced Tuning panel, go into the loco settings screen and scroll to the bottom till you see “Advanced Tuning”. (The Loco Settings screen is accessed by clicking the “Cog” in the Train Control screen).

Turn on the Advanced Tuning panel (by sliding the toggle). When you return to the Train Control screen, you will see a small “Tuning Fork” button at the left of the screen. Slide that out to access the Advanced Tuning screen. (This screen will look slightly different based on whether you are using Android or iOS.)


Advanced Tuning Panel


In the Advanced Tuning screen, you will see all 8 variables that control the PID equation. You’ll recognize “Start Voltage” and “Update Period” at the top of the panel, displaying the numbers you have selected in the loco settings screen. (Please note Start Voltage is displayed in tenth of 1 volt, so 0v, .6v and 1.2v display as 0, 6 and 12).

To play with the tunings, make sure the Start Voltage is at 0, and begin tweaking the “Update Period” as you run your loco (using the up and down arrows). Try numbers below 10ms and above 35ms, and see how they affect your loco starts. Don’t use values below 0.

If this doesn’t really have any affect, set the Update Period to a middle value (20 ms) and move down to the “Differential” field (second from the bottom). This is the second most common PID variable that can affect slow speed performance. Try setting Differential to “0” and run your train. I have found Bachmann trolleys, N Scale, and some older trains need a setting of “0” to start properly. If that doesn’t work, try setting the Differential higher than the default setting of “.23”. If you CAN find a Differential setting that has a positive impact on your slow speed takeoffs, go back to your “Update Period” and see if you can use it to refine things. If not, you can move on to the other variables (Proportional, Integral and Feed Forward…) to see if you can get any affect from tweaking them.

There is a “Restore Defaults” button in the panel (to bring you back to the original default tunings) so don’t worry about trying different settings.

“Power Factor” acts as a global power multiplier which you might as well leave at 16.

If you DO find tunings that improve the low speed performance of your loco, please email BlueRail with your settings and the type of loco you have. We will add this to our database of presets so future users with the same loco can utilize your settings.

Thank you for your patience and feedback in helping us find the best tunings settings for every model of locomotive on the market. With your help we will add them to the app as presets so future users can avoid having to tune their locos.


Charging Batteries from BlueRail Trains

Category : Articles

The batteries supplied by BlueRail Trains are high quality commercial cells. These are not RC cells. They come from a factory that makes many batteries for the medical industry.

It is best to charge 250 packs at 100mA(.1 amps), 400 and 450 packs at 200ma(.2 amps), 500 packs at 300mA(.3 amps), and 850 packs at 400mA(.4 amps). The pack is a 3S or 11.1 volt pack. The charger should be set accordingly.

Only use a charger that is designed for Lithium Polymer batteries.

The recommended battery charger is the HiTec RC X1 AC Plus. User can set the charge rate. They are very reliable. The X1 AC Plus is available at RC shops and on Amazon.

Another good charger we have found is the iMax B6AC Dual Power. I have been told that the IMAX B6AC v2 requires a balance connector to be present by default (our batteries do not have or need balance connectors). This default can be changed in the iMAX system settings (Balance Connector = NO).

Do not charge with the cheap wall plug in chargers. The charge rate is usually 500ma to 1 amp. This is to high a charge rate. The charger is not programmable.

These packs have a small PC board on each cell. This is called a PCM. It keeps the battery from over charge, short circuit, over discharge, and low voltage.

Low voltage is especially important. It cuts off the discharge at 3 volts per cell or 9 volts. Running an unprotected pack until it stops can and will damage the battery.

Packs from the RC world do not have PCMs. The RC packs are designed for high discharge rates. They would trip the PCM, which is set to trip at 3 amps discharge.

After tripping, the PCM will reset after a few minutes.

DeadRail Kit Battery Size Options:

11.1 volt batteries for the DeadRail kit come in a variety of sizes:

Capacity Length Width Height Charge Setting Comment
250mA 33mm 25mm 18mm 100mA Smallest size available
450mA 46mm 23mm 18mm 200mA Medium size
500mA 40mm 27mm 18mm 200mA Medium size
850mA 52mm 31mm 18mm 400mA Large size – good for larger scales

The 450mA and 500mA batteries are comparable in size to a 9-volt battery.

A popular strategy is to use a 250mA battery (which has the smallest profile) and situate the battery in a place where it can be swapped out for recharging.

The number of running hours per charge varies based on the amperage draw of your loco, the number of cars you pull, and inclines on your layout. Some users get 1-3 hours per charge.

Some safety precautions for all lithium batteries:

Charge only at recommended charge rates.

Never leave the batteries unattended while charging.

Charge on a nonflammable surface.

Do not charge near flammable objects.

Don’t get the packs wet.

If the cells start to swell or grow in size, discontinue use.

Do not attempt to disassemble the battery pack.

Do not puncture the cells with sharp objects.

Store at room temperature

Dispose of properly. Not in the trash.

Batteries provided by DeadRail Installs.


Updating Android / iOS

Category : Articles

It is very important when using Android (or iOS) to run bluetooth trains that you update your device to the latest software available for your model.

If you are NOT running the latest version available for your device, you may have bluetooth bugs that will affect bluetooth performance.

The minimum version of Android supported is 4.3.


Apple Logo

General method for updating iOS:

Settings >> General >> Software Update

Android ogo

General method for updating Android:

Settings >> General (scroll down) >> About Device >> Software Update

 

Most devices provide a back-up method (which is recommended prior to performing updates).

Please use the links provided below to learn more about updating your specific device:


Updates from Wireless Providers:

Verizon Wireless Software Updates
ATT Wireless Device Support
Sprint Device Support
T-Mobile Software Updates

Updates By Manufacturer:

Apple
BlackBerry
Google (Nexus)
HTC
Kyocera
LG
Motorola
Nokia (Microsoft)
Pantech
Samsung
Sony


How to update to the latest BlueRail App on your smart device

Apple Logo

General method for updating iOS:

App Store >> Updates (Lower Right)

Android ogo

General method for updating Android:

Play Store >> (Click three bars in upper left of search box) >> Apps & Games >> My apps & games >> Updates

Sometimes the Google Play store will cache the page from the last time you opened Google Play (and not display the latest available updates). To “clear the cache” on your Google Play store, do the following:

Settings >> General >> Applications >> (scroll down) Google Play Store >> Clear cache


BlueRail Trains Dead Rail System

Category : Articles



The Dead Rail kit is the first battery power system that is truly plug and play. The kit includes a board, lithium protected battery, magnetic reed switch, a 9/8 pin wire harness, and all connections (assembled). The harness included in the kit is a 9 pin NMRA JST plug to 8 pin NMRA plug. Please use the following guidelines when installing your kit.

Magnetic Reed Switch
Be very careful when trying to bend the leads on the magnetic reed switch. Never put pressure on the glass part. Only try bending when holding the leads. Needle nose pliers are good for holding the leads while bending.

On/off Switch
Mount the on/off switch on a spot near the top or side of the tender or loco shell. Use a reasonably strong magnet. The magnet will work through a plastic shell. A metal shell might require some testing to find a good spot.
Do your experimenting before removing the protective sheet over the adhesive. The on/off switch doesn’t need to be attached to the loco as long as it is not in the way of removing the battery.

Battery
Use a programmable charger. Wall plug in chargers have been known to fail. They charge at a constant rate which may be too high for smaller lithium batteries.

Recommended is the Hi Tec RC X1 AC Plus. There are other programmable chargers available. Make sure it has the capability to charge at .1 or .2 amps. Many chargers come in DC or AC versions. DC versions require a separate power supply. AC versions plug into the wall.

http://hitecrcd.com/products/chargers/acdc-chargers

Charge the 450ma 11.1V pack at .2 amps or 200ma.
The battery pack has protection on the cells. This protects against over charge, over discharge, and short circuit. The pack will stop working until the fault goes away. Then the boards will reset and the battery will charge or discharge again. If this happens, discover what the cause is.

If the system doesn’t work:

Is the battery plugged in correctly? It is possible to plug the battery in backwards. The plug is polarized. Nothing will happen.
Is the battery charged?
Is the on/off switch in the on position? The red light will be lit when on. The green light will blink on the BlueRail board.
Is the harness plugged in tight?

Article about Battery Charging

Dead Rail Plug and Play System