Sunday, July 9, 2017

paket belajar kilat modbus





belajar modbus kilat tanpa ribet

paket belajar modbus terdiri dari:
1. Arduino Uno R3  #2
2. Shield RS485 #2
3. Ethernet Shield R3 #1
4. Usb To RS485 #1
5. Protoboard #1
6. Kabel Jumper #6
7. Resistor 10k, 330 #4
8. Led 3mm #2
9. Tutorial modbus
    - Modbus Serial
    - Modbus TCP
    - Modbus Master
10. Sketch Arduino (all modbus)


silahkan PM fuad.hasan1987@gmail.com
or wa 081555305255

Monday, June 5, 2017

Tutorial Software ETIMS for ETR300



TUTORIAL ENTEC ETR300S
By : Fuad Hasan






Material yang dibutuhkan:

  1.  Kabel serial to serial cross (female to female)
  2.  Laptop
  3.  Usb to serial

Software yang dibutuhkan:

  1. Etims

Cara install etims:

  1.   Instal sampai selesai
  2.  Jika windows 7, klik kanan etims pilih properties, compatibility, sentang Run the program windows xp3.
  3. Minta lisensi ke korea untuk registrasi, nanti dapat ENTEC.lic
  4.   Saat run select device : ETR 300
  5. M asukkan password: entecene
  6. Pilih connect - > pilih comport sesuaikan usb nancap to PC



Tuesday, May 9, 2017

tahap selanjutnya uji modbus

jika sudah selesai upload dan merangkai silahkan di uji

download dulu software modscan

tancapkan usb to rs485 to pc or laptop

run modscan

connection -> connect

pilih connect using : sesuaikan port usb nancap dimana

baudrate 9600
worklenghr 8
parity none
stopbit 1
klik ok

lenght ganti 3
coil status ganti holding register


jika valid response sudah ada angkanya berarti anda sudah berhasil

rangkaian dari upload file modbus


upload sketch modbus RTU RS485

/*
Author  : Fuad Hasan
Created : 9 Mei  2017
        
*/

#include <ModbusSlave.h>

ModbusSlave mbs;

/*register addres modbus*/
enum { 
        MB_40000,            
        MB_40001,          
        MB_40002,       
      
        MB_REGS     //jumlah addres yang dipolling sebanyak 3   
};

int regs[MB_REGS];
unsigned long wdog = 0;         /* watchdog */
unsigned long tprev = 0;         /* previous time*/

void setup()
{
       
/* the Modbus slave configuration parameters */

  const unsigned char SLAVE = 10;      /* slaveId */
  const long BAUD = 9600;             /* baud rate */
  const char PARITY = 'n';             /* n=none; e=even; o=odd */
  const char TXENPIN = 2;              /* output driver enable pin */

  /* Second step MBS: configure */
  mbs.configure(SLAVE, BAUD, PARITY, TXENPIN);
  mbs.update(regs, MB_REGS);
  pinMode(13, OUTPUT);// digital output
  pinMode(12, INPUT);//digital input
 
}
void loop()
{
        /* Third and las step MBS: update in loop*/
        if(mbs.update(regs, MB_REGS))
                wdog = millis();
        if ((millis() - wdog) > 1500); 


 //   DIGITAL INPUT
   regs[MB_40000] = digitalRead(12);
  
  
//   DIGITAL OUTPUT  
   digitalWrite(13, regs[MB_40001]);
   
    //ANALOG INPUT
    regs[MB_40002] = analogRead(A0);
   
        
            
  }
       
  

Tuesday, April 25, 2017

compare arduino UNO VS MEGA 2560




Arduino Uno
Technical specs
Microcontroller ATmega328P
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limit) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
PWM Digital I/O Pins 6
Analog Input Pins 6
DC Current per I/O Pin 20 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328P)
of which 0.5 KB used by bootloader
SRAM 2 KB (ATmega328P)
EEPROM 1 KB (ATmega328P)
Clock Speed 16 MHz
LED_BUILTIN 13
Length 68.6 mm
Width 53.4 mm
Weight 25 g




arduino MEGA 2560
Technical specs
Microcontroller ATmega2560
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limit) 6-20V
Digital I/O Pins 54 (of which 15 provide PWM output)
Analog Input Pins 16
DC Current per I/O Pin 20 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 256 KB of which 8 KB used by bootloader
SRAM 8 KB
EEPROM 4 KB
Clock Speed 16 MHz
LED_BUILTIN 13
Length 101.52 mm
Width 53.3 mm
Weight 37 g

Thursday, April 20, 2017

arduino dan sensor tegangan

Share tutorial rangkai sensor tegangan AC 220

komponen yang digunakan antara lain:
trafo step down 220 to 6v
capasitor 10uf
dioda 1A
resistor 10K
kabel jumper
arduino uno
breadboard
lcd 2004 i2c

check hasil di video

saat kali program berjalan nggak sesuai tunggu 10 detik.. nnti hasilnya akan stabil

Wednesday, April 12, 2017

datalogger power meter with RTU SIMOR TCP

aplikasi online monitoring dan datalogger power meter menggunakan VB.net:
1. Tegangan phasa Netral
2. Tegangan Phasa-phasa
3. Ampere
4. Power Factor

RTU Simor TCP sebagai RTU Consentrator/gateway


paket belajar kilat modbus

belajar modbus kilat tanpa ribet paket belajar modbus terdiri dari: 1. Arduino Uno R3  #2 2. Shield RS485 #2 3. Ethernet Shield R...