User Tools

Site Tools


projets:fuz:webduino

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
projets:fuz:webduino [2019-12-03 21:39] – [Photocell] document photocell reading with example sketch Lomanicprojets:fuz:webduino [2023-02-02 22:06] (current) – external edit 127.0.0.1
Line 3: Line 3:
 <WRAP round box 60%> <WRAP round box 60%>
 ===== Goals ===== ===== Goals =====
-  * [OK] Flash Webduino with different IDEs +  * [OK] Flash Webduino Smart with different IDEs 
-  * Check Components : pins, photocell, RGB LED, button+  * [OK] Check Components : pins, photocell, RGB LED, button
   * [OK?] Use OTA   * [OK?] Use OTA
 </WRAP> </WRAP>
Line 11: Line 11:
  
   * [[https://webduino.io/en/tutorials/smart-01-information.html|Official Intro]]   * [[https://webduino.io/en/tutorials/smart-01-information.html|Official Intro]]
-  * Webduino USB port is only used to power the board, not for upload and monitoring +  * Webduino Smart USB port is only used to power the board, not for upload and monitoring 
-  * The chip is labeled ESP8266MOD by AI Thinker, in fact it is an ESP-12F, same as Wemos d1 +  * The chip is labeled ESP8266MOD by AI Thinker, in fact it is an ESP-12F, same as Wemos D1 
-  * The Board include a photocell, RGB led and a button. +  * The board includes a photocell, an RGB led and a button. 
-  * [[https://www.programmersought.com/article/1565534775/|Unofficial tutorial in ~english]], with how to flash webduino with FTDI+  * [[https://www.programmersought.com/article/1565534775/|Unofficial tutorial in ~english]], with how to flash Webduino Smart with FTDI 
 +  * The Webduino Smart is extremely similar to the "[[https://vimalb.github.io/IoT-ESP8266-Starter/Witty/info.html|(Gizwits) Witty Cloud]]" board, one is probably a clone of the other (same pin number for on-board components). The Witty Cloud board includes an FTDI daughter board which simplifies development, this daughter board may even be compatible with the Webduino Smart.
  
  
 ===== Wiring and flashing ===== ===== Wiring and flashing =====
  
-Plug Webduino Smart using FTDI **3.3v** module. Webduino and the FTDI must be powered. Webduino is powered through its micro USB port.+Plug the Webduino Smart using an FTDI **3.3v** module. The Webduino Smart and the FTDI must be powered. The Webduino Smart is powered through its micro USB port.
  
            Tx     Rx                Tx     Rx    
Line 31: Line 32:
 For **rebooting**, on Webduino Smart connect RST to GND For **rebooting**, on Webduino Smart connect RST to GND
  
-Flashing usual sequence is : +Flashing usual sequence is: 
   - Set flash position (GPIO0 on GND)   - Set flash position (GPIO0 on GND)
   - Power the FTDI and the Webduino   - Power the FTDI and the Webduino
   - (RGB goes light blue) Disconnect GPIO 0   - (RGB goes light blue) Disconnect GPIO 0
-  - Upload sketch... Webduino should restart in normal mode. +  - Upload sketch... Webduino Smart should restart in normal mode. 
-  - Or disconnect GPIO 0 and restart using RST or Webduino power+  - Or disconnect GPIO 0 and restart using RST or Webduino Smart power
  
 ===== Arduino IDE ===== ===== Arduino IDE =====
Line 44: Line 45:
 ===== Platformio ===== ===== Platformio =====
  
-Got it to work as a Wemos d1 !+Got it to work as a Wemos d1!
  
     [env:d1]     [env:d1]
Line 91: Line 92:
       RGB_color(255, 255, 125); // Raspberry       RGB_color(255, 255, 125); // Raspberry
       break;       break;
-    case 3: // CYAN+    case 3:
       RGB_color(0, 255, 255); // Cyan       RGB_color(0, 255, 255); // Cyan
       break;       break;
-    case 4: // BLUE?+    case 4:
       RGB_color(255, 0, 255); // Magenta       RGB_color(255, 0, 255); // Magenta
       break;       break;
-    case 5: // GREEN+    case 5:
       RGB_color(255, 255, 0); // Yellow       RGB_color(255, 255, 0); // Yellow
       break;       break;
Line 154: Line 155:
 void loop() { void loop() {
   if (digitalRead(GPIO_MICRO_SWITCH_BUTTON) == LOW) {   if (digitalRead(GPIO_MICRO_SWITCH_BUTTON) == LOW) {
-    Serial.println(analogRead(GPIO_PHOTOCELL)); // values go from 0 for complete blackness to 1024 for full bright light+    Serial.println(analogRead(GPIO_PHOTOCELL)); // values go from 0 for complete darkness to 1024 for full bright light
   }   }
 } }
Line 160: Line 161:
 ===== OTA ===== ===== OTA =====
 See https://github.com/esp8266/Arduino/tree/master/libraries/ArduinoOTA/examples See https://github.com/esp8266/Arduino/tree/master/libraries/ArduinoOTA/examples
 +
 +This was randomly working for me, maybe implement [[http://www.csshl.net/content/esp8266-aggiornamenti-ota|this workaround]]?
projets/fuz/webduino.1575409183.txt.gz · Last modified: 2023-02-02 22:06 (external edit)