BPI:bit MoonCar 登月小车
Contents
小车介绍
BPI:Bit MoonCar登月小车由Webduino 和 iCShop 合作开发,由banana Pi生产,是专门为 BPI:Bit 和 Micro:bit开发板所设计的自走车,内建巡迹功能、颜色感测、红外线发射接收与按钮,结合 Web:Bit 就能让点矩阵显示各种颜色的图案。前方保留超音波的脚位,可实作自动避障功能。透过webduino Web:Bit 教育版就能轻松实现更多有趣的控制方式!也可以配合Micro:bit 和makecode环境编程
硬件
动力来源
MoonCar 配置两个微型金属马达以及一颗辅助轮,相较于搭配塑胶齿轮箱的马达有较好的品质与耐用性。辅助轮特别选用非金属材质,行进时可减少因与地面敲击产生之杂音。
IR 红外控制
MoonCar 前方配有一对红外线发射与接收,可透过一般红外线遥控器对其下达指令。红外线发射器则可以透过发送讯息与其他MoonCar 沟通,使得可玩性大大增加喔。
蜂鸣器
在MoonCar 的右侧有一颗无源蜂鸣器,可以透过程式产生不同声音,像是电子琴或是警报声、手机铃声。怡可自行编辑由不同音符与休止符所产生的语句,让MoonCar 听起来就像说话一般喔。
Magic lantern
MoonCar is surrounded by a total of eight RGB LED lights, which are WS2812 and can be programmed to easily control the LED you want to light or adjust its brightness. Is there any color you want in the preset column? You can mix the colors you want by adjusting the proportions of R, G, and B channels.
Linear sensor (Track the line running)
At the bottom of the MoonCar is a linear sensor that can move along black or white lines by reflecting infrared light. One on the left and the other on the right can detect the out-of-bounds direction of movement on the black line.
Color identification
In addition to the linear sensor at the bottom, there is a color sensor, and a white light supplement light lamp. During the process, the color blocks on the ground can be identified, and the colors can be directly displayed with the magic LED, which greatly improves the fun.
Expansion function
The front section is equipped with a set of ultrasound (4 pin) and I2C slot, and the left and right position of the middle section is equipped with 2×12 rows of pins, which pull out all the micro:bit foot positions, so that users can add functions at will. The latter section is used to expand the battery connection plate.
Considerate design
The biggest feature of MoonCar is that it can be used in the two main control boards of Web:Bit and micro: Bit. Because the foot position of the two motherboards is different, there is a switch on the right side to optimize the motherboard.
The left switch can switch the power supply voltage of the extended row of pins and slots, whether it is connected to a common 5V sensor or to a 3.3v module such as RFID, it can be used safely with a slight switch.
The lower left part has a charging indicator, which displays a red light when charging and a green light when full. Micro USB port can connect USB cable to charge lithium battery.
Conclusion
In this module we learned about MoonCar, and in the next module we'll start teaching you how to program our MoonCar to move around and explore. See the complete comparison diagram below for details on the sections and associated pins in this chapter.
Software
Use with BPI:bit
Use with Micro:bit
Sourcode on github
Mooncar project : https://github.com/iCShopMgr/MoonCar