Selasa, 26 Maret 2024

QR qode generator untuk IP Camera

 Pernah punya bohlam camera CCTV setelah beberapa tahun ID QR code jadi burem

cara buat qR Code nya 

1. scan wifi 

2. dapatkan ID contoh MV55824129

3. https://www.qrcode-monkey.com/#text pilih yang text

4.masukan text  V380^55824129^HsAkQQWG^3^2^2003270011^20110101110822 

5. generate


Pakai sniping tool daripada harus login .

Coba add divice di V38o soft ware ....selamat mencoba


 V380^80931665^HsAkQQWG^3^2^2003270011^20110101110822 

 





Selasa, 27 Februari 2024

Kamis, 15 Februari 2024

Loog Book 16 Feb 2024

 08.00 naik sepedah listrik rapat RIIM 4 Mas Rud

13.00 Rapat Bimbingan Akmet


Program ESP NOW

Perintah Pompa  

ROTCC 100

ROTCW 1000

SN

POS

SW1

SW2



ESP NOW

/*
  Rui Santos
  Complete project details at https://RandomNerdTutorials.com/esp-now-esp32-arduino-ide/
 
  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files.
 
  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.
*/

#include <esp_now.h>
#include <WiFi.h>

// REPLACE WITH YOUR RECEIVER MAC Address
uint8_t broadcastAddress[] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};

// Structure example to send data
// Must match the receiver structure
typedef struct struct_message {
  char a[32];
  int b;
  float c;
  bool d;
} struct_message;

// Create a struct_message called myData
struct_message myData;

esp_now_peer_info_t peerInfo;

// callback when data is sent
void OnDataSent(const uint8_t *mac_addr, esp_now_send_status_t status) {
  Serial.print("\r\nLast Packet Send Status:\t");
  Serial.println(status == ESP_NOW_SEND_SUCCESS ? "Delivery Success" : "Delivery Fail");
}
 
void setup() {
  // Init Serial Monitor
  Serial.begin(115200);
 
  // Set device as a Wi-Fi Station
  WiFi.mode(WIFI_STA);

  // Init ESP-NOW
  if (esp_now_init() != ESP_OK) {
    Serial.println("Error initializing ESP-NOW");
    return;
  }

  // Once ESPNow is successfully Init, we will register for Send CB to
  // get the status of Trasnmitted packet
  esp_now_register_send_cb(OnDataSent);
 
  // Register peer
  memcpy(peerInfo.peer_addr, broadcastAddress, 6);
  peerInfo.channel = 0;  
  peerInfo.encrypt = false;
 
  // Add peer        
  if (esp_now_add_peer(&peerInfo) != ESP_OK){
    Serial.println("Failed to add peer");
    return;
  }
}
 
void loop() {
  // Set values to send
  strcpy(myData.a, "THIS IS A CHAR");
  myData.b = random(1,20);
  myData.c = 1.2;
  myData.d = false;
 
  // Send message via ESP-NOW
  esp_err_t result = esp_now_send(broadcastAddress, (uint8_t *) &myData, sizeof(myData));
   
  if (result == ESP_OK) {
    Serial.println("Sent with success");
  }
  else {
    Serial.println("Error sending the data");
  }
  delay(2000);
}
Perintah Pompa 
/*
  Rui Santos
  Complete project details at https://RandomNerdTutorials.com/esp-now-esp32-arduino-ide/
 
  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files.
 
  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.
*/

#include <esp_now.h>
#include <WiFi.h>

// Structure example to receive data
// Must match the sender structure
typedef struct struct_message {
    char a[32];
    int b;
    float c;
    bool d;
} struct_message;

// Create a struct_message called myData
struct_message myData;

// callback function that will be executed when data is received
void OnDataRecv(const uint8_t * mac, const uint8_t *incomingData, int len) {
  memcpy(&myData, incomingData, sizeof(myData));
  Serial.print("Bytes received: ");
  Serial.println(len);
  Serial.print("Char: ");
  Serial.println(myData.a);
  Serial.print("Int: ");
  Serial.println(myData.b);
  Serial.print("Float: ");
  Serial.println(myData.c);
  Serial.print("Bool: ");
  Serial.println(myData.d);
  Serial.println();
}
 
void setup() {
  // Initialize Serial Monitor
  Serial.begin(115200);
 
  // Set device as a Wi-Fi Station
  WiFi.mode(WIFI_STA);

  // Init ESP-NOW
  if (esp_now_init() != ESP_OK) {
    Serial.println("Error initializing ESP-NOW");
    return;
  }
 
  // Once ESPNow is successfully Init, we will register for recv CB to
  // get recv packer info
  esp_now_register_recv_cb(OnDataRecv);
}
 
void loop() {

}

logbook 15 vebruari (2) Rispro ESP8266 serial comunication ke Mega 2650

 ESP8266

TX danground ke Mega 2650 port serial 2 



void setup() {
  // put your setup code here, to run once:
    Serial.begin(115200);
    Serial2.begin(115200);
}

void loop() {
  // put your main code here, to run repeatedly:
   delay(500);
      char inChar[2];
     if (Serial.available()>0)
    {
     
     for (int i=0; i<2; i++)
     {
      inChar[i] = Serial.read();
      delay(10);
     }
     
          if (inChar[0] == 'x' && inChar[1] == '-' )
          {
            Serial.println("X- serial");
           
          }
         
          if (inChar[0] == 'x' && inChar[1] == '0')
          {
            Serial.println("X0 serila");
           // goto x_0;
          }
           if (inChar[0] == 'x' && inChar[1] == '+')
          {
            Serial.println("X+ serial");
            //goto x_plus;
          }

         
          if (inChar[0] == 'y' && inChar[1] == '-')
          {
            Serial.println("Y- serial");
            //goto y_minus;
          }
         
          if (inChar[0] == 'y' && inChar[1] == '0')
          {
            Serial.println("Y0 serial");
           //goto y_0;
          }
           if (inChar[0] == 'y' && inChar[1] == '+')
          {
            Serial.println("Y+ serial");
           // goto y_plus;
          }
         
         
          if (inChar[0] == 'z' && inChar[1] == '-')
          {
            Serial.println("Z- serial");
            //goto z_minus;
          }
         
          if (inChar[0] == 'z' && inChar[1] == '0')
          {
            Serial.println("Z0 serial");
           // goto z_0;
          }
           if (inChar[0] == 'z' && inChar[1] == '+')
          {
            Serial.println("z+ serial");
            //goto z_plus;
          }  
     }
     char inChar2[2];
     if (Serial2.available()>0)
    {
     
     for (int i=0; i<2; i++)
     {
      inChar2[i] = Serial2.read();
      delay(10);
     }
     
          if (inChar2[0] == 'x' && inChar2[1] == '-' )
          {
            Serial.println("X- serial");
           
          }
         
          if (inChar2[0] == 'x' && inChar2[1] == '0')
          {
            Serial.println("X0 serila");
           // goto x_0;
          }
           if (inChar2[0] == 'x' && inChar2[1] == '+')
          {
            Serial.println("X+ serial");
            //goto x_plus;
          }

         
          if (inChar2[0] == 'y' && inChar2[1] == '-')
          {
            Serial.println("Y- serial");
            //goto y_minus;
          }
         
          if (inChar2[0] == 'y' && inChar2[1] == '0')
          {
            Serial.println("Y0 serial");
           //goto y_0;
          }
           if (inChar[0] == 'y' && inChar[1] == '+')
          {
            Serial.println("Y+ serial");
           // goto y_plus;
          }
         
         
          if (inChar2[0] == 'z' && inChar2[1] == '-')
          {
            Serial.println("Z- serial");
            //goto z_minus;
          }
         
          if (inChar2[0] == 'z' && inChar2[1] == '0')
          {
            Serial.println("Z0 serial");
           // goto z_0;
          }
           if (inChar2[0] == 'z' && inChar2[1] == '+')
          {
            Serial.println("z+ serial");
            //goto z_plus;
          }  
     }

     
}


Rabu, 14 Februari 2024

LogBook 15 Februari 2024 8 Chanel USB logic analizer

 

8-Channel USB Logic Analyzer 24Msps

 Untuk mempergunakan Logic annalizer bisa diboa mengunakan

https://support.saleae.com/logic-software/sw-download

Tested with PulseView (sigrok) and Logic2 (Saleae). Both tools are free to download. 
dicoba pake logic2  connect



Minggu, 11 Februari 2024

Logbook 12 Februari 2024 line folower DSB

 Logbook 12 Februari 2024

 

HY-S301 8-Channel Line Tracking Sensor Module

RM11.50

Out of stock

SKU: RBT-SEN-HYS301 Categories: , Tags: , , ,

Description

This module is a digital line tracking sensor you can use with Arduino to make a better line follower robot that can sense 8 way of black and white lines. The more ways it can sense, the more resolution the sensor gets!

This module works based on the reflection of infrared light. When following a line, the black line must therefore be able to absorb infrared light (approximately 950nm wavelength). The outputs of the sensors are high when enough light is reflected back.

Features

  • Voltage : 3.3 – 5V
  • Output Type : Digital
  • Two 3mm mounting holes
  • 8-way reflective optical sensors
  • Dimensions : 17 x 67 x 2 mm

 

Wiring

Label Meaning Connection
GND Ground Connect to GND of system
IR Infrared enable Connect to 3.3V or 5V of system (digital pin also will do)
D1 – D8 Sensor output pins Connect to any digital pins
VCC Power source Connect to 3.3V or 5V of system

 

Note : To run the module at 3.3V, connect the solder pads in the bottom left corner to brighten the IR LEDs.


Setelah mencoba keluaran Jika ada hambatan yang hampir menempel(jarah lebih kecil dari 5mm) adalah sekitar 4 Volt dari vcc 5 Volt

 

Senin, 05 Februari 2024

Log book 6 Feb 2024

 Rapat internal AM tentang distribusi SKP personel untuk tahun 2024

Kunjungan ke Kimia Maju ketemu dengan Pa Andreas

Kunjungan dari Benadus Sirenden membahas penelitian RIIM 4