Skip to content

BionicSystemSolutions/pxt-Asl10SoundSensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pxt-asl10soundsensor

Block for using the ASL10SoundSensor

How to import this library?

Click the gearwheel menu in the MakeCode editor, and click "Extensions" search for "asl10" and select it.

Using the blocks

These block are for now made to control a tank robot, but customized programs can also be created. To update the information from the asl10sensor use the update block. Thereafter you can use the drivetank block to control a tank robot. You can also use the getter blocks (angle and power) to get an indication of what angle the sound is coming from. This can be used to make customized programs.

To use driveTank in typescript following enums are used:

  • motorEnumASL.BC (motor output B + C) = 1
  • motorEnumASL.AB (motor output A + B) = 2
  • motorEnumASL.CD (motor output C + D) = 3
  • motorEnumASL.AD (motor output A + D) = 4

Supported targets

  • for PXT/ev3

License

MIT

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.