Hi, I am looking for a camera that is compatible with Arduino, is concave and can be used during day and night time, during night time it uses IR.
I don’t want to rewire or something in order to use IR for night use.
Hi, I am looking for a camera that is compatible with Arduino, is concave and can be used during day and night time, during night time it uses IR.
I don’t want to rewire or something in order to use IR for night use.
Hey there, @Joe312384,
We should be able to help with that. Before I suggest a camera, could you please let us know which Arduino board are you using? And by “concave” do you mean a wide-angle/fisheye lens, or a particular camera shape? Also are you hoping to take still photos or live video, as that affects which cameras the board can handle.
Hi Jane,
I don’t have an arduino I was thinking of buying one that is capable of video recording and streaming it via wifi or something.
Sorry I think I meant convex, I don’t know something that looks like this kind of mirror:
To try and absorb as much footage as possible.
It will be live video.
Hi @Joe312384,
Ah, perfect. That’d be a wide-angle lens you’re after.
In that case, it would be better to choose a camera-equipped ESP32 board rather than a basic Arduino board. It handles the camera and Wi-Fi itself, without needing a separate Arduino connected to it, but can still be programmed via the Arduino IDE.
A good fit would be something like the DFRobot ESP32-S3 AI Camera Module which includes built infrared illumination, an ambient light sensor, and a 160° wide angle lens so you will get a good barrel distortion like with that mirror.
You won’t have to rewire anything for night time use, you just need to turn on the IR LED for code. DFRobot have a project based on this unit which shows the sort of effect you would get with the IR. Nothing world shaking but suitable enough for low level illumination:
Hi Jane,
Sorry actually need a separate Arduino board and camera module is separate. This is because the Arduino will be connected to other devices as well so its best to separate the camera and the board.
Are you able to suggest something similar but without the board integrated into the camera?
Joe,
It depends on what devices you want to connect. The DFR board has what they call the ‘Gravity’ connector (which uses I2C ) and there are lots of devices that connect to that.
Dave
@dave50358 I need gpio ports as well so can you suggest a camera and an arduino that is wifi capable and can connect the camera and be able to send the live video via live footage?
Hey there, @Joe312384,
You can still use the DFRobot camera suggested above alongside a separate Arduino, using UART or I2C to control communication. That would leave most of the Arduino’s GPIO available for your other devices. I think its a better approach, with the camera handling video and Wi-Fi, and custom code exchanging commands between the boards.
Also, just to make a small correction to Dave, the camera breaks out its UART serial, rather than I²C.
Alternatively, you could use a separate SPI camera. An Arduino Nano ESP32 could work well with an Arducam Mega NoIR, but with streaming comes complexity and a lot more software work. It also has a narrower lens and needs separate IR lighting, so it it wouldn’t be the best match.
Hi mate, actually the video processing/AI will be handled by either raspberry pi or something similar, the idea is that the arduino would send the video to the raspberry pi to do the processing. I don’t know if the camera suggested has the ability to run onnx models? If not then its better to get the arduino with a cheaper camera module (without any of that fancy stuff) and get the arduino to send the live footage to the raspberry pi for the processing side of things.
Interesting why is “Arducam Mega NoIR,” more expensive than “DFRobot camera”? It doesn’t afaik have all the extra stuff (like wifi and stuff)?
Hi Joe,
The DFRobot camera has a video-transmission example, so its onboard AI features are optional. I haven’t found documented support for loading arbitrary .onnx files directly onto it; its advertised AI capabilities shouldn’t be taken to mean that.
On the price comparison, the Arducam Mega NoIR isn’t just a bare camera sensor: it provides a microcontroller-friendly SPI interface, JPEG output, a 5 MP sensor and an M12 lens. Those are different capabilities rather than simply fewer features.
Having used a similar camera to this, I can atest to moving to an SBC to handle streaming, a microcontroller may not deliver on the promise of “video” that you are after
I’d recommend at least a Zero W, or Uno Q along with a MIPI/CSI camera with options for a wide angle lens.
What kind of FPS and resolution were you after? Handling all of that in a microcontroller can make things harder than required.
Liam
I see, makes sense!
How can DFRobot camera handle all this on its own processor but the arduino (with avr processor) can’t handle this?
Hey there, @Joe312384,
It just comes down to processing speed. and memory. The DFRobot camera uses a dual-core, 32-bit ESP32-S3 running at up to 240 MHz. A typical ATmega328P-based, by comparison, runs an 8-bit processor at 16 MHz with just 2 KB of RAM. If you use the Uno R4, its main clock only goes up to 48MHz (although the onboard Esp32-S3 can go up to 240MHz., same as the DFRobot camera).
Jumping off of Liam’s point, while an ESP32-S3 is a powerful enough microcontroller to handle the streaming, a SBC like the Pi Zero is going to be a much better idea if you’re wanting good resolution and frame rate.
I assume this runs on Linux?
Do you know if by any chance there is an arduino or similar microcontroller with similar specs to ESP32-S3? If not then all good I will stick to arduino uno with ESP32-S3.
Hey, @Joe312384,
Yes, the Pi Zero normally runs Raspberry Pi OS, which is Linux.
And there are Arduino branded boards that use an ESP32 as their main processor, such as the Arduino Nano ESP32 mentioned earlier.
The Nano doesn’t include a camera connector, however, so you do need to make sure that any camera would be compatible again.
May I ask why you prefer using Arduino boards? If you’re more comfortable in an Arduino IDE environment, ESP32s can be programmed from the IDE just an easily as any Arduino branded microcontroller.
Hi Jane,
Apologies if I am going back and forth over here ![]()
I found out that ESP32-S3 requires propriatery firmware/binary blobs and I am not a huge fan of closed source software/devices, also the arduino will be receiving commands from the mini computer, why to have two different devices using wifi, why not make the arduino send video footage and receive commands?
What cameras would you say would be compatible with the arduino nano but with similar camera specs as to DFRobot camera?
No worries, @Joe312384,
With the ESP32 range, its really only the WiFi, Bluetooth, and other wireless communication protocol firmware that is closed-source, but I do see your point. If you’re wanting to use open-source environments, then we need to steer clear of the Arduino Nano again. Its processor is an ESP32-S3, you’re still getting the same closed sourced firmware, just in an Arduino-branded board.
In that case, the only option you have in terms of processing power and SDRAM in the Arduino sphere is going to be the Arduino Uno R4 (SKU: ABX00087) although even that still comes with an onboard ESP32S3 for wireless.
If you go down that path, I’d suggest the ArduCam Mega 5MP SPI Camera Module with M12 Lens (NoIR) (AC-B0437). It’s low light sensitive, although it has NoIR filter, which may be a problem if you need it to work during the day. While it won’t be particularly wide angled, you would be able to modify it with another lens to get the fish eye lens.
Makes total sense. A wide-angle fisheye lens combined with an ESP32 camera setup captures a huge area while keeping hardware costs extremely low.
Hi Jane,
Change of mind I need a standard lens with 16:9 aspect ratio, no wide angle/fish eye lense, good for daylight and night/low light vision, should cost around $30. Is capable of video recording. Can you suggest me something?
I need the arduino to be able to be powerful enough to be able to send the footage via wifi. I know you mentioned the arducam but I need the arduino to also receive commands from my main computer so why have two devices (the camera and the arduino) that is sending and receiving? I prefer just the arduino that is recording and sending it via wifi. I believe as you mentioned Arduino Uno R4 this is powerful enough?
with the bits choice, keep in mind how you will handle the video feed.
e.g. the referenced ESP32-S3 AI Camera Module from above, states it has a 1080p mode.
from its data sheet 1920x1080 *3 (24 bit color) = about 6,220,800 bytes per frame (uncompressed). so at 20 fps (max rate) = 124,416,000 pr 124 MBytes/second of storage needed, ignoring packet overhead 124 *8 = 1136 Mbps… so over 1 Gbps.
This of course wont fit in the the ESP32 2.4Ghz 150Mbps max wifi speed.
As such, you will need some form of compression. Ideal the camera board (camera and processor) should output the compressed data, if not you will need to write/find some code to do that, but it will take a lot of compute; I would try to have that on the camera asic if i could; freeing up my “node” processor simply to get that compress data and store (to SD card maybe) and/or transmit over the wifi.
I have not read enough about that camera and its firmware yet; so no idea if it can or cant do what you need.
Key point: I am assuming you want to have it record and send to a central system at some point; a store and forward will need the data to be small enough for rapid transfer over the comms/wifi; i.e. file size v max transfer rate. the closer this is to live recording rate (due to data size/processing speeds) the harder it will be to transfer.
So compression and resolution will play a big part in the final design.
Hey there, @Joe312384,
Not quite, certainly not for streaming video. Uno R4 WiFi is not going to be suitable for for this job. Even if it was, you’d still need to consider that the ESP32-S3 onboard is going to be using proprietary firmware to whenever it connects to WiFi.
If I’m honest, I really can’t see this working without an ESP32 module of some kind.
Even then, as @John336464 is correct to note, you’re going to need to compress it to get any video streaming, probably 640 × 480 with JPEG/MJPEG; higher resolutions or congested Wi-Fi can mean stuttering and delayed commands.
If you do decide to use an ESP32, I’d consider the FireBeetle 2 ESP32-S3 with OV2640 camera. It includes a standard 68° lens, and supports Arduino-programmed video streaming and receiving commands on the same board.