How to Bring Up Two MIPI Cameras on an Edge AI Carrier Board
An imaging system using two cameras can operate flawlessly when either camera is connected individually and fail as soon as both start streaming. The second sensor may sometimes fail to appear. Both streams may also open successfully, only for one to remain black or for the camera roles to switch after rebooting. Such symptoms indicate potential problems in different parts of the setup, from the ribbon cable to the application’s device selection. While assessing a Nvidia Orin NX Carrier Board, bring up the cameras in stages to ensure that each test addresses a specific question. One practical example involves a materials imaging bench with a colour camera for a full sample view and a monochrome camera to reveal fine surface details. The cameras may require different operating modes, and the application needs to know exactly which view it has received.
Define the Output Requirements for Each Camera
First, identify the image data that the application needs to process. The colour camera might require a broad field of view with display-ready output, while the camera capturing finer details may need a limited field of view and unprocessed monochrome data. Give each stream a required resolution, frame rate, pixel format and exposure range. Document acceptable alternative settings as well. When the sample remains still, the detail camera might perform adequately at a lower frame rate. Such a setting offers a fallback option during fault diagnosis and a clear reason to increase the data rate later.
Decide whether the two images need to represent the same instant. In a bench setup with a motionless sample and consistent illumination, linking both images to one capture request may be sufficient. When the platform changes position between exposures or lighting varies during acquisition, determine the acceptable timing difference between the measurements. Two connectors allow you to attach two cameras. However, aligning exposure timing depends on the camera modules, the triggering features they support and the application’s timing verification.
Verify Camera Connections Before Installing the Driver
A carrier board with a dual MIPI interface can expose two camera connectors with the same pin count. In the board configuration considered here, the board specifications identify two four-lane MIPI CSI-2 connections equipped with 22-pin flexible printed circuit connectors. Check the connector pinout corresponding to the specific board revision and compare it with the camera module’s documentation. Confirm pitch, contact orientation and the placement of power, ground, control and signal pins. For sensors configured to use two lanes, verify the physical lane mapping provided by the chosen port and cable. A second cable that looks identical may have its contacts exposed on the opposite face.
While selecting a MIPI camera carrier board for Nvidia Orin NX, check how the board supplies the camera and controls its reset or power-down signals. A camera module might depend on a reference clock supplied externally or expect a particular sequence before its sensor responds. Identify the control bus associated with each connector as well. Where the two sensors share an identical fixed I²C address, separate bus routes or an appropriate isolation method are necessary, which could be provided through an I²C multiplexer. Resolve this from the board and camera documentation before assuming that an undetected sensor indicates a software problem.
Test a Supported Capture Mode on Both Camera Paths Individually
Use a modest mode that the sensor driver explicitly supports while keeping only the first camera connected. Check that the sensor probe completes successfully, and subsequently acquire frames through the relevant low-level capture interface. On Linux, a direct Video4Linux2 capture can help check the sensor and capture path before introducing image processing or the complete application. Examine both the captured image and the number of frames received. Receiving buffers at the anticipated rate does not rule out an incorrect pixel format and it may still reveal errors in image interpretation.
Repeat the procedure for the second camera on its intended port. Use a clearly identifiable target, such as a printed grid with a mark in one corner, so you can spot cropping, orientation and changes in the expected image area. Where the camera is electrically compatible with both ports and the configuration supports the swap, move a working camera and cable to the other port as a diagnostic check. Changing one variable at a time helps determine whether a failure follows the sensor, the cable or the port.
Follow Camera Problems Through the Driver and Capture Software
If the system cannot detect a sensor, begin by examining the control path. Check that the correct driver is loaded and that the device tree configuration contains the appropriate control bus, sensor address, clock configuration and power resource details. Examine the kernel messages generated during driver probing. Recurring control bus errors may indicate that the camera remains in its reset state, an incorrect address or a wiring issue. When communication with the sensor is established, review the camera capture settings, particularly the CSI port assignments, number of lanes and selected sensor mode properties.
If low-level capture produces sound frames but the application cannot display them, check the format negotiated by the application and the way incoming data is converted. A colour camera may produce raw Bayer data requiring demosaicing, while the monochrome camera output may need a different interpretation of bit depth and packed data. Store sample frames from both before and after conversion. If the first looks correct when decoded with the expected format, the remaining investigation can focus on processing and display. Keep a record of the operating system image, kernel, driver and board support package used in the test. A driver designed for one software release might need modification for a different release.
Test Simultaneous Camera Streaming and Track Performance
Once each camera works independently, begin capturing from both while keeping inference, encoding and display switched off. Begin with the working capture mode established for each camera. Compare the frame sequence and timestamps with their single-camera baselines, and determine whether starting one stream before the other changes the result. Raise the settings of one camera to its target capture mode, repeat the capture, then increase the other. If a failure begins with a specific mode combination, document both operating modes and identify when frames are lost, become irregular or display corruption.
For an estimate of the active image data payload, calculate the product of image width, image height, frames per second and the transmitted bit depth of each pixel. A 1920 by 1080 stream at 30 frames per second and 10 bits per pixel carries roughly 622 megabits per second of active image data. Use this estimate alongside the sensor’s specified lane rate and transmission timing, which account for details a pixel calculation alone misses. Once captured, frames may be unpacked into wider memory formats or copied during conversion. Add processing stages one at a time so you can see whether a slowdown appears at capture, during conversion or when inference starts. For example, if capture stays steady but the preview stutters after conversion is enabled, inspect application queue use and per-frame processing time before changing the sensor mode.
Bind the Application to the Physical Camera Roles
A Nvidia Jetson Orin NX Carrier Board makes it possible to connect cameras for both wide-area imaging and close-up detail, but the application must decide which stream belongs to each function. Do not automatically assume that the first detected video device represents the wide-view camera. On the deployed software image, find a reliable identifier that maps to the actual camera port or sensor connection. Mark the camera cables and confirm the assignments using a target that appears in just one camera view. Power-cycle the system and start the streams in reverse order to confirm that the application continues to identify each view accurately.
Work out what should happen if one camera cannot start. For instance, the imaging bench may keep showing the wide-angle image while withholding measurements that require the detail camera. Where a complete capture record depends on images from both cameras, associate them with a shared acquisition identifier and discard incomplete image pairs after the allowed time window. Refer to the recorded sample identifiers to ensure that a late detail frame cannot be attached to the next wide view. Such tests can reveal problems that are not obvious in a running preview.
Verify the Working Camera System Inside Its Final Enclosure
A short ribbon lying flat on a bench may behave differently after being routed near a power supply or bent inside a compact enclosure. Repeat simultaneous capture with the actual cable specification, cable length and Edge ai nvidia orin nx carrier board installation route. Verify that the connector locking mechanisms can still be reached and whether closing the housing shifts a cable or puts tension on it. When using an edge AI carrier board for continuous image streaming, operate both cameras in their required modes until the housing has warmed up. Compare the number of frames and any capture faults with the results obtained outside the housing. Should the capture behaviour change, investigate the cable position and temperature as separate variables and determine which factor causes the problem to reappear.
Preserve a known working configuration that records camera port mapping, sensor and cable part numbers, software versions and tested capture settings. Store a representative capture from each camera together with the relevant commands and application settings used during capture. When an updated software version affects colour reproduction or a replacement sensor does not start, repeat the previously successful configuration before testing alternative combinations. These records also help a different engineer reproduce the working imaging bench without depending on configuration details that were never recorded.
Common Questions on Mixed-Sensor Camera Configurations
Mixed-sensor projects often raise two questions before the camera hardware is finalised. The answers to both influence the capture testing approach.
Is It Possible to Run Colour and Monochrome Cameras at Different Frame Rates?
Yes, provided that the carrier board, drivers and capture pipeline can handle the chosen operating modes. Specify the method the application uses to match frames. A display can refresh both views independently, but measurements may depend on pairing frames whose timestamps fall within an acceptable time difference. When measurements require both cameras to expose at precisely the same moment, assess trigger support and verify the exposure timing experimentally.
Does Using a Hardware Trigger Guarantee Matching Exposure Times?
A trigger gives compatible cameras a common timing signal. The sensors may nevertheless respond to the trigger with different exposure delays, while a rolling shutter captures individual rows at different moments. Where exposure timing affects the measurements, capture a pulsed light source visible to both cameras to verify the difference in timing with the operating modes and exposure configurations planned for deployment.
Conclusion
Bring up each camera on its intended port, confirm a capture mode that produces consistent results and gradually raise the demands once the two streams are operating together. When a fault appears, refer to the most recent successful stage when deciding what to test next. Troubleshooting an undetected sensor involves different checks from diagnosing a stream that fails only when conversion is enabled. Verify which physical camera supplies each view after a restart, and retain the configuration details and example captures from the successful setup so subsequent changes can be checked against the original working configuration.