Skip to content

QBioLab/let-there-be-light

Repository files navigation

Let there be light

Track and light mouse

Control and Computing Unit with Khadas 控制和运算单元

Target: enable to remote controll, graph interface, error handle

Khadas VIM3 don't shop the kernel with usbtmc and i2c mux driver, so I rebuild kernel inside fenix's docker. The usbtmc and i2c mux are package as module, I load module automatic with systemd by add usbtmc and i2c_mux_pca954x to /etc/modules-load.d/modules.conf.

Only one USB bus is exported in VIM3, I try to use orignal M.2 port as PCI-e port. I install ADT-Link's M.2 NVMe to PCIe X1 extender on Khadas M.2 extender board, then a PCIe Card(VIA VL805). The PCIe card is power by sperated 5V. But system only reconginze this card as USB2 bus. Why? May I also feed 12v pin. Once I mount USB3 device, system will reboot.

TODO: assign fixed camera path to specifical usb port. Device info could get from udevadm info -a -p $(udevadm info -q path -n /dev/video0)

TODO: organize output information TODO: send command to power supply then release and return.

Build GUI in QT.

Reference:

Gimbal design and setting 云台设计

Before run SimpleBGC in khadas, please install librxtx-java

calibration design

|--------------------------|
| Camera & Gimbal Geometry |
|--------------------------|
|  O----> x                |
|  |                       |
| \|/     |--------|       |
|  y      | CAMERA |       |
|         |--------|       |
|                          |
|         |--------| +90   |
|         | GIMBAL | /|\   |
|         |--------|  |    |
|                0<---+yaw |
|--------------------------|

<<<<<<< HEAD coordintiona transformation.

c09984db9b780412b9dba95ce789de024a3bc1f3

Tracker Design

Color and movement

ISSUSE & TODO 现存问题

  • offline test: gimbal rotate in preload sequence and saved video
  • add laser power switch in GUI
  • 微弱信号识别及过滤干扰目标: detect moving region
  • send poweroff command to motor after closing
  • add force exit function, such as reboot?

Ref 参考

https://superuser.com/questions/497933/50-usb-webcams-in-a-single-computer-is-that-really-possible