LED with Switch and Memory Bulp



 https://www.tinkercad.com

Script

 

int buttonState = 0;
int buttonNurse = 1;
int buttonNurseOld = 1;
int PortBMem;
int PortCMem;
int PortDMem;

void setup()
{
  Serial.begin (9600);
  DDRD = B00000000;  // sets Arduino pins 0 to 7 as input, pin 0 as input
  DDRD = DDRD | B11110000;  // this is safer as it sets pins 4 to 7 as inputs
                        // without changing the value of pins 0 to 3, which are RX & TX
  DDRB = B00000000;  // sets Arduino pins 8 to 13 as input
  DDRB = DDRB | B00111111;  // this is safer as it sets pins 8 to 13 as inputs

  DDRC = B00001111;  // sets Arduino pins A0 to A4 as output
  DDRC = DDRC | B00001111;  // this is safer as it sets pins 8 to 13 as inputs

  PortBMem = 0;
  PortCMem = 0;
  PortDMem = 0;
 
  PORTC = 0;
/*
  pinMode(A0, OUTPUT);
  pinMode(A1, OUTPUT);
  pinMode(A2, OUTPUT);
  pinMode(A3, OUTPUT);
*/  
}

void(* resetFunc) (void) = 0; //declare reset function @ address 0

void loop()
{

    PortBMem = PINB;
 
      if (PortBMem > B00000000){
      PortCMem = PortCMem | B1;
      PORTC = PortCMem;
      delay(100);
      }
 
    PortDMem = PIND;

    if ((PortDMem & B11100000)>31){
      PortCMem = PortCMem | ((PortDMem >> 4)& B00001110);
      PORTC = PortCMem;
      delay(100);
    }
 
    buttonNurse = digitalRead(4);
 
    if (buttonNurseOld != buttonNurse){
      if (buttonNurse == LOW){
          PortCMem = 0;
          PortDMem = 0;
          PORTC = 0;
          delay(1000);
          //resetFunc();  //call reset
      }
      buttonNurseOld = buttonNurse;
  }
 
// buttonNurse = digitalRead(4);

  delay(10); // Delay a little bit to improve simulation performance
}

10 Leds Running - Combine PORTB and PORTD

  


https://www.tinkercad.com

Script



// Lampu LED Berjalan Menggunakan Arduino UNO
// Menyalakan LED dengan Aktif HIGH

int RunBitOld;
int RunBit;
byte RunBitH;
byte RunBitL;
byte RunBitB;
byte RunBitD;


void setup()
{
  Serial.begin (9600);
  DDRD = B11110000;  // sets Arduino pins 4 to 7 as outputs, pin 0 to 3 as input
  DDRD = DDRD | B11110000;  // this is safer as it sets pins 4 to 7 as outputs
                        // without changing the value of pins 0 to 3,
  DDRB = B00111111;  // sets Arduino pins 8 to 13 as outputs
  DDRB = DDRB | B00111111;  // this is safer as it sets pins 8 to 13 as outputs

  PORTD = B11110000; // sets digital pins 4 to 7 HIGH
  PORTB = B00111111; // sets digital pins 8 to 13 HIGH
  RunBit = B11111111;
  RunBitH = B00111111;
  RunBitL = B11110000;
}
 
void loop()
{
//menyala secara bergilir
 
 
  Serial.print ("RunBitH = ");
  Serial.println (RunBitH);

  Serial.print ("RunBitL = ");
  Serial.println (RunBitL);

 
  PORTB = RunBitH & B00111111;
  PORTD = RunBitL & B11110000;
  RunBit = (RunBitH * 256) + RunBitL;
  Serial.print ("RunBit = ");
  Serial.println (RunBit);

 
  RunBit = RunBit >> 1;
  Serial.print ("RunBit Geser = ");
  Serial.println (RunBit);

 
  RunBitH = (RunBit - RunBitL)/256;
  RunBitL = RunBit & B11111111;
 
  if (RunBitL == 0){
    RunBitH = B00111111;
    RunBitL = B11111111;
  }
  delay(1000);

 
}

Data Acquisition Modules

Data Acquisition Modules

HOT ITEM

HOT ITEM

S5134 : 8 -CH 0- 5V,0 -10V,4 - 20mA analog inputs,3-CH isolated DI, 8-CH isolated open-collector outputs , 8-CH 0-10V analog output module ,Ethernet/RS485,Modbus TCPIP/Modbus protocol

S5138 : 8 -CH 0- 5V,0 -10V,4 - 20mA analog inputs,6-CH isolated DI, 16-CH isolated open-collector outputs ,,Ethernet/RS485,Modbus TCPIP/Modbus protocol
  1. Surge-protected analog inputs with 12-bit resolution and 100k sample speed
  2. Input can be any combination of 0-10V,0-5V,4-20mA,NTC 10K thermistor and dry contact
  3. The channel number is configurable, can be set up from 1 channel through 8 channels, for analog input and set up from 1 to 3 for digital input, improve sample rate for small count input
  4. 8 channels 0-10V analog output with high accurate reference chip
  5. 3 channels Isolated digital inputs can be configured as counter input, total 32 bits,1000Hz
  6. Total 8 channels isolated open-collector output
  7. Standard ModBus TCPIP protocol,easy work with PLC
  8. Surge-protected and isolated Rs485 ensure reliability
  9. Standard ModBus protocol allows for up to 254 unique devices on one RS485 network
  10. A lot of spare FLASH can be used to store user’s parameters
  11. White and black encloure available ,DIN rail
  1. Surge-protected analog inputs with 12-bit resolution and 100k sample speed
  2. Input can be any combination of 0-10V,0-5V,4-20mA,NTC 10K thermistor and dry contact
  3. The channel number is configurable, can be set up from 1 channel through 8 channels, for analog input and set up from 1 to 6 for digital input, improve sample rate for small count input
  4. 6 channels Isolated digital inputs can be configured as counter input, total 32 bits,1000Hz
  5. Total 16 channels isolated open-collector output
  6. Standard ModBus TCPIP protocol,easy work with PLC
  7. Surge-protected and isolated Rs485 ensure reliability
  8. Standard ModBus protocol allows for up to 254 unique devices on one RS485 network
  9. A lot of spare FLASH can be used to store user’s parameters
  10. White and black encloure available ,DIN rail
Technical_S5134.zip Technical_S5138.zip 
Price: $145

Price: $115
 

S5102 : 8 -CH 0- 5V,0 -10V,4 - 20mA analog inputs,6-CH isolated DI, 12-CH relay outputs , 2-CH 0-10V analog output module

S5140 : 40 channels 0- 5V,4 - 20mA,10K NTC thermistor,dry contact analog inputs module
  1. Surge-protected analog inputs with 12-bit resolution and 100k sample speed
  2. Input can be any combination of 0-10V,0-5V,4-20mA,NTC 10K thermistor and dry contact
  3. The channel number is configurable, can be set up from 1 channel through 8 channels, for analog input and set up from 1 to 6 for digital input, improve sample rate for small count input
  4. 2 channels 0-10V analog output with high accurate reference chip
  5. Isolated digital inputs can be configured as counter input, total 32 bits,1000Hz
  6. Total 12 channels relay output,mormal open contact
  7. Surge-protected and isolated Rs485 ensure reliability
  8. Standard ModBus protocol allows for up to 254 unique devices on one RS485 network
  9. A lot of spare FLASH can be used to store user’s parameters
  10. White and black encloure available ,DIN rail
  1. Surge-protected analog inputs with 12-bit resolution and 100k sample speed
  2. Input can be any combination of 0-10V,0-5V,4-20mA,NTC 10K thermistor and dry contact
  3. Surge-protected and isolated Rs485 ensure reliability
  4. The channel number is configurable, can be set up from 1channel through 40 channels, improve sample rate for small count analog input
  5. Standard ModBus protocol allows for up to 254 unique devices on one RS485 network
  6. A lot of spare FLASH can be used to store user’s parameters
  7. White and black encloure available ,DIN rail
Technical_S5102.zip Technical_S5140.zip 
Price: $109
 
Price: $89
 

HOT ITEM

HOT ITEM

S5301 : 24 channels isolated digtial input and 16 channels open-collector digtial output moduleS5302 : 40 channels isolated DRY/WET contact digital input module
  1. Isolated digital inputs can be configured as counter input, total 32 bits,5000Hz
  2. Can measure frequency from 0 to 1000Hz,the resolution is 0.1Hz
  3. Accept reed and hall sensor output from water meter or other meters
  4. Static and lightning protection for each input
  5. The input channel number is configurable, can be set up from 1 channel through 24 channels, improve frequency for small count input
  6. Isolated open-collector output can drive power relay directly
  7. Surge-protected and isolated Rs485 ensure reliability
  8. Standard ModBus protocol allows for up to 254 unique devices on one RS485 network
  9. A lot of spare FLASH can be used to store user’s parameters
  10. White and black encloure available ,DIN rail
  1. Isolated digital inputs can be configured as counter input, total 32 bits,5000Hz
  2. Can measure frequency from 0 to 1000Hz,the resolution is 0.1Hz
  3. Accept reed and hall sensor output from water meter or other meters
  4. Static and lightning protection for each input
  5. The input channel number is configurable, can be set up from 1 channel through 40 channels, improve frequency for small count input
  6. Surge-protected and isolated Rs485 ensure reliability
  7. Standard ModBus protocol allows for up to 254 unique devices on one RS485 network
  8. A lot of spare FLASH can be used to store user’s parameters
  9. White and black encloure available ,DIN rail
Technical_S5301.zip Technical_S5302.zip 
Price: $89

Price: $89
 

RS485 Modules <-- > More

Ethernet Modules <-- > More

S5100 : 8 channels 0- 5V,0 -10V,4 - 20mA analog inputs,10 relay outputs ,12bits ADCS6116: Ethernet 16 chananels analog input modules 0-5V, 0-10V, 4-20mA, dry contact, 10K NTC thermistor inputs ,12-bit ADCs, Modbus/TCPIP and Modbus protocol
  1. Surge-protected analog inputs with 12-bit resolution and 100k sample speed
  2. Input can be any combination of 0-10V,0-5V,4-20mA,NTC 10K thermistor and dry contact
  3. 10 channel normal open relay outputs, each output channel can be set AUTO/OFF/HAND by a 3-states switch
  4. Surge-protected and isolated Rs485 ensure reliability
  5. The channel number is configurable, can be set up from one channel through eight channels, improve sample rate for small count analog input
  6. Standard ModBus protocol allows for up to 254 unique devices on one RS485 network
  7. White and black encloure available
  1. Surge-protected analog inputs with 12-bit resolution and 100k sample speed
  2. Input can be any combination of 0-10V, 0-5V, 4-20mA, NTC 10K thermistor and dry contact
  3. The channel number is configurable, can be set up from one channel through eight channels, improve sample rate for small count analog input
  4. A lot of spare FLASH can be used to store user’s parameters
  5. Standard MODBUS/TCPIP protocol for Ethernet and standard MODBUS protocol for RS485
  6. DIN support available
Technical_S5100.zip Technical_S6116.zip 
Modbus_Protocol.pdfModbus_Protocol.pdf
Price: $115

Price: $80
 

Zigbee Modules <-- > More

RTD Modules

S7106: 4 channels 0- 5V, 0 -10V, 4 - 20mA analog inputs,
12bits ADC,2 channels relay output(220VAC/3A) Modbus RTU/ASCII, Zigbee wireless
S3600: 4 channels 3-wire RTD input,RS485 ,MODBUS/RTU,MODBUS/ASCII
  1. Surge-protected analog inputs with 12-bit resolution and 100k
    sample speed
  2. Input can be any combination of 0-10V,0-5V,4-20mA,NTC 10K
    thermistor and dry contact
  3. Accept 0-50Hz pulse input and store pulse counter in Flash
  4. 2 channesl relay output (220VAC/3A) and 1channel 0-5V analog output
  5. Can measure the power supply voltage
  6. Reliable Zigbee can up to 2000 meters communication
  7. The channel number is configurable, can be set up from 1 channel
    through 4 channel, improve sample rate for small count analog input
  8. Standard ModBus protocol allows for up to 254 unique devices on
    one network
  9. A lot of spare FLASH can be used to store user’s parameters
  10. Can detect RS232 or ZIGBEE automatically, no need jumper
  11. You can tell us your requirement. we will update our firmware
    even after you received the modules ,you can update your modules
    through ISP.
  1. Surge-protected RTD inputs with 16-bit resolution and 100k sample speed
  2. 3-Wire to avoid resistance affect accuracy
  3. Different RTD sensor available
  4. Different temperature range available
  5. Surge-protected and isolated Rs485 ensure reliability
  6. Standard ModBus protocol allows for up to 254 unique devices on one RS485 network
  7. A lot of spare FLASH can be used to store user’s parameters
  8. Can update your firmware via ISP through RS485 network
Technical_S7106.zip Technical_S3600.zip 
Modbus_Protocol.pdfModbus_Protocol.pdf
Price: $100

Price: $69
 

Fortnite Champion Series (FNCS) CHAPTER 2 SEASON 5 SCHEDULE

FNCS CHAPTER 2 SEASON 5 SCHEDULE

Qualifier 1: February 4-7
Qualifier 2: February 11-14
Qualifier 3: February 18-21
Bye Week: February 25-28
Semi-Finals: March 5-7
Reboot Round: March 12 & 13
Finals: March 12-14

For detail, click HERE

 

 SEO Test  #210123

Lapis Aspal Beton (laston)

Lapis Aspal beton adalah beton aspal yang  bergradasi menerus, lapis aspal beton (laston) juga sering disebutl dengan AC (Asphal Concrete), ...