StuartsProjects / SX12XX-LoRa

Library for SX12XX LoRa devices
315 stars 68 forks source link

Pin settings in settings.h #48

Closed johncblacker closed 2 years ago

johncblacker commented 2 years ago

I'm trying to correlate the settings.h file pin settings with either a esp32-cam board or a arducam esp32s board and am having problems doing so. Could you provide some help? What is the "default" board upon which your settings.h file built. I saw in the readme about the Due...but that doesn't have the camera. So, I need some help. Thanks.

StuartsProjects commented 2 years ago

The readme does mentions that the examples are based on the Pro Mini, mentioned in most of the settings.h files also.

The readme also mentions that to use the SPI LoRa devices you will need to connect the SPI bus pins, SCK, MOSI and MISO, check the pin diagram for the Arduino you are using for the pin numbers. In this case the pin numbers are fixed and do not need to be specified in the settings.h file.

The ESP32 can change the pins used for SPI SCK, MOSI and MISO which is why these are defined in the settings.h file for the ESP323CAM examples.

johncblacker commented 2 years ago

OK, so if I'm trying to put together a remote esp32-cam LoRa connected to a base LoRa device - say an Arduino Due with an rfm9x board it's probably not going to work unless the esp32-cam is connected to another board to handle the remote LoRa functionality? It would seem that the esp32-cam board doesn't have the storage to handle the camera and the LoRa functionality, is that true?

StuartsProjects commented 2 years ago

Have you looked at the ESP32CAM examples in the \Camera folder ?

johncblacker commented 2 years ago

But for example the esp32 cam board bring out IO2, IO4, IO14, IO15, IO13, IO12, IO16 and IO0 + UOR(rx?) and UOT(tx?). But the settings.h shows connections to 3, 9 and 10 - I can't find these on the esp32-cam board...what am I missing?

StuartsProjects commented 2 years ago

Which example sketch for the ESP32CAM shows connections for pins 3. 9, 10 ?

johncblacker commented 2 years ago

238_StuartCam_LoRa_Remote_Camera shows 3, 8, 9, 10 and the esp32-cam led is on pin 33, not 8. The bright white led on the front of the board(flashlight) is on pin 4 - I verified both of those with a simple sketch. When you tested your code, what esp32-cam board did you test on?

johncblacker commented 2 years ago

I wonder how much work would be involved in converted the code to run on a raspberry pi, using c++; but ideally I'd like a solution that runs on the raspberry pi using python. I've found a lot of python drivers for the sx127x and sx126x, but all of them have payload limits of 256 bytes which means they couldn't transfer an image from a camera unless it was separated into small packets, transmitted then put back together again.

StuartsProjects commented 2 years ago

Program 238_StuartCam_LoRa_Remote_Camera was not tested on an ESP32CAM, as is cleary stated in the notes at the beggining of the program.

As for programs specifically for an ESP32CAM, they will be the ones where "ESP32CAM" is part of the program name.

johncblacker commented 2 years ago

OK. I do have an Arducam to experiment with...thanks for pointing that out...