Iwrote a very simple blink script and as soon as I add
#define
I get errors: It actually looks like somehow the board settings are not setting some values or the libs are not prepared for board definitions. I am pretty new to arduino and esp32 so not sure how this part works.
I tried to bypass ESP32 and connected Rak3172 RX to ESP32 RX - RAK3172 TX to ESP32 TX ; and it worked really good. But when i try to communicate with SoftwareSerial pins of esp32 and RAK3172, i cant send any data or receive anything. So, can you tell me why is that for? Or could you please send me a connection scheme?
By the way, it seems that you are using Arduino libraries to implement the software. I have noticed that ESP-IDF is far more reliable and it is not that difficult to learn. Here is a simple tutorial how to use UART with ESP32 and ESP-IDF:
You also need to clarify where the characters are coming from and how you intend to control the display (i.e. which controller and how you've got it wired to the display).
Also which Nextion HMI display are you using?
In the most basic setup you won't even need an external controller for that but can do it with the display natively.
For that you'd use the recmod command to directly communicate with the display and use its inbuilt scripting language to act accordingly.
when the image is on the screen and I press a hexadecimal code appears on the serial monitor, that is, it is communicating and it is sending the image code, but when I try to send the esp32 command to the screen I do not get a return.
However, I noticed you are not calling myNextion.loop() (or nexLoop() depending on library) which would typically be required for the Arduino library for these display as it deals with reading and dispatching the communication from the device to the controller and subsequently to the respective event handler callbacks.
Thanks, this has been a great help. Unfortunately I am stuck.
The only messages I seem to get back is HEARTBEAT, despite requesting MAV_DATA_STREAM_ALL. I am running on an ESP32.
I am curious about the component id. It seems from the code that that the system id is 2 and the component id is 200. I thought the companion computer would be 200 and the system id 1 (for the copter).
I am using software serial to talk to the Pixhawk, and the Serial for debugging.
@Jeffrey_Berezin that is almost exactly my setup as well. I want to build for Rover, but when I ran into this problem I tried loading the Copter firmware but had the same problem.
In my current version I get a HEARTBEAT every second but every minute I will get 14 REQUEST_DATA_STREAM messages in a row, as well
I am actually after MAV_DATA_STREAM_RC_CHANNELS but then I get nothing
Well, please ignore my previous post. I moved from TELEM2 to TELEM1 and switched cables and am getting more reasonable results. I was still getting Async framing errors on the logic analyzer but recycled power on the pixhawk and those went away. Still need to do a lot more work before I can say anything definitive.
Thanks a lot. I am first figuring out my basic problem which is that I am seeing data coming in from the pixhawk on the logic analyzer that is not being read in by my esp32e firebeetle. the Serial2.available() function is not seeing the data at times and I think I am seeing a bug that allegedly was fixed years ago by Expressif.
Thanks for developing this excellent test program. My next step after the logic analyzer debugging is to find which packet contains the motor speed information because I want to control a non-standard hoverboard controller using serial uart control.
.
Hi, i am trying to get the DMX out working on a eps32. so far i am able to compile a working version without uncommenting the #define WLED_ENABLE_DMX line.
whenever i uncomment this line as explained in the DMX out wiki the esp32 ends up in an infinite error loop. i am using platformio and have been trying to do this since version 10.
is there annyone that has been able to get this working?
thanks all for the reply but is there somebody that has succeded in getting this to work? annyone?
the plan is, like i hace read the instructions, to be able to get DMX out from artnet input and to generate R G B channels from the pixelcolors in the ledstrip. so what i plan to do is have a 300 led ledstrip and have some DMX driven floodlights that generate an background color comparable to the philips ambilicht that generates a background color to a TV screen. since version 10 i am trying to do that.
Quick Edit: I actually did get the second DMX output working! WooHoo! I was able to use Serial.Swap to output to pin15. So this can use both UARTs for DMX. I am not sure what will happen since Serial is now used by DMX but it appears to mostly be used for Debugging.
Hi nturley, thanks for the reply. but i still do not know how to get the wled compiled and get it to work on a esp32. whatever i try folowing the wiki instructions, whatever pins i choose i end up with a esp32 rebooting over and over again. it would be nice if someone explained how to get this thing working first.
How the different modes work and what pins are usable we find out later. i use the olimex esp32-poe hardware. The best thing would be if we could get the gpio 4 pin to spit out DMX.
i have made other non led related projects running on this hardware using all pins with hardwareserial with multiple rs232 outputs running together with a web interface and so. if i complile a wled version with DMX disabled everything works fine, ethernet enabled multiple led datapins, all works fine until i uncomment the WLED_ENABLE_DMX line.
3a8082e126