Git Product home page Git Product logo

proyecto-incubadora's Introduction

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

if you are usign ubuntu 22 and the esp32cam motherboard based on "ID 1a86:7523 QinHeng Electronics CH340 serial converter" you won't be able to use the device. This happens because of conflict between product IDs (a Braille screen reader and my CH340 based chip). Here is the solution :

Edit /usr/lib/udev/rules.d/85-brltty.rules; Search for this line and comment it out:

ENV{PRODUCT}=="1a86/7523/*", ENV{BRLTTY_BRAILLE_DRIVER}="bm", GOTO="brltty_usb_run"

then reboot.

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 enter the downloaded file with:

 cd firmwareESP32

then download the sdkmanager file to be able to compile the firmware:

 wget -c https://cutt.ly/QwjY9Sdt --output-document sdkconfig --show-progress
git pull
make menuconfig  
make -j4  

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

or

make flash

Load the Lua scripts

To load the scripts we have 2 options:

Editing Lua scripts

  • ZeroBrane
  • VSCodium... remember to install sumneko's Lua package, then using the open addon manager install esp32 definitions.

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 & DHT22

Controller diagram

made with โค๏ธ by:

files we need to send to the ESP32

  1. bmw280.lua located in the libs folder
  2. credentials.lua located in the libs folder (in lines 5 and 6 you have to write your SSID and password)
  3. wifiinit.lua located in the app folder
  4. SendToGrafana.lua located in the app folder

proyecto-incubadora's People

Contributors

anniescigliano avatar javierajorge avatar javierbrk avatar jerec4str0 avatar nicoechaniz avatar pablomonte avatar santiagocetran avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.