Skip to content

sabry2000/SBP-Embedded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 t # SBP-Embedded This is the embedded systems repository for the Solar Bench PRoject

Guide

We will be using the Arduino IDE to help develop the software needed to control the ESP-32 microcontroller. The Arduino IDE is user-friendly, well-documented, and is great for beginners.

Steps

  1. Visit the Arduino website to install the latest version of the Arduino IDE.
  2. After getting the latest version of the Arduino IDE, follow this tutorial as it provides an in-depth guide to adding the ESP32 board as a recognized board to the Arduino IDE (You may skip the installation test step, but ensure that the example sketches can be found).
  3. Now you need to add all the necessary libraries to compile the program. Go to Sketch -> Include Library -> Manage Libraries and add the following libraries:
    • Google Cloud IoT Core JWT
    • PubSubClient
    • MQTT
    • Vector
  4. Go to Tools -> Board -> ESP32 Arduino. Select any ESP32 board.
  5. Verify that the sketch compiles without errors. (Sketch -> Verify)

Config Support

The following links are useful to help configure the Arduino Environment
Espressif Arduino Core Documentation
Example Tutorial

ESP Programming Help Commands

Link 1 Link 2

  1. sudo python esptool.py write_flash_status --non-volatile 0
  2. sudo python esptool.py --chip auto --port /dev/cu.usbserial-0001 --baud 115200 --before default_reset --after hard_reset write_flash -u --flash_mode dio --flash_freq 40m --flash_size 4MB 0x0 factory/factory_WROOM-32.bin
  3. sudo python esptool.py --chip auto --port /dev/cu.usbserial-0001 --baud 115200 --before default_reset --after hard_reset write_flash -u --flash_mode dio --flash_freq 40m --flash_size 4MB 0x0 factory/factory_WROVER-32.bin
  4. sudo python esptool.py erase_flash
  5. sudo python esptool.py read_flash_status
  6. sudo python esptool.py flash_id

Useful tutorials

Intro to ESP32
EEPROM for ESP32
Install Google Cloud
Install Google Cloud Help Google Cloud Platform for ESP32 1 Google Cloud Platform for ESP32 2
ESP32 Multithreading 1
ESP32 Multithreading 2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published