Skip to content

Instantly share code, notes, and snippets.

View giljr's full-sized avatar
馃挱
Full Stack Developer with a degree in Computer Engineering.

Gilberto Oliveira Jr giljr

馃挱
Full Stack Developer with a degree in Computer Engineering.
View GitHub Profile
/*Project:
41_UNIR_lcd_i2c_custom_char_functions.ino
Link: https://medium.com/jungletronics/how-to-make-a-professional-lcd-display-99d3287c4ebd
Objective:
Defines a set of custom characters and functions to display them on an LCD screen.
It utilizes the prior project and refactors the code to achieve the same outcome with
greater efficiency and conciseness. LCD 16x2 I2C Library: LCD-I2C by Frank Hafele(v0.2.0)
It was developed during the N.A.V.E TECH UNIR Samsung Eletr么nica da Amaz么nia LTDA
In Porto Velho - RO - Brazil, Course from November 2023 to April 2024.
/*Project:
40_UNIR_lcd_i2c_custom_char.ino
Link: https://medium.com/jungletronics/how-to-make-a-professional-lcd-display-99d3287c4ebd
Objective:
Defines a set of custom characters and functions to display them on an LCD screen.
LCD 16x2 I2C Library: LCD-I2C by Frank Hafele(v0.2.0)
Please see the next project #41.
It was developed during the N.A.V.E TECH UNIR Samsung Eletr么nica da Amaz么nia LTDA
In Porto Velho - RO - Brazil, Course from November 2023 to April 2024.
#include <LCD-I2C.h>
// Default address of most PCF8574 modules, change according
LCD_I2C lcd(0x27, 16, 2);
uint8_t solar[8] = {0b11111,0b10101,0b11111,0b10101,0b11111,0b10101,0b11111,0b00000};
uint8_t battery[8] = {0b01110,0b11011,0b10001,0b10001,0b10001,0b10001,0b10001,0b11111};
uint8_t termometer[8] = {0b00100,0b01010,0b01010,0b01110,0b01110,0b11111,0b11111,0b01110};
/*Project:
39_UNIR_esp32_bluetooth_hello_world
Link: https://medium.com/jungletronics/bluetooth-onboard-led-blink-wifi-lora-esp32-heltec-4fc1b6e41c45
Objective:
Our proposal involves utilizing a cellular phone to establish a connection
with the Bluetooth Module of ESP32 and subsequently regulate the LED functionality.
Specifically, we aim to control the LED situated on the Heltec WiFi 32 board,
which is directly linked to PIN25/GPIO25.
It was developed during the N.A.V.E TECH UNIR Samsung Eletr么nica da Amaz么nia LTDA
/*Project:
38_UNIR_pir_sensor_interruption_approuch
Link: https://medium.com/jungletronics/pir-motion-sensing-led-display-6192f403c7db
Objective:
This implementation relying on interrupts offers distinct advantages over the previous code(#37),
especially in scenarios involving time-sensitive events, such as motion detection.
Interrupts empower the microcontroller to swiftly react to changes in the sensor state without
the necessity for continuous monitoring within the primary program loop,
distinguishing it from conventional polling techniques (#37).
/*Project:
37_UNIR_pir_sensor_polling_approuch
Link: https://medium.com/jungletronics/pir-motion-sensing-led-display-6192f403c7db
Objective:
This first code utilizes a polling approach, where the detection of motion relies on repeatedly checking
the sensor state within a loop and waiting for changes. This code employs a PIR sensor to identify motion
and adjusts an LED accordingly. Messages indicating the initiation and cessation of motion are printed to
the serial monitor. The pirState variable is employed to track the motion detection state,
preventing the generation of redundant messages.
/*Project:
36_UNIR_esp8266_low_power_demo_simplified
Link: https://medium.com/jungletronics/optimizing-power-consumption-on-esp8266-6563872a917d
Objective:
This code is incredibly straightforward and uncomplicated.
It will initiate a WiFi connection (test1) and transition the ESP8266 into Deep Sleep Mode (test2).
Perform a reset (GND on pin RST) to restore its functionality.
It is designed for an ESP8266 microcontroller using the Arduino framework.
It demonstrates low-power modes, specifically Deep Sleep mode,
/*Project:
35_UNIR_esp8266_low_power_demo
Link: https://medium.com/jungletronics/optimizing-power-consumption-on-esp8266-6563872a917d
Objective:
This section delves into the typical implementation of low-power modes on the ESP8266.
Below is an official example from Espressif showcasing how the deep sleep mode can be
employed to conserve power. It's important to note that the ESP8266 doesn't offer advanced
low-power modes seen in some other microcontrollers.
Nevertheless, you can employ specific strategies to effectively reduce power consumption.
/*Project:
27_UNIR_basic_RX_nRF24L_arduino
Link: [TODO: link to jungletronics page goes here ]
Objective:
This sketch is to upload to Arduino paired with nRF24L Radio. See Project 26.
This is the most basic and straightforward test ever conducted for dealing with the nRF24L Radio.
Tutorial: https://youtu.be/tWEgvS7Sj-8?si=zdPP_o1gHMPNGU54
This is a component of my study on nRF24L0 radios.
It was developed during the N.A.V.E TECH UNIR Samsung Eletr么nica da Amaz么nia LTDA
/*Project:
34_UNIR_Soil_Mosture_TX_nRF24L_pro_mini
Link: https://medium.com/jungletronics/smart-soil-moisture-monitoring-system-09135a6dcd87
Objective:
This sketch is to upload to Arduino paired with nRF24L Radio. See Project 26.
This is the most basic and straightforward test ever conducted for dealing with the nRF24L Radio.
Tutorial: https://youtu.be/tWEgvS7Sj-8?si=zdPP_o1gHMPNGU54
This is a component of my study on nRF24L0 radios.
It was developed during the N.A.V.E TECH UNIR Samsung Eletr么nica da Amaz么nia LTDA