Skip to content

YFROBOT-TM/pxt-yfe06

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YFE06

YFROBOT's Building block electronic learning Starter Kit: YFE05,YFE06. MotorBit extension for makecode.

支持 MotorBit、碰撞开关、红外感应器、红外遥控接收模块。

MotorBit is an easy-to-use motor drive expansion board for MicroBit

MotorBit To Buy

The YFROBOT Motor:Bit is an integrated motor driver and breakout board for the BBC micro:bit. With two integrated motor driver chip DRV8838, your micro:bit can drive two DC motors with 250mA max single channel current.

The Motor:Bit also features the “GVS” connectors, allowing for easy direct connection to compatible “GVS” sensors and outputs. Among these connectors, P0, P1 support sensors with 3.3V power voltage only; P2, P8, support 3.3V or 5V sensors, You can change the output voltage by jumper caps on the board.

Basic usage

  • Set the direction and speed of YFE06 motor
 YFE06.motorRun(YFE06.Motors.ML, YFE06.Dir.CW, 120)
 YFE06.motorRun(YFE06.Motors.MR, YFE06.Dir.CCW, 120)
  • Stop the YFE06 motor
YFE06.motorStop(YFE06.Motors.ML)
  • Move forward
YFE06.forward(128)
  • Move back
YFE06.back(128)
  • Turn left
YFE06.turnLeft(128)
  • Turn right
YFE06.turnRight(128)
  • Read IR sensor value
basic.showNumber(YFE06.irButtonCode())

License

MIT

Copyright (c) 2021, YFROBOT

Supported targets

  • for PXT/microbit (The metadata above is needed for package search.)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published