CyberGear
小米Cybergear电机C#.NET开发;PCAN-USB
Install / Use
/learn @freezeLUO/CyberGearREADME
⚙ CyberGear
This repo is a .Net implementation of CyberGear.
👋 How to use?
Using the builder pattern to build CanBus.
var builder = CanBus.CreateBuilder(SlotType.Usb, 1);
builder.Configure(opt =>
{
// set can bitrate, which default value is Pcan1000
opt.Bitrate = Bitrate.Pcan1000;
// set masteridd which default value is 0
opt.MasterId = 0;
// add motor can id range
opt.AddMotors(new uint[] { 2, 127 });
});
CanBus can = builder.Build();
Where are the motors?
var motor0 = can.Motors[0];
var motor1 = can.Motors[1];
var motorFeedback = await motor0.SetMechanicalZeroAsync();
🎨 3D Models
This repository includes SOLIDWORKS 2022 3D models and STL files for the CyberGear motor:
- Location: Cybergear model(SOLIDWORKS 2022 & STL)/
- Files:
Cybergear.SLDASM- Assembly filemotor.SLDPRT- Motor partrotor.SLDPRT- Rotor part- STL files for 3D printing
These models can be used for mechanical design, integration planning, and 3D printing.
👉 Matters
- Please use a PCAN compatible device
- PEAK official website driver
- Download
Peak.Can.Basic(4.8.0.830)throughnurget - Example:
CyberGearPlayground
