OLADIPUPO JOHN SHOTADE, 20084356 #6
This week I was asked by team leader Jason to get object color tracking working in roborealm using the green ball.
the RGB filter application
Steps taken
- Clicked on the colour green to filter only the green colours
- Left the remaining default settings
- Clicked ok to exit
- Placed the green ball in front of the webcam
The Center Of Gravity application
Steps taken
- Set the stop tracking pixel area and density to below 0.02% and 10% in the filter section
- Set the show bounding box area to around 80% of the pixel
- Left the remaining default
- Clicked ok to exit
- Placed the green ball in front of the webcam then the bounding box and the x and y coordinates of the ball was displayed
Mean filter
Steps taken
- Set the mean filter size of the green ball to 12 so that the ball can be seen from afar and not pieces of the ball
- Clicked ok
- Placed the green ball in front of the webcam saw it was blurry which is one of the effects of setting the mean filter size
- Placed the green far away from the webcam and could still see the whole green ball and not pieces of the ball
Steps taken
- Clicked on the object tracking application
- Left all default settings
- Clicked ok
- Placed the green ball in front of the webcam
- Clicked on the green ball to activate the object tracking application. The application show a green box around the ball with increasing or decreasing percentages values as the ball is moved around.
Serial communication
Jason the project leader asked me to setup serial communication between roborealm and the microbit. so as the ball is moved to the left a value of one is sent to the microbit and as the ball is moved to the right a value of two is sent to the microbit.
Steps taken
- Setup the serial communication application in roborealm
- Setup the serial communication on the microbit
Setup the serial communication application in roborealm
Steps taken
- Opened the serial communication application on roborealm by searching the name serial communication on the search bar on the left hand side of the roborealm application and double clicking on it.
- Set the baud rate to 115200
- Left the remaining setting as default
- Clicked ok
Setup the serial communication on the microbit
Steps taken
- Searched up the how to setup serial communication on the microbit
- Tried using the serial communication extension by using the example given but came to conclusion this was a no go because the example given was for setting the x the y positions of the LED lights on the microbit
- Went on to an alternative way whic is setting up serial communication using a terminal.
- Downloaded my first choice terminal which was cmder. After installation, the terminal was ran and there wasnt a serial port option and i made the decision that it was a no go.
- Downloaded my second terminal which was Tera Term. After installation, the terminal was ran and the serial option was seen by clicking the setup dropdown on the terminal window.
- Clicked on the serial port option
- Set the port speed to 115200 (the same as set in the robo serial communication application)
- Left the remaining the setting as default
- Clicked ok to exit
- Went back serial communication application on roborealm to set the port to the port that the microbit is listening on which is COM3. Once this was set, the port was discovered and the dialog box underneath kept repeating connection could not be established.
Next steps
- Establishing a serial connection between roborealm and the microbit
- Sending values to the microbit based on the position of the green ball in the roborealm application
Comments
Post a Comment