This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ci-v_mqtt_stepper [2020/11/13 01:26] ok1hra |
ci-v_mqtt_stepper [2022/01/04 18:29] (current) ok1hra [Firmware source] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{https:// | + | {{https:// |
Icom CI-V stepper allows tuning with stepper motor Nema 17 some devices dependancy to Icom frequency | Icom CI-V stepper allows tuning with stepper motor Nema 17 some devices dependancy to Icom frequency | ||
====== Quick start guide ====== | ====== Quick start guide ====== | ||
- **Connect hardware** | - **Connect hardware** | ||
- | | + | |
- | - Endstop switch | + | - Endstop switch |
- | - 24V DC power Supply | + | - 24V DC power Supply |
- | - TX inhibit output | + | - TX inhibit output |
- | - CI-V | + | - CI-V |
- **Configure over USB CLI** | - **Configure over USB CLI** | ||
- | |||
====== Hardware ====== | ====== Hardware ====== | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | === Known issue === | ||
+ | - Q1 - bad footprint pinout | ||
====== Connect ====== | ====== Connect ====== | ||
===== Endstop ===== | ===== Endstop ===== | ||
Line 23: | Line 23: | ||
Connect two phase **NEMA 17** stepper motor. Another type not supported. One of the phases is known by the ohmmeter. Another phase is isolated. | Connect two phase **NEMA 17** stepper motor. Another type not supported. One of the phases is known by the ohmmeter. Another phase is isolated. | ||
* If stepper rotate reverse, you can change polarity one phase or activare reverse from CLI. \\ | * If stepper rotate reverse, you can change polarity one phase or activare reverse from CLI. \\ | ||
- | [[https:// | + | {{https:// |
===== BCD input ===== | ===== BCD input ===== | ||
Line 34: | Line 34: | ||
===== TX Inhibit output ===== | ===== TX Inhibit output ===== | ||
+ | Open collector without pull-up. \\ | ||
+ | {{https:// | ||
- | Open collector without pull-up. | + | ===== Power supply |
- | [https:// | + | 24V with 1A power rating. Lowest voltage accepted, but stepper lower torque. |
- | !! Power supply | + | {{https:// |
- | 24V with 1A power rating. Lowest voltage accepted, but stepper lower torque. | + | |
- | [https:// | + | |
- | !! USB Command Line Interface (CLI) | + | |
- | !!! How to connect | + | |
- | * Connect USB micro cable between CLI stepper and your PC | + | |
- | * install [PuTTY terminal|https:// | + | |
- | * after run it set | + | |
- | ** ''' | + | |
- | ** baudrate to ''' | + | |
- | ** Connection type to ''' | + | |
- | ** In Terminal category turn off options ''' | + | |
- | ** press ''' | + | |
- | !!!CLI commands | + | ===== USB Command Line Interface (CLI) ===== |
- | After open PuTTY press character [?] who show actual setting | + | ==== How to connect ==== |
- | [https:// | + | * Connect USB micro cable between CLI stepper |
+ | * install [[https:// | ||
+ | * after run it set | ||
+ | * **com port** dependency to your system | ||
+ | * baudrate to **115200** | ||
+ | * Connection type to **Serial** | ||
+ | * In Terminal category turn off options **Implicit CR** and **Implicit LF** by picture {{https:// | ||
+ | * press **Open** | ||
- | !!! Secure remote manage | + | ==== CLI commands ==== |
- | Configuration available via serial CLI (command line interface). This interface can be safely accessed to the Internet and encrypted connections to manage all features | + | After open PuTTY press character [?] who show actual setting and available command \\ |
- | [https:// | + | {{https:// |
+ | |||
+ | ==== Secure remote manage | ||
+ | Configuration available via serial CLI (command line interface). This interface can be safely accessed to the Internet and encrypted connections to manage all features | ||
+ | {{https:// | ||
What you need | What you need | ||
- | * any version Raspberry PI | + | |
- | * microSD card with [Raspbian Lite|https:// | + | * microSD card with [[https:// |
- | * micro USB cable | + | * micro USB cable |
- | * 5V power adapter with micro usb cable | + | * 5V power adapter with micro usb cable |
- | * ethernet connection | + | * ethernet connection |
- | * for first start HDMI monitor and USB keyboard | + | * for first start HDMI monitor and USB keyboard |
How to start | How to start | ||
- | * after first boot login to serial console with default login ''' | + | |
- | * run command and ''' | + | * run command and **enable [[https:// |
- | * run command and write down the shown ''' | + | * run command and write down the shown **IP address** < |
- | * you can disconnect HDMI monitor and USB keyboard | + | * you can disconnect HDMI monitor and USB keyboard |
- | * connect to Raspberry PI from any other PC | + | * connect to Raspberry PI from any other PC |
- | ** [windows|https:// | + | * [[https:// |
- | ** [Linux|https:// | + | * [[https:// |
- | ** [iOS|https:// | + | * [[https:// |
- | * update system with run command{{sudo apt-get update && sudo apt-get upgrade}} | + | * update system with run command |
- | * install screen fith command | + | * install screen fith command |
- | * run ''' | + | * run **screen** < |
- | * now after pres ? key show status information and you can ''' | + | * now after pres **?** key show status information and you can **configure via CLI** \\{{https:// |
- | * close screen with ''' | + | * close screen with **CTRL+A K** and confirm |
- | * disconnect from Raspberry PI use command | + | * disconnect from Raspberry PI use command |
- | + | ||
- | !Firmware | + | |
- | For upload firmware you have two possibilities | + | |
- | # Download ''' | + | |
- | ## Install [EEPROM library|https:// | + | |
- | # Download ''' | + | |
- | ## for example [avrdude|http:// | + | |
- | !! Firmware | + | ==== Firmware |
- | contains some settings which does not available from CLI | + | For upload |
- | * You can enter ''' | + | - Ordered List ItemDownload |
- | **Disable preset coment line{{//# | + | |
- | **Write frequency and uSteps i to array{{unsigned long StorageFreqToStep[112][2] = { | + | - Download |
- | {7000000, 0}, | + | - for example [[http://www.ladyada.net/ |
- | {7010000, 500}, | + | |
- | {7020000, 1000}, | + | |
- | {7030000, 1500}, | + | |
- | {7040000, 2000}, | + | |
- | ..}} | + | |
- | ** Upload firmware | + | |
- | ** Select BCD input to bank-0 (must be, because only bank-0 saved also frequency, higest bank saved uStep only) | + | |
- | ** Save frequency/ | + | |
- | ** Replay edit table, upload | + | |
- | ** After fill EEPROM to your liking, enable command in source file {{#define RestoreMemoryFromEeprom}} | + | |
- | ** After upload | + | |
- | * Time (second number in ms) after which reduce stepper current and save last position to eeprom, if disable endstop{{long CurrentRunTimeout[2] = {0, | + | |
- | * Enable serial debug if uncoment this line{{# | + | |
- | * CLI baudrate, default is 115200{{const int BAUDRATE0 = 115200;}} | + | |
- | !MQTT variant | + | ==== Firmware source ==== |
- | * need install wiznet ethernet module | + | contains some settings which does not available from CLI \\ |
- | * use another firmware [GitHub|https:// | + | * You can enter **frequency and uStep directly in to firmware** without CLI wizard. How to |
- | * for setup and control see source code header | + | * Disable preset coment line < |
+ | * Write frequency and uSteps i to array< | ||
+ | {7000000, 0}, | ||
+ | {7010000, 500}, | ||
+ | {7020000, 1000}, | ||
+ | {7030000, 1500}, | ||
+ | {7040000, 2000}, | ||
+ | ..}}</ | ||
+ | * Upload firmware | ||
+ | * Select BCD input to bank-0 (must be, because only bank-0 saved also frequency, higest bank saved uStep only) | ||
+ | * Save frequency/ | ||
+ | * Replay edit table, upload and save for any higher bank | ||
+ | * After fill EEPROM to your liking, enable command in source file < | ||
+ | * After upload frequency/ | ||
+ | * Time (second number in ms) after which reduce stepper current and save last position to eeprom, if disable endstop < | ||
+ | * Enable serial debug if uncoment this line < | ||
+ | * CLI baudrate, default is 115200 < | ||
+ | ==== MQTT variant | ||
+ | * need install wiznet ethernet module | ||
+ | * use another firmware [GitHub|https:// | ||
+ | * for setup and control see source code header |