James's RF Transmitter and Receiver Attempt

Hello,

I cannot get a signal to transmit using transmitters and following DroneBotWorkShop (and others). Do you have knowledge about this?

Transmitter:

/*
433 MHz RF Module Transmitter Demonstration 1
RF-Xmit-Demo-1.ino
Demonstrates 433 MHz RF Transmitter Module
Use with Receiver Demonstration 1

DroneBot Workshop 2018

*/

// Include RadioHead Amplitude Shift Keying Library
#include <RH_ASK.h>
// Include dependant SPI Library
#include <SPI.h>

// Create Amplitude Shift Keying Object
RH_ASK rf_driver;

void setup()
{
// Initialize ASK Object
rf_driver.init();
}

void loop()
{
const char *msg = “Welcome to the Workshop!”;
rf_driver.send((uint8_t *)msg, strlen(msg));
rf_driver.waitPacketSent();
delay(1000);
}

Receiver:

/*
433 MHz RF Module Receiver Demonstration 1
RF-Rcv-Demo-1.ino
Demonstrates 433 MHz RF Receiver Module
Use with Transmitter Demonstration 1

DroneBot Workshop 2018

*/

// Include RadioHead Amplitude Shift Keying Library
#include <RH_ASK.h>
// Include dependant SPI Library
#include <SPI.h>

// Create Amplitude Shift Keying Object
RH_ASK rf_driver;

void setup()
{
// Initialize ASK Object
rf_driver.init();
// Setup Serial Monitor
Serial.begin(9600);
}

void loop()
{
// Set buffer to size of expected message
uint8_t buf[24];
uint8_t buflen = sizeof(buf);
// Check if received packet is correct size
if (rf_driver.recv(buf, &buflen))
{

// Message received with valid checksum
Serial.print("Message Received: ");
Serial.println((char*)buf);
}
}

My setup:

Attached

That is a bad example to start with, because it has at least one serious error: the received character string is not properly terminated.

Start with the examples that come with the Radiohead library, or simpler, the VirtualWire library.

Please post code properly, using code tags.