Code Monkey home page Code Monkey logo

mainboard-firmware's Introduction

mainboard-firmware

The MemberMatters mainboard firmware for door access control.

Warning

This software is in Alpha. It may be used with caution, but may occasionally have bugs & breaking changes.

Compatibility

This is tested on the BMS (Brisbane Makerspace) Bravo controller board. These boards are in the prototype stage and the design will be eventually published once they reach a stable design verison. However, any ESP32 based board with enough IO should be compatible, you may just have to do the wiring yourself and update the pin definitions!

We currently support the following configuration:

  • Any ESP32 based controller
  • Micropython v1.19.1

Getting Started

The first step is to install Micropython onto your ESP32 board. A full tutorial on how to do this outside the scope of this document, but some quick steps for reference are included below.

  1. Install esptool.py and download the latest version of Micropython for your ESP32 board.

  2. Plug in your ESP32 board using a USB serial adapter.

  3. Before you flash Micropython, or update it's version, you should erase the flash memory.

    Notes: this will erase the offline cache of authorised swipe cards and configuration changes made to config.py. Your port may be different, check your operating system (ie ls /dev/) to locate your specific serial port.

    esptool.py --chip esp32 --port /dev/tty.usbserial-1110 erase_flash
  4. Flash the Micropython binary you downloaded earlier by using:

    esptool.py --chip esp32 --port /dev/tty.usbserial-1110 --baud 115200 write_flash -z 0x1000 esp32-20220618-v1.19.1.bin

    Note: you can use a faster baudrate, but some boards have upload reliability problems at faster speeds.

  5. Update config.py with the correct config for your setup then flash the software to your board using the VS Code plugin "pymakr". Alternatively, use another tool like "ampy".

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.