MAX3232 RS232 To TTL Serial Port Converter Module DB9 Connector

3,39 

1 na sklade

Katalógové číslo: 711 Kategórie: , ,

Popis

MAX3232 Modul prevodníka RS232 na TTL sériového portu DB9 konektor

Popis:
Tento produkt je široko používaný v rádiových modifikáciách, Flash pre mobilné telefóny, XBO X360 Flash detekcia, GPS, auto, DVD Flash, oprava HDD, upgrade set-top boxu.

Možno použiť na stiahnutie typov MCU:
Jednočipový mikropočítač STC
Mikrokontrolér STM32
Mikrokontrolér NX P
Renesas MCU
NE C MCU
Komunikačný IC: MAX3232
Pracovné napätie: 3,3V-5,5V
Rozhranie: T X RX VCC GND

 

 

#include <SoftwareSerial.h>

SoftwareSerial RS232Out(10, 11); // RX, TX
int i = 0;

void setup() {
Serial.begin(9600);
RS232Out.begin(9600);
}

void loop()
{
char buffer[4];
if(i>30000) {
Serial.println(“Sending 02”);
sprintf(buffer, “%02X “, 0x02);
RS232Out.write(buffer);
i=0;
}
if (RS232Out.available()) {
int inByte = RS232Out.read();
Serial.write(inByte);
}
if (Serial.available()) {
int inByte = Serial.read();
RS232Out.write(inByte);
Serial.write(inByte);
}
i++;
}

 

Ďalšie informácie

Hmotnosť 11 g
Rozmery 40 × 40 × 20 mm