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 revisionPrevious revision
Next revision
Previous revision
ci-v_mqtt_stepper [2022/01/04 17:22] – [Firmware] ok1hraci-v_mqtt_stepper [2025/08/20 16:57] (current) – [Firmware (CI-V variant)] ok1hra
Line 82: Line 82:
   * disconnect from Raspberry PI use command <code>exit</code>   * disconnect from Raspberry PI use command <code>exit</code>
  
-==== Firmware ====+==== Firmware (CI-V variant) ====
 For upload firmware you have two possibilities \\ For upload firmware you have two possibilities \\
-  - Ordered List ItemDownload **source** from [[https://github.com/ok1hra/CI-V_stepper|Github]] and compile in [[https://www.arduino.cc/en/Main/Software|IDE]] +  - Download **source** from [[https://github.com/ok1hra/CI-V_stepper|Github]] and compile in [[https://www.arduino.cc/en/Main/Software|IDE]] 
-  - Install [[https://www.arduino.cc/en/Guide/Libraries|EEPROM library]] +      - Install [[https://www.arduino.cc/en/Guide/Libraries|EEPROM library]] 
-  - Download **compiled binary** from [[https://github.com/ok1hra/CI-V_stepper/releases|release page]] and upload with some tool +  <del>- Download **compiled binary** from [[https://github.com/ok1hra/CI-V_stepper/releases|release page]] and upload with some tool 
-  - for example [[http://www.ladyada.net/learn/avr/avrdude.html|avrdude]] or [[http://xloader.russemotto.com/|Xloader]] for windows+      - for example [[http://www.ladyada.net/learn/avr/avrdude.html|avrdude]] or [[http://xloader.russemotto.com/|Xloader]] for windows</del> 
 +    - upload via **ICSP programmer**
  
-==== 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 <code>//#define RestoreMemoryFromEeprom</code> 
-**Write frequency and uSteps i to array{{unsigned long StorageFreqToStep[112][2] = { +    * Write frequency and uSteps i to array<code>unsigned long StorageFreqToStep[112][2] = { 
-  {7000000, 0}, +{7000000, 0}, 
-  {7010000, 500}, +{7010000, 500}, 
-  {7020000, 1000}, +{7020000, 1000}, 
-  {7030000, 1500}, +{7030000, 1500}, 
-  {7040000, 2000}, +{7040000, 2000}, 
-  ..}} +..}}</code> 
-** Upload firmware +    * Upload firmware 
-** Select BCD input to bank-0 (must be, because only bank-0 saved also frequency, higest bank saved uStep only) +    * Select BCD input to bank-0 (must be, because only bank-0 saved also frequency, higest bank saved uStep only) 
-** Save frequency/uStep table from RAM to EEPROM with command [s] in CLI +    * Save frequency/uStep table from RAM to EEPROM with command [s] in CLI 
-** Replay edit table, upload and save for any higher bank +    * Replay edit table, upload and save for any higher bank 
-** After fill EEPROM to your liking, enable command in source file {{#define RestoreMemoryFromEeprom}} +    * After fill EEPROM to your liking, enable command in source file <code>#define RestoreMemoryFromEeprom</code> 
-** After upload frequency/uStep table will be set by preset selected bank. For more info use command [l] or [e] in CLI. +    * After upload frequency/uStep table will be set by preset selected bank. For more info use command [l] or [e] in CLI. 
-* Time (second number in ms) after which reduce stepper current and save last position to eeprom, if disable endstop{{long CurrentRunTimeout[2] = {0,1000};}} +  * Time (second number in ms) after which reduce stepper current and save last position to eeprom, if disable endstop <code>long CurrentRunTimeout[2] = {0,1000};</code> 
-* Enable serial debug if uncoment this line{{#define SERIAL_debug}} +  * Enable serial debug if uncoment this line <code>#define SERIAL_debug</code> 
-* CLI baudrate, default is 115200{{const int BAUDRATE0 = 115200;}} +  * CLI baudrate, default is 115200 <code>const int BAUDRATE0 = 115200;</code> 
- +==== Firmware (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 [[https://github.com/ok1hra/MQTT-stepper|GitHub]]
   * for setup and control see source code header   * for setup and control see source code header
ci-v_mqtt_stepper.1641316950.txt.gz · Last modified: by ok1hra