Project

General

Profile

Wiki » History » Revision 27

Revision 26 (Frédéric Blanc, 2023-03-22 15:50) → Revision 27/32 (Frédéric Blanc, 2023-03-22 16:01)

h1. Console KSAP6 

 !clipboard-202302241523-zbl4w.png! 

 h2. alim 

 !clipboard-202202011044-x1env.png! 

 h2. ftdi 

 !clipboard-202201281040-91geb.png! 

 h2. generic grbl message parser 

 https://github.com/jschoch/grbl_chat 

 h2. écran 

 !clipboard-202201141529-a0x50.png! 
 NEXTION NX8048P070-011R 

 https://nextion.tech/datasheets/nx8048p070-011r/ 

 h3. Communication 

 GPIO9  	 UART_DEV(1):TxD    SD2 (17) 
 GPIO10  	 UART_DEV(1):RxD    SD3 (18) (ne fonctionne pas 

 Serial1.begin(9600, SERIAL_8N1 , 4, 2);  
 RxD GPIO4 
 TxD GPIO2 

 remapé le port serial1 


 Serial Port Baudrate 9600 


 dans la lib ITEADLIB_Arduino_Nextion fichier NexConfig.h ligne 34 
 <pre><code class="cpp"> 
 ... 
 /** 
  * Define nexSerial for communicate with Nextion touch panel.  
  */ 
 #define nexSerial Serial1 
 #define NEXRXPIN 4 
 #define NEXTXPIN 2 
 ... 
 </code></pre> 

 h4. timer 

 https://projetsdiy.fr/esp32-timers-alarmes-code-arduino/ 

 h3. Lib 

 https://github.com/itead/ITEADLIB_Arduino_Nextion/archive/master.zip 

 https://randomnerdtutorials.com/nextion-display-with-arduino-getting-started/ 

 

 h2. joystick 

 !clipboard-202303221601-xbntj.png! !clipboard-202201171441-eyqok.png! 
 ref J1-00105 de ETI Systems 
 cosse de connexion type FASTON 1.25mm 

 h3. HOME 

 !clipboard-202303221558-hqyob.png! circuit anti-rebond MAX6817 (dual) 
 https://www.mouser.fr/ProductDetail/Maxim-Integrated/MAX6817EUT%252bT 


 h3. mode JOG 

 https://github.com/gnea/grbl/blob/master/doc/markdown/jogging.md 

 h2. CPU 

 !clipboard-202201181534-mvjil.png! 
 ESP32-WROOM-32D 
 https://www.mouser.fr/ProductDetail/Espressif-Systems/ESP32-WROOM-32DM113DH2800PH3Q0 


 variable en flash 
 https://randomnerdtutorials.com/esp32-save-data-permanently-preferences/ 

 main.c 
 <pre><code class="cpp"> 
 ... 
 #include <Preferences.h> 
 ... 
 Preferences preferences; 
 ... 
 void setup() 
 { 
 ... 
 // HOME READ FLASH 
   preferences.begin("pref_KSAP6", false); 
   Ctrl_mode.home_X = preferences.getFloat("coor_x", HOME_X); 
   Ctrl_mode.home_Y = preferences.getFloat("coor_y", HOME_Y); 
   Ctrl_mode.home_T = preferences.getFloat("coor_a", HOME_T); 
   preferences.end(); 
   SERIAL_DEBUG.println("HOME READ FLASH OK"); 
 ... 
 } 
 </code></pre> 
 Joystick.c 
 <pre><code class="cpp"> 
 ... 
 #include <Preferences.h> 
 ... 
 void JOY_Read(void) 
 { 

 ... 
   // HOME MEMO FLASH 
   if (digitalRead(JOY_PinSWJOY1) == LOW) 
   { 
     Ctrl_mode.home_X = Ctrl_mode.coord.x; 
     Ctrl_mode.home_Y = Ctrl_mode.coord.y; 
     Ctrl_mode.home_T = Ctrl_mode.coord.a; 

     extern Preferences preferences; 
     preferences.begin("pref_KSAP6", false); 
     preferences.putFloat("coor_x", Ctrl_mode.coord.x); 
     preferences.putFloat("coor_y", Ctrl_mode.coord.y); 
     preferences.putFloat("coor_a", Ctrl_mode.coord.a); 
     preferences.end(); 
     if (Ctrl_mode.verbose == true) 
     { 
       SERIAL_DEBUG.printf("HOME FLASH X=%.3fmm Y=%.3fmm T=%.3f°\r\n", Ctrl_mode.home_X, Ctrl_mode.home_Y, Ctrl_mode.home_T); 
     } 
   } 
 ... 
 </code></pre> 


 h3. Communication 

 !clipboard-202201281407-mpdxz.png! 

 TXB0108    8-Bit Bidirectional Voltage-Level Translator 100 Mbps 
 https://www.ti.com/lit/ds/symlink/txb0108.pdf 

 !!! BUG TX2 -> TXB0108 -> RXGRBL    liaison directe TX2 -> RXGRBL 

 !clipboard-202303011507-vsd5v.png! 

 h3. le prototype 

 !clipboard-202303041338-kvddx.png!