I'm using the OV7670 camera on a submarine, and need some help figuring out how to code it, and send it through a nRF24L01 (using it 2 way for controls and to get images). I don't do much coding, But I just need to get a starting point for that. I am using a mega, so I have enough pins, I know the basics of coding and have a pretty good grasp on the nRF24L01 (transeiver), but am still struggling with the camera. Thank you in advance, and I know I probably forgot something importent, so remind me.
Right now trying the RadioHead library for nRF24L01
A wiring diagram.
Have you tried making an image with an ov7670? Have you tried transmitting images with the nrf24l01? Each image will take about two seconds.
You need to divide and conquer. Get the basic camera and nRF24L01 functionality working first. This is a good tutorial for the latter:
As far as your overall plan goes, I don't think it's very good.
First,
Does a Mega even have enough memory to hold a complete image?
Second, the maximum payload size of an nRF24L01 packet is 32 bytes. You'll need to send a lot of dividual packets to transfer a complete image. You'll want to include a packet sequence number in the data and send an acknowledgement back for every one to ensure they are all received. Perhaps even a resend mechanism.
You might be better of using an ESP32-CAM and receiving the data with an ESP32. Depending on the distance requirements, maybe a TCP transport mechanism between the two? Or, maybe LoRA for greater range?
Thank you! I'll look into it, I have about 250,000 bytes, I'll probebly use the ESP32, As I don't need to much range. Ty again
I haven't, but wont have access for a few days, Ill try as soon as I can. Ty!