Hi everyone, I've a problem with the E07-M1101D V2 module (8 pins) with Arduino Mega (more specifically, a clone: Elegoo mega).
Using this pin definition: https://www.cdebyte.com/products/E07-M1101D-SMA/2
I wired:
Module Pin n.1 (GND) => Arduino GND
Module Pin n.2 (VCC) => Arduino VCC 3.3V
Module Pin n.3 (GDO0) => Arduino Digital PWM 2
Module Pin n.4 (CNS) => Arduino Digital PWM 10
Module Pin n.5 (SCK) => Arduino Digital PWM 13
Module Pin n.6 (MOSI) => Arduino Digital PWM 11
Module Pin n.7 (MISO/GDO1) => Arduino Digital PWM 12
Module Pin n.8 (GDO2) => No wired
I paste the code that I'm using. I'm always obtaining "
"
#include <ELECHOUSE_CC1101_SRC_DRV.h>
void setup() {
Serial.begin(9600);
ELECHOUSE_cc1101.Init();
}
void loop() {
if (ELECHOUSE_cc1101.getCC1101()) {
Serial.println("✅");
} else {
Serial.println("❌");
}
}
Am I doing something wrong?
There's quite a bit of information missing, it would be great if you could please elaborate and post an annotated schematic showing exactly how you've wired everything? You mentioned using both an Arduino Uno and a Mega, but the pinout you've described doesn't add up. Also, I'm not sure why you're referring to a 'Digital PWM' pin instead of using the standard 'SPI' pin labels. Clarifying that would really help.
Thanks for your response, i updated the post hopefully it will be more clear.
I'm using only one arduino clone: Elegoo mega.
Refered to this image:
I'm already using the standard SPI pin labels.
A Mega is not an Uno. You are aware that pins 10/11/12/13 on the Mega are not the SPI interface? Check the pinout diagram of the Mega.
Thanks for your answers, I've checked the SPI pins of the Elegoo Mega and they were different:
PIN 50 => Miso
PIN 51 => MOSI
PIN 52 =>SCK
PIN 53 => SS
Now with this code:
#include <ELECHOUSE_CC1101_SRC_DRV.h>
void setup() {
Serial.begin(9600);
ELECHOUSE_cc1101.Init();
ELECHOUSE_cc1101.setMHZ(433.92);
}
void loop() {
if (ELECHOUSE_cc1101.CheckRxFifo(0)) {
byte buffer[61]; // max size for CC1101
byte length = ELECHOUSE_cc1101.ReceiveData(buffer);
Serial.print("HEX: ");
for (byte i = 0; i < length; i++) {
if (buffer[i] < 0x10) Serial.print("0");
Serial.print(buffer[i], HEX);
Serial.print(" ");
}
}
}
It sometimes read something, but for most of the time, while pressing a remote control (433.92Mhz) it print nothing..
Do you have some suggestions?
How can i replicate a 433.92Mhz signal?
I have no experience with the E07-M1101D module so can't really help. Maybe there is something in these forum search results: Search results for 'E07-M1101D order:latest_topic' - Arduino Forum. Or in a search on the web: arduino E07-M1101D at DuckDuckGo
Just to be sure, the module must have 3.3 in VCC, but also the pins of MOSI - MISO etc.. must be used with 3.3V?
Or can I wire them directly to Arduino pins?
Unless the ICs on the E07-M1101D are 5V tolerant, the answer is no and you run the risk of damaging the E07-M1101D.