Add the code provided in the Code section. Open a new window in the Arduino IDE and save the file. Use the Arduino IDE to create an application for your device.ġ) Connect the ESP32 to your computer using a micro-USB cable, and wait for it to connect successfully.Ģ) In the Arduino IDE select the ESP32 Dev Module board and the correct COM port.ģ) Create the application. However, using a portable micro-USB compatible battery can make your device portable for easier measurements. To complete this example, you need only devices that are built in to the ESP32 development kit provided by Sparkfun. For example, ESP32 Signal Strength.ħ) Note the write API key on the API Keys tab. If you have a free account, you can send data to ThingSpeak every 15 seconds.ġ) Sign up for new account as shown in Sign up for ThingSpeak.Ģ) Create a channel by selecting Channels > My Channels > New Channel.Ĥ) Enter RSSI as the Field 1 name, and Counter as the Field 2 name.ĥ) Name the channel. Each channel has up to eight data fields, three location fields, and a status field. To use ThingSpeak, you must have a user account and a created channel. Define the LED_BUILTIN pin as pin 5 to use the onboard LED. You can test your Arduino® setup on the ESP32 using the “Blink” example sketch in File > Examples > 01.Basics. For instructions, see Installation Instructions for Arduino Core for ESP32. Prerequisites ESP32 Arduino Core and IDE Setupįirst, set up your Arduino Core for ESP32.
0 Comments
Leave a Reply. |