User Tools

Site Tools


users:dagnall53:rocclienthardware

Differences

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

Link to this comparison view

users:dagnall53:rocclienthardware [2018/11/12 08:56] (current)
Line 1: Line 1:
 + ​\\ ​
 +**ESP8266 Rocnet Nodes** ​
 +  * [[:​users:​Dagnall53:​Description|ESPRocNetSoundDescription]] ​
 +  * [[https://​github.com/​dagnall53/​ESPMQTTRocnetSound|ESP8266 Code]]
 +  * [[:​users:​Dagnall53:​Node_Setup|Node_Setup]] ​
 +  * [[:​users:​Dagnall53:​Hardware|Hardware]] ​
 + \\
 +** RocClient Experiments ** \\
 +Rocrail Client experiments using the Wemos Oled Battery board.{{:​users:​dagnall53:​img_2164.jpg?​100}}
 +  * [[:​users:​Dagnall53:​RocClientTool|RocClientTool]] ​
 +  * [[:​users:​Dagnall53:​RocClientThrottle|RocClientThrottle]]
 +  * [[:​users:​Dagnall53:​RocClientHardware|RocClient Hardware]] ​
 +
 +----
 +====== Hardware for RocClient (Tool and Throttle) ======
 +
 +To start, download the code for the RocClientTool [[http://​github.com/​dagnall53/​SwitchTool]]and RocClientthrottle [[http://​github.com/​dagnall53/​RocClientThrottle]] \\
 +You will also need a "WeMos ESP8266 Battery OLED Board",​ and a battery for it, plus a KY-040 rotary encoder if you want to try the rotary encoder version.
 +
 +I would recommend first checking that your rotary encoder is OPEN CIRCUIT on both encoder switches when in a "​detent"​ position. This is important as one switch will be across the Serial in line and can prevent programming if it is "​naturally"​ closed at rest. 
 +
 +In the Arduino sketch "​secrets.h"​ you will need to add your router, name and password, plus the location of your MQTT broker. \\(Your rocrail setup will need these also included in the rocrail properties, "​service"​ / "MQTT service"​ boxes. The MQTT Port should be set to 1883.\\
 +
 +Program the Wemos board and it should log in, locate the Rocrail service MQTT broker and then ask you to "​press"​ to update the list of switches available.\\
 +
 + 
 +There is a video here that shows the operation. [[http://​www.youtube.com/​watch?​v=kwU2oWAyCBs&​feature=youtu.be]]  ​
 +
 +Since doing the video I have corrected the bug that increments the number of switches found, and have added the ability to use a rotary switch to duplicate the "​up/​down"​ setting of the 5 way switch. ​
 +The rotary switch is a more intuitive interface, but does need a box. \\
 +Connections for the rotary switch are simple, but use one of the serial interfaces, so make sure that in its "​detent"​ position, the switches are OPEN. otherwise you will not be able to program the board with the switch fitted.\\ (Both my examples were ok, but it may be that others are not, in which case the rotary switch will need to be disconneced before the unit can be programmed).
 +
 +Also, do not leave the board connected to the pc when you move the rotary switch. \\As it shorts one of the serial interface contacts, it can cause the PC to switch off a com port thinking there is a problem.-- you have been warned, this design is experimental!).
 +
 +I have designed a couple of simple boxes you can 3D print and use. [[http://​www.thingiverse.com/​thing:​2897872]] \\
 +The contacts for the rotary switch (D4, D9 and Gnd)  can be seen in the photo below.\\
 + 
 +{{:​users:​dagnall53:​img_2163_1_.jpg?​600}}
 +
 +
 +
 +
 +     
  
users/dagnall53/rocclienthardware.txt ยท Last modified: 2018/11/12 08:56 (external edit)