Coder Social home page Coder Social logo

bazbt3 / microbit-traffic Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.03 MB

A MakeCode project: simple traffic lights for the BBC micro:bit computer interfaced with an Osoyoo sensors & devices STEM kit.

Home Page: https://bazbt3.github.io/microbit-traffic/

License: MIT License

Ruby 4.42% Makefile 4.24% TypeScript 91.34%
devices-stem-kit bbc-microbit makecode osoyoo-sensors traffic-lights

microbit-traffic's People

Contributors

bazbt3 avatar

Watchers

 avatar

microbit-traffic's Issues

Display temperature and humidity readings

The Osoyoo kit contains a combined temperature and humidity sensor module and a 2-line LCD display.

Maybe add the second pushbutton to toggle the sensor and display?

Change LED brightness dependent on ambient conditions

Whilst the LED brightness could be hardcoded to match a 'typical' ambient light level the Osoyoo kit contains both a potentiometer and a photo resistor. (The micro:bit has a light sensor but it's not particularly sensitive.)

Fault found on Osoyoo board

During testing all devices inserted in sockets P3 or P4 ran continuously despite the intent of the program. (I used the green and white LEDs, and a somewhat annoying buzzer.)

References in the code to pin P8 are therefore not accidental.

Unfortunately whilst swapping out one of the 3-wire cables (with pliers) one wire was cut, leaving me with only 3 of the 'shorts' in the Osoyoo kit. I've used 1 'long' for the pushbutton and the remaining 'shorts' for the LEDs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.