Skip to content

Commit

Permalink
[BOARDS] Remove Arduino boards
Browse files Browse the repository at this point in the history
  • Loading branch information
1technophile committed Apr 10, 2024
1 parent a52296a commit b62b82f
Show file tree
Hide file tree
Showing 94 changed files with 246 additions and 455 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ jobs:
- "nodemcuv2-weatherstation"
- "sonoff-basic"
- "sonoff-basic-rfr3"
- "atmega-all-test"
- "uno-rf"
- "uno-fastled"
- "esp32dev-ble-datatest"
- "esp32s3-dev-c1-ble"
- "esp32c3-dev-m1-ble"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The reference sheet, with the list of all functions, pinouts is [here](https://d

## Upload

Upload OpenMQTTGateway directly from the [upload page](https://docs.openmqttgateway.com/upload/web-install.html) (no additional software required) or [build your own configuration](https://docs.openmqttgateway.com/upload/builds.html) with [PlatformIO](https://platformio.org/) or [Arduino IDE](https://www.arduino.cc/en/software)
Upload OpenMQTTGateway directly from the [upload page](https://docs.openmqttgateway.com/upload/web-install.html) (no additional software required) or [build your own configuration](https://docs.openmqttgateway.com/upload/builds.html) with [PlatformIO](https://platformio.org/).

## Using OpenMQTTGateway ?
Support open-source development through sponsorship and gain exclusive access to our private forum. Your questions, issues, and feature requests will receive priority attention, plus you'll gain insider access to our roadmap.
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ OpenMQTTGateway integrates with established technologies, such as 433mhz/315mhz
To have an overview of the supported PIR, door, water, temperature, smoke sensors, sirens, rings, beacons, switches & weather stations you can take a look to the
[compatible devices list](https://compatible.openmqttgateway.com/index.php/devices)

You can run OpenMQTTGateway on a wide variety of [boards](https://compatible.openmqttgateway.com/index.php/boards/), ESP32, ESP8266, Arduino MEGA, UNO (with limitation).
You can run OpenMQTTGateway on a wide variety of [boards](https://compatible.openmqttgateway.com/index.php/boards/), ESP32, ESP8266, ESP32S3, ESP32C3.
BLE to MQTT gateway can also run on Raspberry Pi, Windows or Unix computers thanks to [Theengs Gateway](https://theengs.github.io/gateway/).

Using MQTT, you can seamlessly integrate with home automation platforms such as OpenHAB, Home Assistant, and others, or with IoT software like Node-Red.
Expand Down
13 changes: 1 addition & 12 deletions docs/integrate/aws_iot.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,7 @@ Now you should have the following information for the OpenMQTTGateway configurat

## Modify OpenMQTTGateway configuration

With Arduino IDE, you can update the following field into User_config.h with the information gathered:
* Gateway_Name
* `MQTT_SERVER "xxxxxx.iot-eu-amazonaws.com"`
* `MQTT_PORT "8883"`
* `AWS_IOT true`
* ss_server_cert with the root certificate
* ss_client_cert with the client certificate
* ss_client_key with the Client key
* `MQTT_SECURE_SELF_SIGNED 1`
* `MQTT_SECURE_DEFAULT true`

With PlatformIO you can directly leverage the environment `esp32dev-ble-aws`
With PlatformIO you can directly leverage the environment `esp32dev-ble-aws` as an example and modify it following your needs.

## Build and upload

Expand Down
2 changes: 1 addition & 1 deletion docs/prerequisites/board.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Boards

OpenMQTTGateway is not closed to one board or type of board, by using the power of the Arduino framework and libraries that are cross compatibles it let you many choice of hardware, from an Arduino UNO to an ESP32.
OpenMQTTGateway is not closed to one board or type of board, by using the power of the Arduino framework and libraries that are cross compatibles it let you many choice of hardware, from an ESP8266 to an ESP32.

You can take a look to the [OpenMQTTGateway compatible website](https://compatible.openmqttgateway.com) to have a view of the [supported boards](https://compatible.openmqttgateway.com/index.php/boards/).

Expand Down
1 change: 0 additions & 1 deletion docs/setitup/ir.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ The IR setup can work with bc547 and a 4x3 LED-Matrix.
## Pinout
|Board| Receiver Pin| Emitter Pin|
|-|:-:|:-:|
|Arduino UNO|D2|D9|
|ESP8266|D4|D0|
|ESP32|27/**26**|14|

Expand Down
1 change: 0 additions & 1 deletion docs/setitup/rf.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ Heltec LORA V3 is not compatible with RTL_433 library as it is based on an SX126
### SRX STX Pinout
|Board| Receiver Pin| Emitter Pin|
|-|:-:|:-:|
|Arduino UNO|D3|D4|
|ESP8266|D2/**D3**/D1/D8|**RX**/D2|
|ESP32|**27**/26|12|
|RF BRIDGE|-|-|
Expand Down
1 change: 0 additions & 1 deletion docs/setitup/rs232.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Any module using a MAX232 chip will work. Don't pay extra to get all the signals
## Pinout
|Board| Receiver Pin| Emitter Pin|
|-|:-:|:-:|
|Arduino UNO|D2|D9|
|ESP8266|D2|D4|
|ESP32|27/**26**|14|

Expand Down
6 changes: 1 addition & 5 deletions docs/use/ir.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,7 @@ mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoIR -m '{"value":551489775,"

## Send raw IR data by MQTT

2) If you use an Arduino UNO enable `IR_Raw` by uncommenting the line 129 in User_config.h
`#define IR_Raw`
If you are using the uno you will have to comment other gateway like ZgatewayRF, ZgatewayBT and ZgatewayIR to keep enough memory

3) publish your code like below
Publish your code like below
```
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoIR -m '{"raw":"8850,4450,600,550,550,550,600,1600,600,550,600,500,600,500,600,550,600,500,600,1650,600,1600,600,550,600,1600,600,1650,600,1600,600,1650,600,1600,600,550,600,500,600,550,550,1650,600,500,600,550,600,500,600,550,550,1650,600,1650,550,1650,600,550,550,1650,600,1650,550,1650,600,1650,600","protocol_name":"Raw"}'
```
Expand Down
80 changes: 0 additions & 80 deletions environments.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1504,86 +1504,6 @@ board_build.flash_mode = dout
custom_description = Wifi relay and RF receiver using RCSwitch library, [tutorial](https://1technophile.blogspot.com/2019/08/new-sonoff-rfr3-as-433tomqtt-gateway.html)
custom_hardware = Sonoff Basic RFR3, [tutorial](https://1technophile.blogspot.com/2019/08/new-sonoff-rfr3-as-433tomqtt-gateway.html)

[env:atmega-all-test]
platform = ${com.atmelavr_platform}
board = megaatmega2560
lib_deps =
${com-arduino.lib_deps}
${libraries.irremote}
${libraries.rfm69}
${libraries.rfm69spi}
${libraries.rfm69_low-power}
${libraries.rc-switch}
${libraries.newremoteswitch}
${libraries.bme280}
${libraries.bmp180}
${libraries.htu21}
${libraries.ahtx0}
${libraries.unifiedsensor}
${libraries.dht}
${libraries.tsl2561}
${libraries.a6lib}
${libraries.ina226}
${libraries.fastled}
${libraries.onewire}
${libraries.dallastemperature}
${libraries.rfWeatherStation}
${libraries.stl}
build_flags =
${com-arduino.build_flags}
'-DZgatewayRF="RF"'
'-DZgatewayRF="RF315"'
'-DZgatewayRF2="RF2"'
'-DZgatewayIR="IR"'
'-DZactuatorONOFF="ONOFF"'
'-DZactuatorFASTLED="FASTLED"'
'-DZactuatorPWM="PWM"'
'-DZsensorINA226="INA226"'
'-DZsensorHCSR501="HCSR501"'
'-DZsensorADC="ADC"'
'-DZsensorBH1750="BH1750"'
'-DZsensorBME280="BME280"'
'-DZsensorHTU21="HTU21"'
'-DZsensorAHTx0="AHTx0"'
'-DZsensorTSL2561="TSL2561"'
'-DZsensorDHT="DHT"'
'-DZsensorDS1820="DS1820"'
'-DZgatewayRFM69="RFM69"'
'-DZgatewayWeatherStation="WeatherStation"'
'-DZsensorGPIOInput="GPIOInput"'
;'-DZsensorGPIOKeyCode="GPIOKeyCode"'
'-DZmqttDiscovery="HADiscovery"'
'-DsimplePublishing=true'
'-DGateway_Name="OMG_ATMEGA_ALL"'
'-UZmqttDiscovery="HADiscovery"'

[env:uno-rf]
platform = ${com.atmelavr_platform}
board = uno
lib_deps =
${com-arduino.lib_deps}
${libraries.rc-switch}
build_flags =
${com-arduino-low-memory.build_flags}
'-UZmqttDiscovery="HADiscovery"'
'-DZgatewayRF="RF"'
'-DGateway_Name="OMG_1_RF"'
'-DDISABLE_LOGGING'
custom_description = RF gateway based on RCSwitch

[env:uno-fastled]
platform = ${com.atmelavr_platform}
board = uno
lib_deps =
${com-arduino.lib_deps}
${libraries.fastled}
build_flags =
${com-arduino-low-memory.build_flags}
'-DGateway_Name="OMG_1_FL"'
'-DZactuatorFASTLED="FASTLED"'
'-UZmqttDiscovery="HADiscovery"'
custom_description = FastLed control

[env:esp32dev-ble-datatest]
platform = ${com.esp32_platform}
board = esp32dev
Expand Down
46 changes: 10 additions & 36 deletions main/User_config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
OpenMQTTGateway - ESP8266 or Arduino program for home automation
Act as a wifi or ethernet gateway between your 433mhz/infrared IR signal and a MQTT broker
Act as a gateway between your 433mhz, infrared IR, BLE, LoRa signal and one interface like an MQTT broker
Send and receiving command by MQTT
This program enables to:
Expand Down Expand Up @@ -145,23 +145,17 @@ const byte mac[] = {0xDE, 0xED, 0xBA, 0xFE, 0x54, 0x95}; //W5100 ethernet shield

/*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/
//MQTT Parameters definition
#if defined(ESP8266) || defined(ESP32) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__)
# define parameters_size 65
# define mqtt_topic_max_size 150
# ifndef mqtt_max_packet_size
# ifdef MQTT_HTTPS_FW_UPDATE
# ifndef CHECK_OTA_UPDATE
# define CHECK_OTA_UPDATE true // enable to check for the presence of a new version for your environment on Github
# endif
# define mqtt_max_packet_size 2560
# else
# define mqtt_max_packet_size 1024
#define parameters_size 65
#define mqtt_topic_max_size 150
#ifndef mqtt_max_packet_size
# ifdef MQTT_HTTPS_FW_UPDATE
# ifndef CHECK_OTA_UPDATE
# define CHECK_OTA_UPDATE true // enable to check for the presence of a new version for your environment on Github
# endif
# define mqtt_max_packet_size 2560
# else
# define mqtt_max_packet_size 1024
# endif
#else
# define parameters_size 30
# define mqtt_topic_max_size 75
# define mqtt_max_packet_size 128
#endif

#ifndef MQTT_USER
Expand Down Expand Up @@ -429,10 +423,6 @@ int lowpowermode = DEFAULT_LOW_POWER_MODE;
//# define LED_SEND_RECEIVE 40
# elif ESP32
//# define LED_SEND_RECEIVE 40
# elif __AVR_ATmega2560__ //arduino mega
//# define LED_SEND_RECEIVE 40
# else //arduino uno/nano
//# define LED_SEND_RECEIVE 40
# endif
# endif
# ifndef LED_SEND_RECEIVE_ON
Expand All @@ -443,10 +433,6 @@ int lowpowermode = DEFAULT_LOW_POWER_MODE;
//# define LED_ERROR 42
# elif ESP32
//# define LED_ERROR 42
# elif __AVR_ATmega2560__ //arduino mega
//# define LED_ERROR 42
# else //arduino uno/nano
//# define LED_ERROR 42
# endif
# endif
# ifndef LED_ERROR_ON
Expand All @@ -457,10 +443,6 @@ int lowpowermode = DEFAULT_LOW_POWER_MODE;
//# define LED_INFO 44
# elif ESP32
//# define LED_INFO 44
# elif __AVR_ATmega2560__ //arduino mega
//# define LED_INFO 44
# else //arduino uno/nano
//# define LED_INFO 44
# endif
# endif
# ifndef LED_INFO_ON
Expand Down Expand Up @@ -681,14 +663,6 @@ Adafruit_NeoPixel leds2(ANEOPIX_IND_NUM_LEDS, ANEOPIX_IND_DATA_GPIO2, ANEOPIX_IN
# define JSON_MSG_BUFFER 512 // Json message max buffer size, don't put 768 or higher it is causing unexpected behaviour on ESP8266
# define SIGNAL_SIZE_UL_ULL uint64_t
# define STRTO_UL_ULL strtoull
#elif defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__)
# define JSON_MSG_BUFFER 512 // Json message max buffer size, don't put 1024 or higher
# define SIGNAL_SIZE_UL_ULL uint64_t
# define STRTO_UL_ULL strtoul
#else // boards with smaller memory
# define JSON_MSG_BUFFER 64 // Json message max buffer size, don't put 1024 or higher
# define SIGNAL_SIZE_UL_ULL uint32_t
# define STRTO_UL_ULL strtoul
#endif

#if defined(ZgatewayRF) || defined(ZgatewayIR) || defined(ZgatewaySRFB) || defined(ZgatewayWeatherStation) || defined(ZgatewayRTL_433)
Expand Down
2 changes: 1 addition & 1 deletion main/ZactuatorFASTLED.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
OpenMQTTGateway - ESP8266 or Arduino program for home automation
Theengs OpenMQTTGateway - We Unite Sensors in One Open-Source Interface
This gateway enables to use RGBLED strips like WS2812
Expand Down
4 changes: 2 additions & 2 deletions main/ZactuatorONOFF.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
OpenMQTTGateway Addon - ESP8266 or Arduino program for home automation
Theengs OpenMQTTGateway - We Unite Sensors in One Open-Source Interface
Act as a wifi or ethernet gateway between your 433mhz/infrared IR signal and a MQTT broker
Act as a gateway between your 433mhz, infrared IR, BLE, LoRa signal and one interface like an MQTT broker
Send and receiving command by MQTT
Output GPIO defined to High or Low
Expand Down
2 changes: 1 addition & 1 deletion main/ZactuatorPWM.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
OpenMQTTGateway - ESP32, ESP8266 or Arduino program for home automation
Theengs OpenMQTTGateway - We Unite Sensors in One Open-Source Interface
This actuator enables control over the PWM outputs of microcontrollers.
Expand Down
4 changes: 2 additions & 2 deletions main/ZactuatorSomfy.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
OpenMQTTGateway - ESP8266 or Arduino program for home automation
Act as a wifi or ethernet gateway between your 433mhz/infrared IR signal and a MQTT broker
Theengs OpenMQTTGateway - We Unite Sensors in One Open-Source Interface
Act as a gateway between your 433mhz, infrared IR, BLE, LoRa signal and one interface like an MQTT broker
Send and receiving command by MQTT
This actor enables to:
Expand Down
2 changes: 1 addition & 1 deletion main/Zblufi.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
OpenMQTTGateway - ESP8266 or Arduino program for home automation
Act as a wifi or ethernet gateway between your 433mhz/infrared IR signal and a MQTT broker
Act as a gateway between your 433mhz, infrared IR, BLE, LoRa signal and one interface like an MQTT broker
Send and receiving command by MQTT
This program enables to:
Expand Down
4 changes: 2 additions & 2 deletions main/ZboardM5.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
OpenMQTTGateway Addon - ESP8266 or Arduino program for home automation
Theengs OpenMQTTGateway - We Unite Sensors in One Open-Source Interface
Act as a wifi or ethernet gateway between your 433mhz/infrared IR signal and a MQTT broker
Act as a gateway between your 433mhz, infrared IR, BLE, LoRa signal and one interface like an MQTT broker
Send and receiving command by MQTT
M5 boards management
Expand Down
Loading

0 comments on commit b62b82f

Please sign in to comment.