User Tools

Site Tools


users:dagnall53:node_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
users:dagnall53:node_setup [2019/02/14 12:43]
dagnall53
users:dagnall53:node_setup [2019/02/14 19:32] (current)
dagnall53
Line 1: Line 1:
  ​\\ ​  ​\\ ​
-**ESP8266 Rocnet Nodes**  +**WiRocS Node Information**  
-  * [[:​users:​Dagnall53:​Description|WiRocs Description]]  +  * [[:​users:​Dagnall53:​Description|Back to WiRocs Description]]  
-  * [[https://​github.com/​dagnall53/​ESPMQTTRocnetSound|ESP8266 ​Code]]+  * [[https://​github.com/​dagnall53/​WiRocS|Source ​Code]]
   * [[:​users:​Dagnall53:​Node_Setup|Node_Setup]] ​   * [[:​users:​Dagnall53:​Node_Setup|Node_Setup]] ​
   * [[:​users:​Dagnall53:​Troubleshooting|Troubleshooting]] ​   * [[:​users:​Dagnall53:​Troubleshooting|Troubleshooting]] ​
   * [[:​users:​Dagnall53:​Hardware|Hardware]] ​   * [[:​users:​Dagnall53:​Hardware|Hardware]] ​
  \\  \\
-** RocClient Experiments ** \\ 
-Rocrail Client experiments using the Wemos Oled Battery board. 
-  * [[:​users:​Dagnall53:​RocClientTool|RocClientTool]] ​ 
-  * [[:​users:​Dagnall53:​RocClientThrottle|RocClientThrottle]] ​ 
  
 ---- ----
  
- +====== ​WiRocs ​NODE SETUP ======
- +
-====== ​ESPMQTTROCNETSound ​NODE SETUP ======+
  
 ===== Setting up the Node Software ​ ===== ===== Setting up the Node Software ​ =====
  
-Full documentation with illustrations is in {{:​users:​dagnall53:​setting_up_the_node_and_using_rocrail.pdf| Node Setup.pdf}}+Full documentation ​for the original ESPMQTTWIFOROCNET code setup, ​with illustrations is in {{:​users:​dagnall53:​setting_up_the_node_and_using_rocrail.pdf| Node Setup.pdf}} ​This should remain largely valid for the updated '​WiRocS'​ code. 
  
 This includes full details on:  This includes full details on: 
Line 73: Line 67:
   * Port :8 is Servo NodePortType :0  Pi03_Setting_options32 ​   * Port :8 is Servo NodePortType :0  Pi03_Setting_options32 ​
  
 +I would recommend keeping D8 as an output as most boards have a relatively strong pull down resistor on this pin to assist with startup. This makes it harder to use as an input. ​
  
- +(As a very simplistic overview, NodePortType Determines if the port is Input or Output, Pi03_Setting_options ​determines if the output will be digital, PWM or a servo drive.) See also [[:​users:​Dagnall53:​ESP32Differences|ESP32 Setup]] ​
-(As a very simplistic overview, NodePortType Determines if the port is Input or Output, Pi03_Setting_options ​determine ​the Pi03 settings.)+
  
  
 Use the Rocrail Rocnet Programming tabs to get a much clearer picture of exactly how the ports are set) Use the Rocrail Rocnet Programming tabs to get a much clearer picture of exactly how the ports are set)
  
-When set as a Loco, the code expects LEDS connected to 3v3 and the Back or Frontlight pins (D2 and D5). Currently the "​fixed"​ nodes cannot have their phase altered using the Rocrail Rocnet Programming PI02 tab.\\ +When set as a Loco, the code expects LEDS connected to 3v3 and the Back or Frontlight pins (D2 and D5). Currently the "​fixed"​ nodes cannot have their phase altered using the Rocrail Rocnet Programming PI02 tab. The illustration on the left shows a Loco Version using a small "​wemos"​ 8266 board with an external DAC, and a RC Servo too DC motor interface. The illustration on the right shows a PWM driver, which is smaller and more efficient than the RC servo option.\\  
- \\ +{{:​users:​dagnall53:​img_2072_1_.jpg?200|}}{{:​users:​dagnall53:​img_2121.jpg?​200|}}\\
-{{:​users:​dagnall53:​img_2153.jpg?800}}+
  
 +----
  
  
-  
-  
  
- 
- 
- 
- 
- 
----- 
  
 ====== CV settings for Mobile Decoder ====== ====== CV settings for Mobile Decoder ======
Line 103: Line 89:
 Changing the Loco address **can** be done with this interface, but care needs to be taken to ensure the programming interface loco address and the loco address stay in synch. Changing the Loco address **can** be done with this interface, but care needs to be taken to ensure the programming interface loco address and the loco address stay in synch.
    
-To change from a Short Loco address to a Long loco address, First set the Loco "​long"​ address to the Current Short address. Then change the Loco so it reads the Long address, and then chang ethe Loco address to the desired Long address. ​  +To change from a Short Loco address to a Long loco address, First set the Loco "​long"​ address to the Current Short address. Then change the Loco so it reads the Long address, and then change the Loco address to the desired Long address. ​  
  
-=== Sound CV settings ​===+===  Sound System ​=== 
 +For details on the [[:​users:​Dagnall53:​Sound_System|Sound System]] ​
    
-The volume of each "​F"​ effect is controlled by a CVThese are defaulted ​to 127, but can be changed using normal DCC "CV change"​ procedures:+=== Speed settings=== 
 +  WiRocS tries to be NMRA compliant. ​
   ​   ​
-  * CV[100]=127;​ // Overall volume control ​ 
-  * CV[101]=127;​ //volume for F1 
-  * CV[102]=127;​ // F2 
-  * CV[103]=127;​ //F3  
-  * CV[104]=127;​ //F4 
-  * CV[105]=127;​ 
-  * CV[106]=127;​ 
-  * CV[107]=127;​ 
-  * CV[108]=127;​ // Volume for F8  ​ 
-  * CV[110]=127;​ // volume for chuffs 
-  * CV[111]=127;​ // volume for Brake Squeal 
- 
-=== Speed settings: === 
-  
   ​   ​
   * CV[2]; Minimum speed setting (not MPH!..) Will have CV 66 or 95 added to set power at minimum speed demand ​   * CV[2]; Minimum speed setting (not MPH!..) Will have CV 66 or 95 added to set power at minimum speed demand ​
-  * CV[5]; Multiplier for speed setting, is multiplied by required speed to set power to motor +  * CV[5]; ​High Speed Multiplier for speed setting, is multiplied by required speed to set power to motor 
-  * CV[66]; Forward speed trim Added to CV when in "​forward"​ +  * CV[6]; Mid Speed multiplier (used for first half of the throttle) 
-  * CV[95]; Reverse speed trim Added to CV when in "​reverse" ​+  * CV[3]; Acceleration rate (typ 2) 
 +  * CV[4]; Decelleration (typ 2) 
 +  * CV[29]; Standard Config usage 
 +  * CV[67-94] ; Speed table    
 +  * CV[66]; Forward speed trim multiplier (multiplies by  ​CV[66]/​127 ​when in "​forward"​) 
 +  * CV[95]; Reverse speed trim multiplier (multiplies by  ​CV[95]/​127 ​when in "​reverse"​
   * CV[65]; Kick start sets duration of high speed motor setting when starting.   * CV[65]; Kick start sets duration of high speed motor setting when starting.
  
Line 136: Line 115:
 Set the kick start CV65 to a value so that the motor reliably starts without a visible kick. If it kicks noticeably then lower the value. If it does not start, increase the value. Set the kick start CV65 to a value so that the motor reliably starts without a visible kick. If it kicks noticeably then lower the value. If it does not start, increase the value.
  
-Set the loco to 10 mph and adjust CV5 so the loco travels at 10 mph+Set the loco to desired speed and adjust CV5 and CV6  ​so the loco travels at the speed you want.\\ 
 +Or use the speed table to select the speed 
  
 ---- ----
users/dagnall53/node_setup.1550144616.txt.gz · Last modified: 2019/02/14 12:43 by dagnall53