743c2c947bd0e55a8039b3892bdeffde56a1e153
Home.md
| ... | ... | @@ -52,7 +52,7 @@ USB |
| 52 | 52 | ## PROG |
| 53 | 53 | |
| 54 | 54 | ## SDK |
| 55 | - |
|
| 55 | +- [[arduino-IDE-DAT]] |
|
| 56 | 56 | ## Tools |
| 57 | 57 | |
| 58 | 58 |
SDK/Arduino-IDE-DAT/Arduino-ESP32/52-27-16-05-01-2023.png
| ... | ... | Binary files /dev/null and b/SDK/Arduino-IDE-DAT/Arduino-ESP32/52-27-16-05-01-2023.png differ |
SDK/Arduino-IDE-DAT/Arduino-ESP32/arduino-esp32.md
| ... | ... | @@ -0,0 +1,14 @@ |
| 1 | + |
|
| 2 | + |
|
| 3 | +https://docs.espressif.com/projects/arduino-esp32/en/latest/getting_started.html#supported-soc-s |
|
| 4 | + |
|
| 5 | +ESP32-WROOM |
|
| 6 | + |
|
| 7 | + |
|
| 8 | + |
|
| 9 | + |
|
| 10 | + |
|
| 11 | +version 2.0.6 - 2022/2/3 |
|
| 12 | +version 2.0.4 |
|
| 13 | + |
|
| 14 | +https://github.com/espressif/arduino-esp32 |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE-DAT/arduino-IDE-DAT.md
| ... | ... | @@ -0,0 +1,50 @@ |
| 1 | + |
|
| 2 | +### boards |
|
| 3 | + |
|
| 4 | +https://arduino.esp8266.com/stable/package_esp8266com_index.json |
|
| 5 | + |
|
| 6 | +megaTinyCore - megaTinyAVR |
|
| 7 | +https://mcudude.github.io/MegaCoreX/package_MCUdude_MegaCoreX_index.json |
|
| 8 | +https://github.com/MCUdude/MegaCoreX |
|
| 9 | + |
|
| 10 | + |
|
| 11 | +https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
|
| 12 | + |
|
| 13 | +http://drazzy.com/package_drazzy.com_index.json |
|
| 14 | +https://github.com/SpenceKonde/megaTinyCore |
|
| 15 | + |
|
| 16 | +https://github.com/SpenceKonde/ATTinyCore |
|
| 17 | + |
|
| 18 | + |
|
| 19 | +https://nulllab.coding.net/p/lgt/d/nulllab_lgt_arduino/git/raw/master/package_nulllab_boards_index_zh.json |
|
| 20 | + |
|
| 21 | +https://cdn.jsdelivr.net/gh/nulllaborg/arduino_nulllab/package_nulllab_boards_index_zh.json |
|
| 22 | + |
|
| 23 | + |
|
| 24 | + |
|
| 25 | + |
|
| 26 | + |
|
| 27 | +- [[softwareserial]] |
|
| 28 | + |
|
| 29 | +- [[arduino-lib]] |
|
| 30 | + |
|
| 31 | + |
|
| 32 | + |
|
| 33 | + |
|
| 34 | +### include |
|
| 35 | + |
|
| 36 | + |
|
| 37 | +use include “test.h” to add variables |
|
| 38 | + |
|
| 39 | + |
|
| 40 | + |
|
| 41 | + |
|
| 42 | +## snippet |
|
| 43 | + |
|
| 44 | + // Periodically blink the onboard LED while listening for serial commands |
|
| 45 | + if ((int)(millis()/500) > lastPeriod) |
|
| 46 | + { |
|
| 47 | + lastPeriod++; |
|
| 48 | + pinMode(LED, OUTPUT); |
|
| 49 | + digitalWrite(LED, lastPeriod%2); |
|
| 50 | + } |
SDK/Arduino-IDE-DAT/lib/18-50-16-13-02-2023.png
| ... | ... | Binary files /dev/null and b/SDK/Arduino-IDE-DAT/lib/18-50-16-13-02-2023.png differ |
SDK/Arduino-IDE-DAT/lib/EspSoftwareSerial.md
| ... | ... | @@ -0,0 +1,10 @@ |
| 1 | + |
|
| 2 | +# espsoftwareserial |
|
| 3 | + |
|
| 4 | +## software serial |
|
| 5 | +#define D5 (18) |
|
| 6 | +#define D6 (19) |
|
| 7 | + |
|
| 8 | +#define D7 (23) |
|
| 9 | +#define D8 (5) |
|
| 10 | +#define TX (1) |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE-DAT/lib/arduino-OLED.md
| ... | ... | @@ -0,0 +1,10 @@ |
| 1 | + |
|
| 2 | +# arduino OLED |
|
| 3 | + |
|
| 4 | + |
|
| 5 | +- SSD1306ascii |
|
| 6 | + |
|
| 7 | + |
|
| 8 | +## common OLED I2C address |
|
| 9 | + |
|
| 10 | +- 0x3C = the version we are selling |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE-DAT/lib/arduino-lib.md
| ... | ... | @@ -0,0 +1,8 @@ |
| 1 | + |
|
| 2 | + |
|
| 3 | +## lowpower lab SPIFlash |
|
| 4 | +- //get it here: https://github.com/LowPowerLab/SPIFlash |
|
| 5 | + |
|
| 6 | +### library |
|
| 7 | + |
|
| 8 | +- fastLED |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE-DAT/lib/display.md
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | + |
|
| 2 | + |
|
| 3 | +TFT_eSPI |
|
| 4 | + |
|
| 5 | + |
|
| 6 | +### OLED |
|
| 7 | + |
|
| 8 | +SSD1306 |
|
| 9 | + |
|
| 10 | +SSD1306ascii |
|
| 11 | + |
|
| 12 | + |
|
| 13 | +GND VCC SCL SDA |
|
| 14 | + |
|
| 15 | + |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE-DAT/lib/mqtt.md
| ... | ... | @@ -0,0 +1,56 @@ |
| 1 | + |
|
| 2 | + |
|
| 3 | +## arduino library |
|
| 4 | + |
|
| 5 | +- async-mqtt-client-master |
|
| 6 | + |
|
| 7 | +- PubSubClient |
|
| 8 | + - https://github.com/knolleary/pubsubclient |
|
| 9 | + - examples/mqtt_esp8266.ino |
|
| 10 | + |
|
| 11 | +- radiolib |
|
| 12 | + |
|
| 13 | + |
|
| 14 | +## MQTT broker on ubuntu |
|
| 15 | + |
|
| 16 | +sudo apt install -y mosquitto |
|
| 17 | + |
|
| 18 | +sudo systemctl status mosquitto |
|
| 19 | + |
|
| 20 | + |
|
| 21 | +- Stop the mosquitto service: |
|
| 22 | + - $ sudo systemctl stop mosquitto |
|
| 23 | +- Start the mosquitto service: |
|
| 24 | + - $ sudo systemctl start mosquitto |
|
| 25 | +- Restart the mosquitto service: |
|
| 26 | + - $ sudo systemctl restart mosquitto |
|
| 27 | + |
|
| 28 | +### Log file |
|
| 29 | +* cat /var/log/mosquitto/mosquitto.log |
|
| 30 | + |
|
| 31 | +## Conf Setup list |
|
| 32 | +allow_anonymous false // not allow anonymous |
|
| 33 | +password_file /etc/mosquitto/passwd // set password |
|
| 34 | + |
|
| 35 | +listener 1883 // set port 1883 public, or listener 1883 localhost for localhost only |
|
| 36 | + |
|
| 37 | +listener 1884 // set 1884 for wss |
|
| 38 | +protocol websockets |
|
| 39 | + |
|
| 40 | + |
|
| 41 | + |
|
| 42 | + |
|
| 43 | +## MQTT client |
|
| 44 | + |
|
| 45 | +sudo apt install -y mosquitto-clients |
|
| 46 | + |
|
| 47 | +sub: |
|
| 48 | +mosquitto_sub -t "test" |
|
| 49 | + |
|
| 50 | +pub: |
|
| 51 | +mosquitto_pub -m "ON" -t "test" |
|
| 52 | + |
|
| 53 | +A number of my IoT students make use of (the FREE plan with) BeeBotte for their remote MQTT broker. |
|
| 54 | + |
|
| 55 | +https://beebotte.com/ |
|
| 56 | +It's very easy to set up and works really well with Nod-RED. |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE-DAT/megaCoreX.md
| ... | ... | @@ -0,0 +1,4 @@ |
| 1 | + |
|
| 2 | +# MCUdude MegaCoreX |
|
| 3 | + |
|
| 4 | +Arduino board - https://mcudude.github.io/MegaCoreX/package_MCUdude_MegaCoreX_index.json |
SDK/Arduino-IDE-DAT/megaTinyCore/53-54-16-15-12-2022.png
| ... | ... | Binary files /dev/null and b/SDK/Arduino-IDE-DAT/megaTinyCore/53-54-16-15-12-2022.png differ |
SDK/Arduino-IDE-DAT/megaTinyCore/megaTinyCore.md
| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | + |
|
| 2 | +# megaTinyCore |
|
| 3 | + |
|
| 4 | + |
|
| 5 | + |
|
| 6 | +## e.g. attiny 1604 |
|
| 7 | + |
|
| 8 | + |
|
| 9 | +- flash bootloader first |
|
| 10 | +- upload sketch by programmer secondly |
|
| 11 | + |
SDK/Arduino-IDE-DAT/softwareserial.md
| ... | ... | @@ -0,0 +1,4 @@ |
| 1 | + |
|
| 2 | + |
|
| 3 | + |
|
| 4 | +SoftwareSerial(rxPin, txPin, inverse_logic) |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE/Arduino-ESP32/52-27-16-05-01-2023.png
| ... | ... | Binary files a/SDK/Arduino-IDE/Arduino-ESP32/52-27-16-05-01-2023.png and /dev/null differ |
SDK/Arduino-IDE/Arduino-ESP32/arduino-esp32.md
| ... | ... | @@ -1,14 +0,0 @@ |
| 1 | - |
|
| 2 | - |
|
| 3 | -https://docs.espressif.com/projects/arduino-esp32/en/latest/getting_started.html#supported-soc-s |
|
| 4 | - |
|
| 5 | -ESP32-WROOM |
|
| 6 | - |
|
| 7 | - |
|
| 8 | - |
|
| 9 | - |
|
| 10 | - |
|
| 11 | -version 2.0.6 - 2022/2/3 |
|
| 12 | -version 2.0.4 |
|
| 13 | - |
|
| 14 | -https://github.com/espressif/arduino-esp32 |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE/arduino-IDE-DAT.md
| ... | ... | @@ -1,50 +0,0 @@ |
| 1 | - |
|
| 2 | -### boards |
|
| 3 | - |
|
| 4 | -https://arduino.esp8266.com/stable/package_esp8266com_index.json |
|
| 5 | - |
|
| 6 | -megaTinyCore - megaTinyAVR |
|
| 7 | -https://mcudude.github.io/MegaCoreX/package_MCUdude_MegaCoreX_index.json |
|
| 8 | -https://github.com/MCUdude/MegaCoreX |
|
| 9 | - |
|
| 10 | - |
|
| 11 | -https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
|
| 12 | - |
|
| 13 | -http://drazzy.com/package_drazzy.com_index.json |
|
| 14 | -https://github.com/SpenceKonde/megaTinyCore |
|
| 15 | - |
|
| 16 | -https://github.com/SpenceKonde/ATTinyCore |
|
| 17 | - |
|
| 18 | - |
|
| 19 | -https://nulllab.coding.net/p/lgt/d/nulllab_lgt_arduino/git/raw/master/package_nulllab_boards_index_zh.json |
|
| 20 | - |
|
| 21 | -https://cdn.jsdelivr.net/gh/nulllaborg/arduino_nulllab/package_nulllab_boards_index_zh.json |
|
| 22 | - |
|
| 23 | - |
|
| 24 | - |
|
| 25 | - |
|
| 26 | - |
|
| 27 | -- [[softwareserial]] |
|
| 28 | - |
|
| 29 | -- [[arduino-lib]] |
|
| 30 | - |
|
| 31 | - |
|
| 32 | - |
|
| 33 | - |
|
| 34 | -### include |
|
| 35 | - |
|
| 36 | - |
|
| 37 | -use include “test.h” to add variables |
|
| 38 | - |
|
| 39 | - |
|
| 40 | - |
|
| 41 | - |
|
| 42 | -## snippet |
|
| 43 | - |
|
| 44 | - // Periodically blink the onboard LED while listening for serial commands |
|
| 45 | - if ((int)(millis()/500) > lastPeriod) |
|
| 46 | - { |
|
| 47 | - lastPeriod++; |
|
| 48 | - pinMode(LED, OUTPUT); |
|
| 49 | - digitalWrite(LED, lastPeriod%2); |
|
| 50 | - } |
SDK/Arduino-IDE/lib/18-50-16-13-02-2023.png
| ... | ... | Binary files a/SDK/Arduino-IDE/lib/18-50-16-13-02-2023.png and /dev/null differ |
SDK/Arduino-IDE/lib/EspSoftwareSerial.md
| ... | ... | @@ -1,10 +0,0 @@ |
| 1 | - |
|
| 2 | -# espsoftwareserial |
|
| 3 | - |
|
| 4 | -## software serial |
|
| 5 | -#define D5 (18) |
|
| 6 | -#define D6 (19) |
|
| 7 | - |
|
| 8 | -#define D7 (23) |
|
| 9 | -#define D8 (5) |
|
| 10 | -#define TX (1) |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE/lib/arduino-OLED.md
| ... | ... | @@ -1,10 +0,0 @@ |
| 1 | - |
|
| 2 | -# arduino OLED |
|
| 3 | - |
|
| 4 | - |
|
| 5 | -- SSD1306ascii |
|
| 6 | - |
|
| 7 | - |
|
| 8 | -## common OLED I2C address |
|
| 9 | - |
|
| 10 | -- 0x3C = the version we are selling |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE/lib/arduino-lib.md
| ... | ... | @@ -1,8 +0,0 @@ |
| 1 | - |
|
| 2 | - |
|
| 3 | -## lowpower lab SPIFlash |
|
| 4 | -- //get it here: https://github.com/LowPowerLab/SPIFlash |
|
| 5 | - |
|
| 6 | -### library |
|
| 7 | - |
|
| 8 | -- fastLED |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE/lib/display.md
| ... | ... | @@ -1,15 +0,0 @@ |
| 1 | - |
|
| 2 | - |
|
| 3 | -TFT_eSPI |
|
| 4 | - |
|
| 5 | - |
|
| 6 | -### OLED |
|
| 7 | - |
|
| 8 | -SSD1306 |
|
| 9 | - |
|
| 10 | -SSD1306ascii |
|
| 11 | - |
|
| 12 | - |
|
| 13 | -GND VCC SCL SDA |
|
| 14 | - |
|
| 15 | - |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE/lib/mqtt.md
| ... | ... | @@ -1,56 +0,0 @@ |
| 1 | - |
|
| 2 | - |
|
| 3 | -## arduino library |
|
| 4 | - |
|
| 5 | -- async-mqtt-client-master |
|
| 6 | - |
|
| 7 | -- PubSubClient |
|
| 8 | - - https://github.com/knolleary/pubsubclient |
|
| 9 | - - examples/mqtt_esp8266.ino |
|
| 10 | - |
|
| 11 | -- radiolib |
|
| 12 | - |
|
| 13 | - |
|
| 14 | -## MQTT broker on ubuntu |
|
| 15 | - |
|
| 16 | -sudo apt install -y mosquitto |
|
| 17 | - |
|
| 18 | -sudo systemctl status mosquitto |
|
| 19 | - |
|
| 20 | - |
|
| 21 | -- Stop the mosquitto service: |
|
| 22 | - - $ sudo systemctl stop mosquitto |
|
| 23 | -- Start the mosquitto service: |
|
| 24 | - - $ sudo systemctl start mosquitto |
|
| 25 | -- Restart the mosquitto service: |
|
| 26 | - - $ sudo systemctl restart mosquitto |
|
| 27 | - |
|
| 28 | -### Log file |
|
| 29 | -* cat /var/log/mosquitto/mosquitto.log |
|
| 30 | - |
|
| 31 | -## Conf Setup list |
|
| 32 | -allow_anonymous false // not allow anonymous |
|
| 33 | -password_file /etc/mosquitto/passwd // set password |
|
| 34 | - |
|
| 35 | -listener 1883 // set port 1883 public, or listener 1883 localhost for localhost only |
|
| 36 | - |
|
| 37 | -listener 1884 // set 1884 for wss |
|
| 38 | -protocol websockets |
|
| 39 | - |
|
| 40 | - |
|
| 41 | - |
|
| 42 | - |
|
| 43 | -## MQTT client |
|
| 44 | - |
|
| 45 | -sudo apt install -y mosquitto-clients |
|
| 46 | - |
|
| 47 | -sub: |
|
| 48 | -mosquitto_sub -t "test" |
|
| 49 | - |
|
| 50 | -pub: |
|
| 51 | -mosquitto_pub -m "ON" -t "test" |
|
| 52 | - |
|
| 53 | -A number of my IoT students make use of (the FREE plan with) BeeBotte for their remote MQTT broker. |
|
| 54 | - |
|
| 55 | -https://beebotte.com/ |
|
| 56 | -It's very easy to set up and works really well with Nod-RED. |
|
| ... | ... | \ No newline at end of file |
SDK/Arduino-IDE/megaCoreX.md
| ... | ... | @@ -1,4 +0,0 @@ |
| 1 | - |
|
| 2 | -# MCUdude MegaCoreX |
|
| 3 | - |
|
| 4 | -Arduino board - https://mcudude.github.io/MegaCoreX/package_MCUdude_MegaCoreX_index.json |
SDK/Arduino-IDE/megaTinyCore/53-54-16-15-12-2022.png
| ... | ... | Binary files a/SDK/Arduino-IDE/megaTinyCore/53-54-16-15-12-2022.png and /dev/null differ |
SDK/Arduino-IDE/megaTinyCore/megaTinyCore.md
| ... | ... | @@ -1,11 +0,0 @@ |
| 1 | - |
|
| 2 | -# megaTinyCore |
|
| 3 | - |
|
| 4 | - |
|
| 5 | - |
|
| 6 | -## e.g. attiny 1604 |
|
| 7 | - |
|
| 8 | - |
|
| 9 | -- flash bootloader first |
|
| 10 | -- upload sketch by programmer secondly |
|
| 11 | - |
SDK/Arduino-IDE/softwareserial.md
| ... | ... | @@ -1,4 +0,0 @@ |
| 1 | - |
|
| 2 | - |
|
| 3 | - |
|
| 4 | -SoftwareSerial(rxPin, txPin, inverse_logic) |
|
| ... | ... | \ No newline at end of file |