diff --git a/README.md b/README.md index e982945..f0e98d4 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,24 @@ An OpenMV software, hardware example for LEGO Mindstroms EV3 (support SPIKE/RI). ## How it works -Team ceeoinnovations created a MicroPython library for the LEGO UART Protocol that can be used with OpenMV, and we wtote a sample program to let OpenMV detect objects by color and mark them with IDs on the screen (OpenMV IDE view) and send the largest object information to EV3. +Team ceeoinnovations created a MicroPython library for the LEGO UART Protocol that can be used with OpenMV, and we wrote a sample program to let OpenMV detect objects by color and mark them with IDs on the screen (OpenMV IDE view) and send the largest object information to EV3. +## Hardware +![](https://github.com/ofdl-robotics-tw/EV3-OpenMV-Stuff/blob/main/Adapter%20PCB/EV3OpenMV_PCB_rev1.PNG?raw=true) + +We designed a simple PCB that can combine OpenMV Board and EV3 Port, and Lego holes can be used to fasten the board to Lego brick. + +## Software +Using OpenMV python, open "FindBlobEx_LMS.py" and copy the "LPF2.py" to OpenMV disk drive, then Download the program to OpenMV, connect OpenMV to EV3, and OpenMV IDE screen will show the object ID with square, EV3 will receive the largest object information(You can change the code to send diffrent information to EV3). + +Go to release page to download EV3-G blocks, the block will return following info: + * For a block: + * `Connection status` see **Connection Status Code** below + * `ID` ID of Block + * `X` X Center of Block + * `Y` Y Center of Block + * `W` Width of Block + * `H` Height of Block ## Documents used - [PyBricks - LEGO Powered Up UART Protocol](https://github.com/pybricks/technical-info/blob/master/uart-protocol.md)