Rechercher dans les propriétés de la page

Rechercher dans les propriétés de la page

Entrer soit une page et une propriété, ou seulement une propriété, pour récupérer toutes les valeurs affectées.

Affichage de 6 résultats à partir du n°1.

Voir (20 précédentes | 20 suivantes) (20 | 50 | 100 | 250 | 500).


    

Liste de résultats

  • Create a new feed by reaching https://io.adafruit.com/ > Feeds > Actions and then name it, for example “lightsensorvalue”.  +
  • Follow the [https://github.com/espressif/aFollow the [https://github.com/espressif/arduino-esp32/blob/master/README.md#installation-instructions instructions provided on GitHub] for your Operating System. For example, if you have Windows 7 or 10, choose “Instructions for Windows” / if you have a MacBook, choose “Instructions for Mac”. a MacBook, choose “Instructions for Mac”.  +
  • For that we need to run Arduino IDE and go to Sketch > Include Library > Manage Libraries… > Search for “Adafruit mqtt library” and install the first result.  +
  • Launch Arduino IDE and select “ESP32 Dev MLaunch Arduino IDE and select “ESP32 Dev Module” from the Tools menu > Board. Fetch the Blink example from File > Examples > 01.Basics > Blink. write int LED_BUILTIN = 2; at the top of the code ''/*'' '' ESP 32 Blink'' '' Turns on an LED on for one second, then off for one second, repeatedly.'' '' The ESP32 has an internal blue LED at D2 (GPIO 02)'' ''*/'' ''int LED_BUILTIN = 2;'' ''void setup()'' ''{'' '' pinMode(LED_BUILTIN, OUTPUT);'' ''}'' ''void loop()'' ''{'' '' digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)'' '' delay(1000);                       // wait for a second'' '' digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW'' '' delay(1000);                       // wait for a second'' ''}'' Finally, upload the code by using the right arrow (→) button at the top right corner of the window, by choosing Sketch > Upload or by pressing Ctrl+U on the keyboard.Sketch > Upload or by pressing Ctrl+U on the keyboard.  +
  • Let’s create a program that registers the Let’s create a program that registers the values recorded by the photoresistor and the internal temperature sensor and publishes them online. For that we need to reach: http://easycoding.tn/esp32/demos/code/ Choose the appropriate blocks to create the code displayed below: (see image) # “Variables” section - Declare ‘i’ type ‘int’ Value + “Math” section - the actual value “0” # “IOT” section > “Web services” subsection - Adafruit MQTT Setup (User Name and Key are retrievable from https://io.adafruit.com/ > View your AIO Key) # “Various” section - Delay Ms 3000 # “Serial” section - Print on new line ‘Start’ # “IOT” section > “IOT Station” subsection - Connect Network ssid… password… (the ssid is the name of your local wifi network connection and its password) # “Loops” section - repeat while.. do + “Logic” section - not + “IOT” section > “IOT Station” subsection - Is Connected # “IOT” section > “IOT Station” subsection - Local IP The “User Name” and “Key” are available here (just click on View AIO Key):nd “Key” are available here (just click on View AIO Key):  +
  • To upload the code on Arduino IDE, click oTo upload the code on Arduino IDE, click on the “Copy Arduino code into clipboard” button. then paste the code onto Arduino IDE, and upload it to the ESP32. If you click on Serial Monitor (top right of the Arduino IDE screen, below the “X” button), you should see the values recorded by the light sensor and by the temperature sensor: It means that your ESP32 is connected to the internet, and that it’s sending the value recorded by the photoresistor and by the internal temperature sensor online, on https://adafruit.io.ure sensor online, on https://adafruit.io.  +