User Tools

Site Tools


ci-v_mqtt_stepper

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
Next revision Both sides next revision
ci-v_mqtt_stepper [2020/11/13 01:26]
ok1hra
ci-v_mqtt_stepper [2022/01/04 18:22]
ok1hra [Firmware]
Line 1: Line 1:
-{{https://remoteqth.com/img/slide-civ-stepper-03.jpg?900}}+{{https://remoteqth.com/img/slide-civ-stepper-01.png?600}} \\
 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**
-  - Stepper +    - Stepper 
-  - 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://remoteqth.com/hw/civ-stepper-02.pdf|Schematics rev0.2 .pdf]]   * [[https://remoteqth.com/hw/civ-stepper-02.pdf|Schematics rev0.2 .pdf]]
   * [[https://remoteqth.com/hw/civ-stepper-02-ibom.html|Interactive BOM]]   * [[https://remoteqth.com/hw/civ-stepper-02-ibom.html|Interactive BOM]]
 +=== 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://remoteqth.com/img/wiki-civ-stepper-04.png}}+{{https://remoteqth.com/img/wiki-civ-stepper-04.png}}
  
 ===== BCD input ===== ===== BCD input =====
Line 34: Line 34:
  
 ===== TX Inhibit output ===== ===== TX Inhibit output =====
 +Open collector without pull-up. \\
 +{{https://remoteqth.com/img/wiki-civ-stepper-08.png}}
  
-Open collector without pull-up. +===== Power supply ===== 
-[https://remoteqth.com/img/wiki-civ-stepper-08.png|noborder] +24V with 1A power rating. Lowest voltage accepted, but stepper lower torque. \\ 
-!! Power supply +{{https://remoteqth.com/img/wiki-civ-stepper-03.png}}
-24V with 1A power rating. Lowest voltage accepted, but stepper lower torque. +
-[https://remoteqth.com/img/wiki-civ-stepper-03.png|noborder] +
-!! USB Command Line Interface (CLI) +
-!!! How to connect +
-* Connect USB micro cable between CLI stepper and your PC +
-* install [PuTTY terminal|https://www.putty.org/+
-* 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://remoteqth.com/img/wiki-civ-stepper-02.png] +
-** press '''Open'''+
  
-!!!CLI commands +===== USB Command Line Interface (CLI) ===== 
-After open PuTTY press character [?] who show actual setting and available command +==== How to connect ==== 
-[https://remoteqth.com/img/wiki-civ-stepper-01.png]+  * Connect USB micro cable between CLI stepper and your PC 
 +  * install [[https://www.putty.org/|PuTTY terminal]] 
 +  * 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://remoteqth.com/img/wiki-civ-stepper-02.png}} 
 +    * 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://remoteqth.com/img/wiki-civ-stepper-09.png|noborder] +{{https://remoteqth.com/img/wiki-civ-stepper-01.png}}
-What you need +
-* any version Raspberry PI +
-* microSD card with [Raspbian Lite|https://www.raspberrypi.org/downloads/raspbian/+
-* micro USB cable +
-* 5V power adapter with micro usb cable +
-* ethernet connection +
-* for first start HDMI monitor and USB keyboard+
  
 +==== 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://remoteqth.com/img/wiki-civ-stepper-09.png}} \\
 +What you need
 +  * any version Raspberry PI
 +  * microSD card with [[https://www.raspberrypi.org/downloads/raspbian/|Raspbian Lite]]
 +  * micro USB cable
 +  * 5V power adapter with micro usb cable
 +  * ethernet connection
 +  * for first start HDMI monitor and USB keyboard
 How to start How to start
-* after first boot login to serial console with default login '''pi''' and password '''raspberry''' +  * after first boot login to serial console with default login **pi** and password **raspberry** 
-* run command and '''enable [SSH|https://www.raspberrypi.org/documentation/remote-access/ssh/]'''{{sudo raspi-config}} +  * run command and **enable [[https://www.raspberrypi.org/documentation/remote-access/ssh/|SSH]]** <code>sudo raspi-config</code> 
-* run command and write down the shown '''IP address'''{{ip a}} +  * run command and write down the shown **IP address** <code>ip a</code> 
-* 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://www.raspberrypi.org/documentation/remote-access/ssh/windows.md] +    * [[https://www.raspberrypi.org/documentation/remote-access/ssh/windows.md|windows]
-** [Linux|https://www.raspberrypi.org/documentation/remote-access/ssh/unix.md] +    * [[https://www.raspberrypi.org/documentation/remote-access/ssh/unix.md|Linux]
-** [iOS|https://www.raspberrypi.org/documentation/remote-access/ssh/ios.md] +    * [[https://www.raspberrypi.org/documentation/remote-access/ssh/ios.md|iOS]
-* update system with run command{{sudo apt-get update && sudo apt-get upgrade}} +  * update system with run command <code>sudo apt-get update && sudo apt-get upgrade</code> 
-* install screen fith command {{sudo apt-get install screen}} +  * install screen fith command <code>sudo apt-get install screen</code> 
-* run '''screen'''{{screen /dev/ttyUSB0 115200}} +  * run **screen** <code>screen /dev/ttyUSB0 115200</code> 
-* now after pres ? key show status information and you can '''configure via CLI'''[https://remoteqth.com/img/wiki-civ-stepper-01b.png] +  * now after pres **?** key show status information and you can **configure via CLI** \\{{https://remoteqth.com/img/wiki-civ-stepper-01b.png}} 
-* close screen with '''CTRL+A K''' and confirm '''y''' +  * close screen with **CTRL+A K** and confirm **y** 
-* disconnect from Raspberry PI use command {{exit}}+  * disconnect from Raspberry PI use command <code>exit</code>
  
-!Firmware +==== Firmware ==== 
-For upload firmware you have two possibilities +For upload firmware you have two possibilities \\ 
-# Download '''source''' from [GitHub|https://github.com/ok1hra/CI-V_stepper] and compile in [Arduino IDE|https://www.arduino.cc/en/Main/Software] +  - Ordered List ItemDownload **source** from [[https://github.com/ok1hra/CI-V_stepper|Github]] and compile in [[https://www.arduino.cc/en/Main/Software|IDE]
-## Install [EEPROM library|https://www.arduino.cc/en/Guide/Libraries] +  Install [[https://www.arduino.cc/en/Guide/Libraries|EEPROM library]
-Download '''compiled binary''' from [release page|https://github.com/ok1hra/CI-V_stepper/releases] and upload with some tool +  Download **compiled binary** from [[https://github.com/ok1hra/CI-V_stepper/releases|release page]] and upload with some tool 
-## for example [avrdude|http://www.ladyada.net/learn/avr/avrdude.html] or [Xloader|http://xloader.russemotto.com/] for windows+  for example [[http://www.ladyada.net/learn/avr/avrdude.html|avrdude]] or [[http://xloader.russemotto.com/|Xloader]] for windows
  
-!! Firmware source +==== Firmware source ==== 
-contains some settings which does not available from CLI+contains some settings which does not available from CLI \\
 * You can enter '''frequency and uStep directly in to firmware''' without CLI wizard. How to * You can enter '''frequency and uStep directly in to firmware''' without CLI wizard. How to
 **Disable preset coment line{{//#define RestoreMemoryFromEeprom}} **Disable preset coment line{{//#define RestoreMemoryFromEeprom}}
Line 110: Line 110:
 * CLI baudrate, default is 115200{{const int BAUDRATE0 = 115200;}} * CLI baudrate, default is 115200{{const int BAUDRATE0 = 115200;}}
  
-!MQTT variant +==== MQTT variant ==== 
-* need install wiznet ethernet module +  * need install wiznet ethernet module 
-* use another firmware [GitHub|https://github.com/ok1hra/MQTT-stepper] +  * use another firmware [GitHub|https://github.com/ok1hra/MQTT-stepper] 
-* for setup and control see source code header+  * for setup and control see source code header
ci-v_mqtt_stepper.txt · Last modified: 2022/01/04 18:29 by ok1hra