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:
46_UNIR_NEMA17_12VDC_multi_test_code.ino
Link: https://medium.com/jungletronics/nema-17-stepper-motor-test-1d05aec10f91
Objective:
This code allows you to control the NEMA 17 stepper motor in different
micro-stepping modes (full, half, quarter, eighth, sixteenth, and thirty second steps).
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.
The project was supervised by Professor Dr. Ciro Jos茅 Egoavil Montero
/*Project:
44_UNIR_28BYJ48_12VDC_test_code.ino
Link: https://medium.com/jungletronics/28byj-48-12-v-stepper-motor-test-fbaa972dfea5
Objective:
This code allows you to control the 28BYJ-48 stepper motor in different
micro-stepping modes (full, half, quarter, eighth, and sixteenth steps).
The thirty-second step mode did not work, so it is commented out.
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:
43_UNIR_EEPROM24LC256v2.ino
Link: https://medium.com/jungletronics/eeprom-24lc256-reading-and-writing-arduino-sketch-bdfb6e5a3b13
Objective:
Reading and Writing Integers and Longs to EEPROM. See Project #42.
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.
The project was supervised by Professor Dr. Ciro Jos茅 Egoavil Montero
(https://www.linkedin.com/in/ciro-j-egoavil-210b7a44/?originalSubdomain=br),
/*Project:
42_UNIR_EEPROM24LC256v1.ino
Link: https://medium.com/jungletronics/eeprom-24lc256-reading-and-writing-arduino-sketch-bdfb6e5a3b13
Objective:
Reads and writes bytes to and from EEPROM.
Checks 24LC256 external EEPROM is connected.
Basic script to read and write to EEPROM.
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:
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.