Skip to content

Instantly share code, notes, and snippets.

View IdrisCytron's full-sized avatar

Idris Zainal Abidin IdrisCytron

View GitHub Profile
@IdrisCytron
IdrisCytron / MakerUNOSIM7600.ino
Created April 17, 2019 03:06
Send and receive SMS using SIM7600 GSM module and Arduino.
/*
Project: Interfacing SIM7600 GSM Module with Maker UNO
Item used:
- Maker UNO https://www.cytron.io/p-maker-uno
- SIM7600 https://www.cytron.io/p-4g-3g-2g-gsm-gprs-gnss-hat-for-raspberry-pi
*/
#include <SoftwareSerial.h>
#include "Adafruit_FONA.h"
@IdrisCytron
IdrisCytron / ESP32WaterFlow.ino
Created October 1, 2019 09:12
Interface water flow sensor with ESP32 board.
/*
Application:
- Interface water flow sensor with ESP32 board.
Board:
- ESP32 Dev Module
https://my.cytron.io/p-node32-lite-wifi-and-bluetooth-development-kit
Sensor:
- G 1/2 Water Flow Sensor
@IdrisCytron
IdrisCytron / I2C_LCD_driver.py
Created September 17, 2019 08:19
Raspberry Pi I2C LCD driver.
# -*- coding: utf-8 -*-
# i2c bus (0 -- original Pi, 1 -- Rev 2 Pi)
I2CBUS = 1
# LCD Address
ADDRESS = 0x27
import smbus
from time import sleep
@IdrisCytron
IdrisCytron / RaspberryPiKeypadPassword.py
Last active April 24, 2024 08:31
Interface keypad using Raspberry Pi and develop simple password application.
from gpiozero import DigitalInputDevice, DigitalOutputDevice, Buzzer
from time import time, sleep
import I2C_LCD_driver
col1 = DigitalOutputDevice(17)
col2 = DigitalOutputDevice(18)
col3 = DigitalOutputDevice(27)
col4 = DigitalOutputDevice(22)
row1 = DigitalInputDevice(25, pull_up=None, active_state=True)
row2 = DigitalInputDevice(12, pull_up=None, active_state=True)
@IdrisCytron
IdrisCytron / MakerUNOSIM7600GPS.ino
Last active April 5, 2024 14:57
Arduino Device Tracker Using GSM GPS SIM7600E Module
/*
Project: Arduino GSM GPS Device Tracker
Board: Maker Uno
GSM: SIM7600E
GPS: SIM7600E
Library:
- Adafruit FONA
*/
#include <SoftwareSerial.h>
@IdrisCytron
IdrisCytron / ESP32SIM800LSMSRelay.ino
Created November 26, 2019 06:33
Send and receive SMS using TTGO ESP32 SIM800L
/*
Tutorial: Control servo movement with gesture using ESP32 and Arduino
Board:
- TTGO T-Call ESP32 with SIM800L GPRS Module
https://my.cytron.io/p-ttgo-t-call-esp32-with-sim800l-gprs-module
Output:
- 1CH Active H/L 5V OptoCoupler Relay Module
https://my.cytron.io/c-electronic-components/c-relays/p-1ch-active-h-l-5v-optocoupler-relay-module
@IdrisCytron
IdrisCytron / PiCameraTelegramBot.py
Last active October 21, 2023 06:55
Raspberry Pi Camera Telegram Bot. Youtube - https://www.youtube.com/watch?v=zAU0pKrk24o
import telepot
import picamera
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
def handle(msg):
global sendPhoto
global chat_id
@IdrisCytron
IdrisCytron / ESP32AIOMLX90614.ino
Last active May 19, 2023 10:00
Send Sensors Data (MLX90614) to Adaftuit IO Using ESP32.
#include <TFT_eSPI.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_MLX90614.h>
#include <WiFi.h>
#include "Adafruit_MQTT.h"
#include "Adafruit_MQTT_Client.h"
#define WLAN_SSID "YourSSID"
@IdrisCytron
IdrisCytron / ESP32BlynkStepper.ino
Created December 18, 2019 09:28
Control Stepper Motor With Blynk App Using ESP32
/*
Tutorial: Control Stepper Motor With Blynk App Using ESP32
Board:
- TTGO T-Display ESP32
Output:
- 12V 28BYJ-48 Stepper Motor
https://my.cytron.io/c-motor-and-motor-driver/c-dc-motor/c-stepper-motor/p-12v-28byj-48-stepper-motor-plus-uln2003-driver-board
@IdrisCytron
IdrisCytron / RC522ReadWrite.py
Last active September 12, 2022 17:32
Read and write RFid data using RC522 on Raspberry Pi.
#!/usr/bin/env python
import RPi.GPIO as GPIO
from gpiozero import Button, Buzzer
from time import sleep
from mfrc522 import SimpleMFRC522
import sys
GPIO.setwarnings(False)