Ich habe mir je einen Arduino UNO R4 WiFi und Minima gekauft.
Dazu ein GPS-Shield, was gut funktioniert.
Nun möchte ich, bei einer vorgegebenen Konstellation, eine Info mit LoRa an meinen IoBroker senden, damit dieser das Garagentor automatisch öffnet.
Dafür habe ich mir einen LoRa Long Range Sender-Empfäger-Abschirmung 433 MHz bestellt.
Für dessen Verwendung wird ein Sketch zur Verfügung gestellt der folgende Libraries verwendet:
#include <SPI.h>
#include <RH_RF95.h>
Der Sketch lässt ich jedoch nur kompilieren, wenn ich als Board einen Arduino UNO vorgebe.
Verwende ich einen Arduino UNO R4 wird der Sketch nicht kompiliert.
Kann mir bitte jemand helfen und mir sagen, welche Libraries ich verwenden muss?
Danke für jeden Himweis
Werner
This appeared on the English forum so I translated it for you.
I each bought an Arduino UNO R4 WiFi and Minima.
To do this, a GPS shield, which works well.
Now, with a given constellation, I would like to send an info with LoRa to my IoBroker so that it opens the garage door automatically.
For this I ordered a LoRa Long Range transmitter shield 433 MHz.
For its use, a sketch is provided by the following libraries used:
include SPI.h>
include Ã...RHÃ3RF95.h>
However, I only let the sketch compile if I present an Arduino UNO as a board.
I use an Arduino UNO R4 will not compile the sketch.
Can someone please help me and tell me which libraries I need to use?
Thanks for every Himweis
Werner
Addressing Your Issue:
You can spend weeks spinning your wheels, or you might get lucky and solve your problem quickly. To avoid unnecessary delays, it’s crucial to provide an annotated schematic of your circuit as you have it wired, showing all connections, including power, ground, and power supplies. I recommend it be in English, you can translate before posting if needed.
Why Detailed Information Matters:
Annotated Schematics: These are essential because they show exactly how your circuit is set up. Without them, it's difficult for anyone to understand what you’ve done, which makes troubleshooting nearly impossible. Fritzing diagrams or unclear pictures are not enough.
Technical Information: Many modules look similar and may even have the same name, but they can function differently. This is why we always ask for links to detailed technical information—not just sales pages like those on Amazon, which often lack the specifics we need.
Post your Software Without that we do not have a clue as to how it is expected to operate. Be sure to use code tags.
Show All Connections: It’s important to include every connection, especially power, ground and power sources in your schematic. Missing these details makes it hard to determine if a setup issue might be causing your problem.
My Process:
When I see a question, I spend a moment assessing it. If it’s missing critical information, I might ask for it. However, if it's repeatedly lacking important details, I may assume the questioner is not serious and move on to another query.
What You Need to Consider:
We don’t know your skill level or what resources you have available. If you’re missing key technical details or seem unprepared, it may indicate that you need to spend more time learning the basics before starting your project.
Providing the right information upfront will help you get the best possible assistance and avoid the frustration of running into dead ends. Let us help you by sharing what you have clearly and completely!
Im englischen Teil des Forum müssen die Beiträge und Diskussionen in englischer Sprache verfasst werden.
Deswegen wurde diese Diskussion in den deutschen Teil des Forums verschoben.
mfg ein Moderator.
Du hast Dir leider einen Controller ausgesucht, der inkompatibel ist.
Da Du die Fehlermeldung nicht mitgeliefert hast, hab ich mal kurz ein Example kompiliert und provoziert, was passiert.
/home/user1/arduino-1.8.19/portable/sketchbook/libraries/RadioHead-master/RHHardwareSPI.cpp: In member function 'virtual void RHHardwareSPI::begin()':
/home/user1/arduino-1.8.19/portable/sketchbook/libraries/RadioHead-master/RHHardwareSPI.cpp:137:57: error: invalid conversion from 'uint8_t {aka unsigned char}' to 'BitOrder' [-fpermissive]
_settings = SPISettings(frequency, bitOrder, dataMode);
^
In file included from /home/user1/arduino-1.8.19/portable/packages/arduino/hardware/renesas_uno/1.4.1/libraries/SPI/SPI.h:22:0,
from /home/user1/arduino-1.8.19/portable/sketchbook/libraries/RadioHead-master/RadioHead.h:1505,
from /home/user1/arduino-1.8.19/portable/sketchbook/libraries/RadioHead-master/RHGenericSPI.h:10,
from /home/user1/arduino-1.8.19/portable/sketchbook/libraries/RadioHead-master/RHHardwareSPI.h:10,
from /home/user1/arduino-1.8.19/portable/sketchbook/libraries/RadioHead-master/RHHardwareSPI.cpp:7:
/home/user1/arduino-1.8.19/portable/packages/arduino/hardware/renesas_uno/1.4.1/cores/arduino/api/HardwareSPI.h:48:3: note: initializing argument 2 of 'arduino::SPISettings::SPISettings(uint32_t, BitOrder, int)'
SPISettings(uint32_t clock, BitOrder bitOrder, int dataMode) {
^~~~~~~~~~~
Die R4-Familie basiert auf einem vollkommen anderen Chip und es wird noch sehr ange dauern, bis Libs so umgeschrieben sind, dass das Board auch unterstützt wird.
Ich würde mir einen UNO/NANO oder wenn es mit Wifi sein muss, einen ESP32 DEV, besorgen.
Die Zeit die Du da investieren musst, um das auszutesten welche Lib funktioniert, ist durch nichts gerechtfertigt.
Der R4 ist ein guter und leistungsfähiger Arduino!