Github Devices Community Docs Blog

Arduino Mega2560 with W5100 shield with GSM 2G gateway

A6 GSM is connected with an Arduino Mega2560 with the W5100 shield on top.
GRN - GRN
U_RXD - PIN7
U_TXD - PIN6

I’ve swapped 7&6
Tried different power settings, currently it’s on a 2A wall USB charger.
The A6 module works! I can ring it, outputs serial when connected to USB on 115200 baud.
I chanced the baudrate in config_2G.h from 9600 to 115200.
Perhaps the W5100 uses pin6&7?
I chanced the pins to 14 & 15
I chanced the pins to 16 & 17
I chanced the pins to 7 & 6
I chanced the pins to 6 & 7
I chanced the pins to 17 & 16
I chanced the pins to 15 & 14
I got stock here:

--- Miniterm on /dev/ttyUSB0  115200,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
Spl eth cfg
ip: 
192.168.1.99
Eth ok
1883
Connecting to MQTT by IP adress
192.168.1.100
Bosch BME280 Initialized - Result of .begin(): 0x0
No TSL2561 detected
TSL2561 Initialized. Printing detials now.
------------------------------------
Sensor:       TSL2561
Driver Ver:   1
Unique ID:    12345
Max Value:    17000.00 lux
Min Value:    1.00 lux
Resolution:   1.00 lux
------------------------------------

ACTUATOR_ONOFF_PIN
13
Set to OFF
ZactuatorONOFF setup done 
_2G_TX_PIN 
6
_2G_RX_PIN 
7
Init 2G module: 
5
waiting for network connection

Hello,

Are you using a level shifter between the atmega and the a6. If I remember correctly the A6 module needs 3.3v on its signal pins.
The atmega provides 5v.

Added to that take into account that this configuration has never been tested.

Thanks, I’ll try
I’ve already tried to lower the 5v signal with a 2k2 and 3k3 resistor.
Perhaps I’ve damaged the GSM board. :thinking:
Waiting for:
4 channel bidirectional 3.3V-5V Level Shifter