Skip to content

javierajorge/Proyecto-Incubadora

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 

Repository files navigation

Project-Incubadora

Notes before you start 🤚

add the current user to the dialout group. This will allow us to use the USB directly

sudo usermod -a -G dialout $USER

We also add ourselves to the group temporarily so we don't have to log in to the system again. If we do not, it will be necessary to restart for the changes to take effect.

newgrp dialout

Firmware with lua support

clone the repository

git clone --branch dev-esp32 --depth=1 --shallow-submodules --recurse-submodules https://github.com/nodemcu/nodemcu-firmware.git firmwareESP32 

Once cloned, download the skdconfig file from this link and save it in 'firmwareESP32' folder then it should be compiled with :

make

Burn Firmware with ESPTool

Installation of ESPTool

sudo apt install esptool

Put the ESP32 in programming mode by holding the IO0 button and pressing the RST button at the same time.

from the 'build' folder run:

esptool --chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 bootloader/bootloader.bin 0x10000 NodeMCU.bin 0x8000 partitions.bin

Load the Lua scripts

To load the scripts we have 3 options:

Option 1 (ESPlorer)

clone the repository:

git clone https://github.com/4refr0nt/ESPlorer.git

after cloning it:

cd ESPlorer
./mvnw clean package

to execute ESPlorer:

java -jar target/ESPlorer.jar

Option 2 (nodemcu-uploader)

installation:

sudo pip install nodemcu-uploader

once installed, we can upload files using:

nodemcu-uploader upload init.lua

to see the different commands that can be used:

nodemcu-uploader -h

Option 3 (ZeroBraneStudio)

installation:

wget https://download.zerobrane.com/ZeroBraneStudioEduPack-1.90-linux.sh

After downloading, we give it execution permission with:

chmod +x ZeroBraneStudioEduPack-1.90-linux.sh

after giving it permissions, run the installer:

./ZeroBraneStudioEduPack-1.90-linux.sh

Useful Links

Diagrams BME280 y DHT22

made with ❤️ by:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%