I was working on a smart watering system project that required wireless communication. For this I bought an esp32S board, nRF24l01 modules and arduino uno boards. In the project the esp32S board had to receive messages from other nodes (associated with the arduino uno).
But when I uploaded the program for the esp32S I encountered a first problem: the COM port did not work.
So I downloaded a driver.
I tried again and the port finally shows up "Yay!".
But one thing made everything change: When I uploaded my program, I expected to receive an initialization message to know if the code works on the esp32 module (because I wrote it on the void (setup)). But I do not receive anything at all (no message) on the serial monitor, while it works if I try to upload it to my uno
I said to myself maybe it's still me then. So I will try the example codes of the nRF24l01 library (to upload it to the esp32). But still nothing.
the esp32 refuses to work for my code and for the example code that I tried.
I moved your topic to an appropriate forum category.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
You posted in the section that was only for the Arduino Nano ESP board, and nothing else.
This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.
Your problem is not unexpected, and your wiring may be the root cause. Since hardware is involved, it’s crucial to provide an accurate, annotated schematic of your circuit as it is currently wired. Please note that Fritzing diagrams are not considered proper schematics; they are wiring diagrams and are often not helpful for troubleshooting.
What to Include:
1. Annotated Schematic: Show all connections, including power, ground, and power sources. This helps us understand how your circuit is set up and identify any potential issues.
2. Technical Information Links: Provide links to technical documentation for each hardware device used in your setup. Avoid links to sales sites like Amazon, as they usually lack the necessary technical details. We need complete specifications to help you effectively.
3. Additional Information Needed: If the above details are incorrect, more information is required. Tell us what hardware and software you are using, the format of any data (like map data), and how your system determines its position. For example, if your project involves a robot, describe how it navigates and what computers are involved.
4. Bill of Materials:
5. Most important A schematic provides a visual representation of the electrical connections and components in a circuit, showing how they interact and function together, while a Bill of Materials (BOM) is simply a list of components with part numbers and quantities needed for assembly. Unlike a BOM, a schematic illustrates the design’s logic and allows for troubleshooting and understanding circuit behavior. A BOM is useful for sourcing parts but doesn’t convey how they connect or operate in the circuit, which is critical information for understanding and working with electronics.
Why This Matters:
We have no way of knowing the specifics of your setup unless you provide that information. Clear and detailed descriptions enable us to offer the most accurate help possible. Without these details, it’s difficult to diagnose and solve the issues you're experiencing.
It would have been better to come to the forum for advice before purchasing. The forum could have suggested easier ways to achieve your project, such as using ESP32 for all nodes so that no Uno or nRF modules were needed.
Ok sorry, I'll try to be more specific.
I just mounted the nRF24l01 and the ESP32S as follows
This is an esp-32S and a nRF24l01 only. So I matched each pin to its next one [Miso---miso (p19); mosi----mosi (p23); CE-----P5; CSN------P4; SCK------sck (p18) ]
I couldn't upload the program directly, so I downloaded a driver here is the link:
The full code is very long and the comments are not written in English. That's why I sent the previous example code (I had the same reaction with my code .
Finally here is a picture of my card, it contains some information: