Skip to content

nopnop2002/Arduino-XbeeWiFi-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-XbeeWiFi-mqtt

MQTT Applicaton for Arduino using XBee-WiFi Module.

Digi XBee-S6B module has three wireless systems: ZigBee/WiFi/IEEE 802.15.4.
This project uses Wi-Fi wireless system.
Xbee-S6B

Memory usage

Saves Flash and SRAM

UNO+ENC28J60+UIPEthernet+PubSubClient

Sketch uses 25090 bytes (77%) of program storage space. Maximum is 32256 bytes.
Global variables use 1736 bytes (84%) of dynamic memory, leaving 312 bytes for local variables. Maximum is 2048 bytes.
Low memory available, stability problems may occur.

UNO+W5100+Ethernet+PubSubClient

Sketch uses 19582 bytes (60%) of program storage space. Maximum is 32256 bytes.
Global variables use 1101 bytes (53%) of dynamic memory, leaving 947 bytes for local variables. Maximum is 2048 bytes.

UNO+XBee WiFi+Software Serial

Sketch uses 7908 bytes (24%) of program storage space. Maximum is 32256 bytes.
Global variables use 581 bytes (28%) of dynamic memory, leaving 1467 bytes for local variables. Maximum is 2048 bytes.

Hardware requirements

  • ATmega328/ATmega2560/STM32

  • Digi XBee WiFi module like XBee S6B

  • Base board like this
    The RX of this baseboard is connected to the TX of the XBee, and the TX to the RX.
    So this baseboard's RX pin connects with MCU's RX, and TX pin connects with MCU's TX.
    xbee-arduino-1

Software requirements

  • XCTU
    This is the XBee module setup tool.
    You can download from here.

  • Arduino Environment

  • Core library is required when using STM32.
    It supports Maple cores and ST cores.

Wiring

for ATmega328

XBee WiFi(Tx) - ATmega328(D2)
XBee WiFi(Rx) - ATmega328(D3)
XBee WiFi(RST) - ATmega328(D4)

for ATmega2560

XBee WiFi(Tx) - ATmeag2560(D19)
XBee WiFi(Rx) - ATmega2560(D18)
XBee WiFi(RST) - ATmega328(D4)

for STM32F103(MAPLE Core)

XBee WiFi(Tx) - STM32F103(PA3)
XBee WiFi(Rx) - STM32F103(PA2)
XBee WiFi(RST) - STM32F103(PA4)

MAPLE Core.
https://github.com/rogerclarkmelbourne/Arduino_STM32

for STM32 NUCLEO(ST Core)

XBee WiFi(Tx) - STM32(PA10)
XBee WiFi(Rx) - STM32(PA9)
XBee WiFi(RST) - STM32(PA11)

ST Core.
https://github.com/stm32duino/Arduino_Core_STM32

for STM32 F103 BluePill/BlackPill(ST Core)

XBee WiFi(Tx) - STM32F103(PA3)
XBee WiFi(Rx) - STM32F103(PA2)
XBee WiFi(RST) - STM32F103(PA4)

Serial printing goes to PA9.

for STM32 F103 Generic board(ST Core)

XBee WiFi(Tx) - STM32F103(PA10)
XBee WiFi(Rx) - STM32F103(PA9)
XBee WiFi(RST) - STM32F103(PA11)

Serial printing goes to PA9.

for STM32 F303CC BlackPill(ST Core)

XBee WiFi(Tx) - STM32F303(PA3)
XBee WiFi(Rx) - STM32F303(PA2)
XBee WiFi(RST) - STM32F303(PA4)

Serial printing goes to PA9.

for STM32 F401CC BlackPill(ST Core)

XBee WiFi(Tx) - STM32F401(PA3)
XBee WiFi(Rx) - STM32F401(PA2)
XBee WiFi(RST) - STM32F401(PA4)

Serial printing goes to PA9.

forSTM32 F407VG DISCOVERY(ST Core)

XBee WiFi(Tx) - STM32F4DISC1(PB6)
XBee WiFi(Rx) - STM32F4DISC1(PB7)
XBee WiFi(RST) - STM32F4DISC1(PB8)

Serial printing goes to PA2.

for STM32 F407 development board that like DIYMORE F407VGT

XBee WiFi(Tx) - STM32F407(PA3)
XBee WiFi(Rx) - STM32F407(PA2)
XBee WiFi(RST) - STM32F407(PA4)

Serial printing goes to PA9.

Setup XBee Module

See here.

About

MQTT Applicaton for Arduino using XBee-WiFi Module

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages