The smart camera can learn and recognize brightly colored objects as well as detecting bar codes and lines, which allows it to be used in various applications, such as garbage sorting, intelligent transportation, object tracking, and intelligent line following.
Connect to mBot or Halocode
Based on the wiring mode, the smart camera can be used as an RJ25 electronic module or mBuild electronic. After connecting it to mBot or Halocode, you can control it through mBot or Halocode.
Connect to mBot
After connecting the smart camera to mBot, you can power it with a 3.7V lithium battery or the mBuild power module.
Method 1 Power through the mBuild power block (recommended)
Method 2 Power through a 3.7V lithium battery
Connect to Halocode
Note: It is recommended to power the smart camera through the mBuild power module. Power only through the USB port may affect the proper use of the block.
The smart camera can learn brightly colored objects and identify the color blocks after learning, and then return their coordinates, length, and width.
Learn a colored object as follows:
- Long press the Learn button until the indicator turns red (orange, yellow, green, blue, or purple, different colors indicate learning different objects), and then release the button.
- Place the color block to be learned in front of the camera.
- Observe the indicator on the front or back of the smart camera, and slowly move the object to be learned until the color of the indicator matches the object.
- Short press the Learn button to record the current learned object. After the learning is successful, when the camera recognizes a learned object, the color of the indicator becomes the same as that of the learned object.
A maximum of seven objects can be learned and recorded in this mode.
After the learning is complete, you can use the following program to track the color block (color block 1).
1. The more brighter color of the learned object, the more accurate the recognition.
Cautionary Example：learning a panda doll
2. The smart camera can learn and record seven objects, which should be easily distinguished in color.
Cautionary Example：learning a yellow ball and a yellow hat
Good example：learning an orange ball and a green ball
3. Switch the smart camera to the color block detection mode to detect the coordinates and size of the color block.
4. The smart camera can prevent light interference. However, changeable light can still affect recognition accuracy. The previous learning results may fail to be used in a new environment. Here are some solutions：
- Reset the white balance
- Turn on the LED before learning or recognizing
- Set the detail parameters in PixyMon
- Use a lampshade to cover the blocks
Bar codes and lines recognizing
The smart camera can detect bar codes, lines, and branch roads simultaneously without learning.
Switch the smart camera to the line/label tracking mode to detect and return the coordinate information of bar codes, lines, and branch roads.
Bar codes recognizing
Bar code cards and stickers are included in the package. Click to download the bar code cards.
You can put the cards on the line-follower map.
Lines and branch roads recognizing
The smart camera can detect the lines and the number of branch roads, and return the coordinates, directions, and the number of branch roads.
1. You can set the line tracking mode to dark line on light or light line on dark in the program.
2. The smart camera will filter out the narrow lines by default. Check PixyMon's user guide to change the default settings.
The smart camera supports PixyMon software. You can view the camera screen through PixyMon, debug the smart camera function, and fine-tune some parameters to explore more complex features.
Considering the ease of use of the module, we haven't developed a lot of functions on the blocks. If you are interested in controlling the smart camera through the blocks to implement more features, use the mBlock Extension Builder.
- Dimensions: 48×48mm
- Resolution: 640 * 480
- Field of view: 65.0 degrees
- Effective focal length: 4.65±5% mm
- Recognition speed: 60fps
- Recognition distance: 0.25–1.2m
- Fall resistance: 1m
- Power supply: 3.7V lithium battery or 5V mBuild power module
- Power consumption range: 0.9-1.3W
- Operating temperature: -10℃–55℃