I already doing it on Raspberry Pi, and I really want to do it on OpenMV, one RS485 port for every thing: communication with the IDE, upgrade firmware etc.
But I’m not very similar with OpenMV, and don’t have enough time for it at now, maybe a few month later. But now, let’s back to my demo:
The Raspberry Pi can output preview video and control command at the same time. We can monitor the recognition process on the PC. When problems are encountered, it is convenient to know the reason and adjust the parameters, and disconnecting the PC will not affect the demo operation.
The human head shape board above the Raspberry Pi is a solderless socket board for CDCTL-Bx. It uses the CDBITE connection method: Bite the module with the probe.
The demo uses CDNET-TUN to set up a standard LAN, which allows video transmission without writing any code. And for controlling the slider, such as programming in Python via standard Socket communication, requires only 4 lines of code including the import statement, to control its movement and ensure that the command is delivered accurately. In addition, the Raspberry Pi can access the internet at any time through the PC, and it is easy to update software and for remote control.
However, for applications where high real-time performance is required, both the PC and the MCU can use the underlying CDNET protocol stack directly, which is very convenient to use.
This demo is base on the CDBUS protocol, which introduces an arbitration mechanism that automatically avoids conflicts like the CAN bus, more details:
GitHub - dukelec/cdbus_doc: Introduce to the CDBUS (Early advertising, please ignore.) (Introduction)
GitHub - dukelec/cdbus_ip: CDBUS Protocol and the IP Core for FPGA users (Protocol details & FPGA IP core)