Skip to content

Micro-bit-final-project/microbit_test_unit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Micro:bit Test Unit

This repository contains a python script used to check whether a working controller for 3M is connected or not.

Set up

Make sure you are running python 3. This software has been tested on python 3.8.6.

Repo structure

  • microbit_test_unit.py: Python script used to communicate with the controller and test its functionality.
  • dpcomic: Folder containing the DPComic font and uts license.

How to check if the Micro:bit is working

Before running this script make sure you also download our Micro:bit serial python module. Make sure you have this directories structure:

-- microbit_dev/
  |-- microbit_serial/
  |-- microbit_test_unit/

The root folder name does not matter, but please make sure you keep the two folders microbit_serial and microbit_test_unit under the same root. Then to check a connection can be established, plug in your Micro:bit (make sure you first flash this on it), then run microbit_test_unit.py (better in a console window than in an IDE) and you should be prompted with a window containing information about what button is currently being pressed (either none or: U, L, D, R), what the value read on the potentiometer output is (between 5±5 and 1023) and what the value read from the DC motor is (between 70±10 and 1023) . Furthermore, the LEDs should gradually go from 8 on to 8 off and again in an inifinite loop. If you do not experience this behaviour, check you wired everything up properly.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages