Arduino uno IDE error - 433 transmitter

Hello guys, I'm new to this just in need of some help

First project starting with an Arduino Uno rev3 and 433 transmitter for testing for jamming a siginal

Board and Port are selected in Tools ,at the bottom Programmer is set to USBasp

After manually moving RadioHead library folder to root

I get an error when i try to verify the code below

#include <RFTransmitter.h>

#define NODE_ID 1
#define OUTPUT_PIN 11

// Send on digital pin 11 and identify as node 1
RFTransmitter transmitter(OUTPUT_PIN, NODE_ID);

void setup() {}

void loop() {
const char *msg = "Hello World!";
transmitter.send((byte *)msg, strlen(msg) + 1);

delay(0);

transmitter.resend((byte *)msg, strlen(msg) + 1);
}


*** Error ***

fatal error: RFTransmitter.h: No such file or directory " I can not see this file in the folder

Arduino: 1.8.16 (Windows 10), Board: "Arduino Uno"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Stefan\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Stefan\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Stefan\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10816 -build-path C:\Users\Stefan\AppData\Local\Temp\arduino_build_611140 -warnings=default -build-cache C:\Users\Stefan\AppData\Local\Temp\arduino_cache_253967 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Users\Stefan\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Stefan\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avrdude.path=C:\Users\Stefan\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Stefan\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose C:\Users\Stefan\Documents\arduino\sketch_aug31k\sketch_aug31k.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Stefan\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Stefan\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Stefan\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10816 -build-path C:\Users\Stefan\AppData\Local\Temp\arduino_build_611140 -warnings=default -build-cache C:\Users\Stefan\AppData\Local\Temp\arduino_cache_253967 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Users\Stefan\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Stefan\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avrdude.path=C:\Users\Stefan\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Stefan\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose C:\Users\Stefan\Documents\arduino\sketch_aug31k\sketch_aug31k.ino

Using board 'uno' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Detecting libraries used...

"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\Stefan\AppData\Local\Temp\arduino_build_611140\sketch\sketch_aug31k.ino.cpp" -o nul

Alternatives for RFTransmitter.h:

ResolveLibrary(RFTransmitter.h)

-> candidates:

sketch_aug31k:1:10: fatal error: RFTransmitter.h: No such file or directory

#include <RFTransmitter.h>

      ^~~~~~~~~~~~~~~~~

compilation terminated.

exit status 1

RFTransmitter.h: No such file or directory

Any help will be greatly appreciated

Thank you
Stefan

That is not where library folders should be. Put them in your sketch/libraries folder. Or, use the IDE Tools>Manage Libraries option to reinstall the library correctly.

1 Like

Thanks Jremngton

i had moved it to the libraries folders , I had the wrong one" I had the receiver instead of the transmitter