Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nopnop2002/arduino-xbeewifi-mqtt
MQTT Applicaton for Arduino using XBee-WiFi Module
https://github.com/nopnop2002/arduino-xbeewifi-mqtt
arduino mqtt wifi xbee
Last synced: 4 days ago
JSON representation
MQTT Applicaton for Arduino using XBee-WiFi Module
- Host: GitHub
- URL: https://github.com/nopnop2002/arduino-xbeewifi-mqtt
- Owner: nopnop2002
- License: mit
- Created: 2023-03-30T08:24:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-17T21:02:43.000Z (11 months ago)
- Last Synced: 2024-10-11T13:44:52.411Z (28 days ago)
- Topics: arduino, mqtt, wifi, xbee
- Language: C++
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://user-images.githubusercontent.com/6020549/232265595-27084292-e3ca-4212-abb4-4a92513dadea.JPG)# 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](https://user-images.githubusercontent.com/6020549/228780907-5c8457e1-30cb-4bec-af40-a8a2353fc585.JPG)# Software requirements
- XCTU
This is the XBee module setup tool.
You can download from [here](https://hub.digi.com/support/products/xctu/?path=/support/asset/).- 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](https://github.com/nopnop2002/Arduino-XbeeWiFi-mqtt/tree/main/Setup).