Comments (13)
Yes, exactly:
this
I try to compile the Project in Arduino Studio, and it seems the compiling works.
Now it's working fine!!!!
Thank You!
from bresserweathersensorreceiver.
O.k., thank you!
I also added it in WeatherSensorCfg.h: 81a5889
I didn't notice the menu items for Board Revisions in the Arduino IDE before:
The selection above sets the define ARDUINO_TTGO_LoRa32_v21new
.
from bresserweathersensorreceiver.
Which software release are you using?
Which board did you select in the Arduino IDE?
In which way can "doesn't work" be described in more detail? Could you please provide some output from the compiler (or the running software, if compiling works fine)?
from bresserweathersensorreceiver.
Hi, I use VisualStudioCode and the compiling works fine.
Selected Board is:
[env:esp32dev]
platform = [email protected]
board = esp32dev
framework = arduino
Result:
Attempting to connect to SSID: MyXXXX.connected!
Checking wifi...
MQTT connecting... connected!
Bresser-5in1-AA79C0/status: online
[ 1357][E][WeatherSensor.cpp:125] begin(): [SX1276] Error initialising: [-2]
I have tested many Pin-Settings.....
Best Regards
from bresserweathersensorreceiver.
Currently I am only using Arduino IDE, for VisualStudioCode you have to go a little bit more into details.
First we have to ensure that your desired pin config is actually used. Could you please provide the compiler output? There should be some output from WeatherSensorCfg.h
-
"ARDUINO_TTGO_LoRa32_V1 defined; using on-board transceiver"
or
-
"Generic ESP32; assuming this is the LoRa_Node board (DFRobot Firebeetle32 + Adafruit RFM95W LoRa Radio)"
WeatherSensorCfg.h
tries to detect a define set by the Arduino IDE (or in your case some config file) and choose the matching pin defines.
In case no specific board definition is found, the section starting with
#elif defined(ESP32)
// Generic pinning for ESP32 development boards
should be used.
In any case, you have to find the pinning four you board in some documentation (maybe here: https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-2/11973) .
from bresserweathersensorreceiver.
More pinning info to choose from:
http://www.lilygo.cn/prod_view.aspx?TypeId=50003&Id=1130&FId=t3:50003:3
https://github.com/Xinyuan-LilyGo/TTGO-LoRa-Series
from bresserweathersensorreceiver.
I cannot find log files, but the following Code-Section ist highlighted:
#elif defined(TTGO_LORA32)
#define PIN_RECEIVER_CS 18
// CC1101: GDO0 / RFM95W/SX127x: G0
#define PIN_RECEIVER_IRQ 26
// CC1101: GDO2 / RFM95W/SX127x: G1
// n.c. on v1/v2?, LORA_D1 on v21
#define PIN_RECEIVER_GPIO 33
// RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
#define PIN_RECEIVER_RST 23
#elif defined(ADAFRUIT_FEATHER_ESP32S2)
Ok, I know the Info above.
from bresserweathersensorreceiver.
Is this your board?
https://www.aliexpress.com/item/32915894264.html
from bresserweathersensorreceiver.
So which pinout is required?
Is there any define (from the config or IDE) to let the compiler detect the board without having to change a source file manually?
from bresserweathersensorreceiver.
"Is there any define (from the config or IDE...."
Not really, i have changed to #define USE_SX1276
and #define TTGO_LORA32
The required Pins are:
#define PIN_RECEIVER_CS 18
#define PIN_RECEIVER_IRQ 26
#define PIN_RECEIVER_GPIO 33
#define PIN_RECEIVER_RST 23
Equivalent to: https://github.com/espressif/arduino-esp32/blob/master/variants/ttgo-lora32-v21new/pins_arduino.h
Why it doesn't work with VSCode is beyond me :)
from bresserweathersensorreceiver.
It now also works with VSCode:
[env:ttgo-lora32-v21]
platform = espressif32
board = ttgo-lora32-v21
framework = arduino
monitor_speed = 115200
lib_deps =
jgromes/RadioLib@^5.6.0
bblanchon/ArduinoJson@^6.20.0
256dpi/MQTT@^2.5.0
Further changes:
#define LED_GPIO 25 // LED pin
from bresserweathersensorreceiver.
My problem was, that I didn't choose the right board in VSCode.
This caused a lot of misunderstandings.
The problem is solved and can be closed.
Thank you for your effort and your work here, Matthias.
Best Regards Jo
from bresserweathersensorreceiver.
You are welcome!
Cheers
Matthias
from bresserweathersensorreceiver.
Related Issues (20)
- 6-in-1 Decoder: Bresser 3-in-1 Professional Wind Gauge / Anemometer, PN 7002531 - automatic decoding of negative temperatures
- Upgraded to 0.20.0 from 0.19.5, now no data is received HOT 13
- Compile Error Wemos D1 mini with CC1101 with MQTT custom HOT 8
- Trouble with Heltec ESP32 WiFi LoRa 32(V3) / Wireless shell(V3) / Wireless stick lite (V3) SX1262 HOT 14
- Does it work with Bresser 3in1 as well? HOT 2
- Compatibility RFplayer HOT 1
- Radio sleep before ESP deep sleep to lower Power drain HOT 1
- decodeBresserLightningPayload(): Change counter decoding from binary to BCD
- Rain gauge no hour, day or week rapport HOT 3
- Config isn't saved HOT 4
- Unify RainGauge and Lightning classes
- New library -> adjust examples HOT 5
- MQTT example error affter upgrade
- Board Heltec WiFi Kit 32(V3) will not select SX1262 but SX1276 HOT 1
- Add support for Bresser CO2 PN 7009977 and HCHO/VOC PN 7009978 sensors
- Request for testing with Bresser CO2 sensor (P/N 7009977)
- Request for testing with Bresser HCHO/VOC sensor (P/N 7009978)
- Potential mix of weather sensor data using 6-in-1 decoder
- What receiver do you recommend? HOT 5
- rain implementation -> renew examples HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bresserweathersensorreceiver.