User Tools

Site Tools


arduino:wioctrl-en

Differences

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


arduino:wioctrl-en [2024/07/17 21:36] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +[[:english|{{ :hardware.png}}]][[:english|{{ :rocrail-logo-35.png}}]]
 +[[:arduino:wioctrl-fr|{{ icons:fr.png|French Version}}]][[:arduino:wioctrl-de|{{ icons:de.png|Deutsche Version}}]][[:arduino:wioctrl-en|{{ icons:uk.png|English Version}}]]
 +====== WIO Control ======
 +[[:wio:overview-en|{{ :wio:wiologo.png}}]]
 +**[[:wio:overview-en|WIO Overview]]**
 +  * [[:arduino:wio-setup-en|WIO Setup]] | **[[:arduino:wioctrl-en|WIO Control]]** | [[:arduino:amp-en|User Bitmaps]] | [[:arduino:wio-en|WIO Firmware]] | [[:wio:wio-ledscript-en|LEDScript]]
 + \\
 +
 +
 +=====Display=====
 +{{ :arduino:wioctrl-display.jpg?400}}{{ :arduino:wiocontrol-lolind32.jpg?200}}
 +WIO Control needs a display for some of its functions:
 +  * Status bar
 +  * Locomotive selection
 +  * Function selection
 +  * Locomotive __**[[:rocrailini-automode-en#mode_events|Automatic Mode]]**__ (Shown in the server connection icon.)
 +
 + \\
 +=====Programming=====
 +
 +=====Pinout=====
 +^  LOLIN D32  ^
 +| {{:arduino:lolin-d32.jpg?0x400}} |\\
 +
 +
 + \\
 +=====Extended Layout=====
 +The ESP32 type board selection is set by WIO Dialog.\\
 +^  Preliminary  ^
 +Compared with the ESP8266, the ESP32 has a lot more I/O Pins, so an extra F0 and Shift button are added. \\
 +^ GPIO \\ Dev Module ^ GPIO \\ Lolin D32 ^ Function ^ Selection mode ^ Shift function ^ Long click ^ Long click + shift ^
 +|  26 |  26 | Rotary V+ | Browse loco list down / Select function right | - | - |
 +|  25 |  25 | Rotary V- | Browse loco list up / Select function left | - | - |
 +|  34 |  34 | Rotary direction | Take over the selected loco from the list / Flip selected function | - | - |
 +|  27 |  27 | F0 | - | Alter between loco 1 and 2 | Track Power off | Track Power on |
 +|  32 |  32 | F1 | - | F9  | F5 | F13 |
 +|  33 |  33 | F2 | - | F10 | F6 | F14 |
 +|   0 |   0 | F3 | - | F11 | F7 | F15 |
 +|  14 |  14 | F4 | - | F12 | F8 | F16 |
 +|  12 |  12 | Shift | - | - | Function selection mode | - |
 +|  16 |   5 | LED | - | - | - | - |
 +|  35 |  35 | Battery (ADC) | - | - | - |
 +|   5 |  21 | SDA (Display) | - | - | - | - |
 +|   4 |  22 | SCL (Display) | - | - | - | - |
 +**Note:** //Do not use a hardware pull-up resistor on GPIO12 because this will block uploading firmware by USB.//\\
 +====ESP32 Dev Module====
 +===Voltage divider===
 +{{  arduino:lipo-measure-a.png?240}}
 +A voltage divider is needed to measure the Lipo(battery).\\
 +GPIO35 is connected to the Lipo + with 47k resistor, and with a 100k resistor to the ground(GND).\\
 + \\
 +===NoGo Pins===
 +The following pins can not be used:
 +  * GPIO06 - GPIO11 (Are in use by the Flash interface.)
 +
 + \\
 +====LOLIN D32====
 +  * https://wiki.wemos.cc/products:d32:d32
 +
 +===Voltage divider===
 +The LOLIN D32 has a build in divider on GPIO35: 100k/100k.\\
 +See: https://wiki.wemos.cc/_media/products:d32:sch_d32_v1.0.0.pdf \\
 +
 +===I2C Display===
 +The I2C SSD1306 compatible 128*64 display, must be connected to GPIO21(SDA) and GPIO22(SCL).\\
 +
 + \\
 +=====Short IDs=====
 +Use __**[[:rocgui-menu-en#transmit_short_ids|Transmit short IDs]]**__ to load the locomotive short IDs into WIO Control.\\
 +
 +
 + \\
 +=====Selecting a locomotive=====
 +  - Press and release the shift button; On the bottom display line the first ID is shown.
 +  - Turn the rotary until the wanted locomotive is selected.
 +  - Push the rotary button to activate the selected locomotive.
 +Just press and release the shift again to cancel the selection procedure.\\
 +
 + \\
 +
 +====Schematic and PCB====
 +  * [[:gca-wioctrl-en|GCA WIO-Control]]
 +
 +
 +
 + \\
 +=====Invert Rotary=====
 +In case the rotary is inverted the CAM Option **Rotate 180°** can be used to correct this.\\
 +//Available as from version 724.//\\