制造商零件编号 C008-B
ATOM MATRIX ESP32 DEV KIT
M5Stack Technology Co., Ltd.
所订产品一般在 7-10个工作日 内送达中国,具体时间取决于收货地点。
最低订购金额为人民币 300 元,顺丰快递免运费配送。
当用人民币下单时,按照国际贸易条款 DDP(DigiKey 支付关税、海关费用和当地税款)方式结算。
电汇预付
更多来自全授权合作伙伴的产品
下单后,从合作伙伴发货平均需要时间 1-3 天,也可能产生额外运费。可能另外收取运费。 实际发货时间请留意产品详情页、购物车和结账页面上的说明。
国际贸易结算方式:CPT(交货时支付关税、海关费用和适用 VAT/应付税金)
有关详情,请访问帮助和支持
License: General Public License Arduino
* Thanks for the source code and project information provided by @AJB2K3
Things used in this project
Hardware components
M5Stack ATOM Matrix ESP32 Development Kit×1
M5Stack Grove-T Connector(5pcs)x1
Lego Caster×1
Software apps and online services
This guide is part of my upcoming Prototyping Ideas with Lego®, M5Stack®, and UIFlow book due December 2022.
Lego Atomic Mouse.
In this guide, I will show you how to make a simple Lego Mouse Robot powered by the M5Stack Atom Matrix.
For this, you will need the following Components.
And Assorted Lego technic pieces.
Assembling the Lego Technic Chassis
I have made a basic guide to assembling the chassis that is available free from here: https://github.com/Ajb2k3/M5Micro-Mouse/blob/main/micromouse.pdf
In step 20 there is the insertion of a "T" shaped piece. This is the "T" Shaped part from the Atom Mate kit and must be screwed to the back of the Atom.
The screw hole is found under the sticker which has a yellow circle marking the place. if you push the Allen wrench through the cable in the circle, the screw can be fitted. Don't over-tighten the screw as you could end up damaging the Atoms' PCB.
Next, push the Atom and adapter as shown in step 20, and connect the Tailbatt to the Atom. Then, connect the 360 servos to the Grove T via the short cables, plug the Grove T into the Tailbatt and the mouse is complete.
The Wiring.
For the wiring I will be using a similar connection to that which I used in the previous guide found here: https://www.hackster.io/AJB2K3/2-servos-1-grove-port-9fe6ea however, I will be modifying the cables instead of the Servo2Grove adapter that I used in the previous guide.
All you need to do is take one of the small cables and switch the white and yellow wire around in the socket and the rest will be sorted out in UIFlow.
Programming.
Add two servos from the Unit selection, Both must be set as Port: Custom or micropython will throw up an error failing and telling you to move a servo to a different port.
The SDA/TX must be set to 26 with the SCL/RX set to 32 on one while the other must have SDA/TX set to 32 and SCL/RX set to 26 (pins reversed) on the second. If you try to set one as Port:A and the other to Port:Custom you will also get the error message to move the servo to another port.
With the servo's setup, we can now control them using the Servo Write block.
The Servo Write block has a range of 500 up to 2400 microseconds (µs). 500 results in anticlockwise rotation and 2400 results in clockwise rotation. To stop a servo you would need to set this to around 1300 µs.
If you set both servos to 600µs as shown in the above example, the Mouse will just rotate on the spot. The servo write setup depends on which servos you use but I find 600 and 2300 will make the mouse move forward or backward depending on which side the servos were plugged in.
If you build your own, play with the servo settings then let me know how it went. I would love to see what you the reader make based on my mouse design.
Thank you for taking the time to read this guide and you can contact me via Twitter, Youtube, Facebook, and Discord if you have any questions or feedback.
谢谢!
敬请关注收件箱中的 DigiKey 新闻与更新!
请输入电子邮件地址