조립 & 하드웨어

Arduino NANO 33 IoT + CZ-ME310G1 모뎀

룬휘 2025. 5. 30. 14:12

Arduino NANO 33 IoT에 CZ-ME310G1 모뎀을 사용할 수 있는지 문의가 왔습니다.
기존에 Arduino NANO 33 IoT 보드에 연결해서 사용할 수 있는 BaseBoard를 만들어 두었고, 
슬립모드를 포함한 최적화도 상당히 진행해 놓으신 터라 MCU를 변경하기 어렵다면서 NANO 33 IoT 보드를 보내주셨습니다. 

Nano 33 IoT Pinout (출처 : https://mischianti.org/arduino-nano-33-iot-high-resolution-pinout-and-specs)

 
현재까지 CZ-ME310G 1 모뎀에서 공식지원하는 보드는 Arduino UNO R4 시리즈(Minima, WiFi), ESP32 시리즈입니다. 
 
실제 동작하는지 테스트 하기 위해 아래와 같이 보드와 모뎀을 연결했습니다. 
여러 각도에서 찍은 사진입니다. 

 
ME310G1 아두이노 오픈소스 활용을 위해 아래와 같이 연결하시는 것을 추천합니다. 

connect_pinout.png
0.38MB

 
CodeZoo에서 배포하는 ME310G1 라이브러리를 Arduino IDE에서 설치 후

 
example을 사용하실 때 아래 코드만 추가해주시면 됩니다. 

#define LDO_EN 4 /*ME310G1 LDO Enable Pin*/
 
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize ME310G1 LDO Enable pin LDO_EN as an output.
  pinMode(LDO_EN, OUTPUT);
  digitalWrite(LDO_EN, HIGH);  // turn the LDO_EN on
소켓 테스트 example에 추가한 코드 입니다. 
#include <ME310.h>

#define APN "simplio.apn"
#define ON_OFF 2 /*Select the GPIO to control ON_OFF*/
#define LDO_EN 4 /*ME310G1 LDO Enable Pin*/
#define MDMSerial Serial1

using namespace me310;
/*
 * If a Telit-Board Charlie is not in use, the ME310 class needs the Uart Serial
 * instance in the constructor, that will be used to communicate with the
 * modem.\n Please refer to your board configuration in variant.h file. Example:
 * Uart Serial1(&sercom4, PIN_MODULE_RX, PIN_MODULE_TX, PAD_MODULE_RX,
 * PAD_MODULE_TX, PIN_MODULE_RTS, PIN_MODULE_CTS); ME310 myME310 (Serial1);
 */
ME310 myME310;
ME310::return_t rc; // Enum of return value  methods

int cID = 1;          // PDP Context Identifier
int connID = 1;       // Socket connection identifier.
char ipProt[] = "IP"; // Packet Data Protocol type

char server[] = "modules.telit.com"; // echo server
int port = 10510;

void setup() {
  // initialize ME310G1 LDO Enable pin LDO_EN as an output.
  pinMode(LDO_EN, OUTPUT);
  digitalWrite(LDO_EN, HIGH);  // turn the LDO_EN on  

  Serial.begin(115200);
  MDMSerial.begin(115200);
  delay(100);
  Serial.println("Telit Test AT Socket command");
  myME310.debugMode(false);
  myME310.powerOn(ON_OFF);
  myME310.module_reboot(); // issue command at#reboot
...
 
 
아래와 같이 소켓테스트가 정상 동작하는 것을 확인 했습니다.
 
 
LTE-CATM1 내장형 모뎀 대량 구매 상담, 외주 개발, 협업 문의, vodafone IoT유심 문의
(주)코드주
장병남 대표 010-8965-1323 rooney.jang@codezoo.co.kr
 
 

iot유심 : codezoo

[codezoo] IoT Global SIM, IoT Connectivity, IoT Device

smartstore.naver.com