Git Product home page Git Product logo

e30gong's Introduction

BMW E30 gong software for Zephyr RTOS and STM32

This repository contains software for the BMW E30 that plays WAV files.

The main microcontroller for the gong is the STM32L452RET6.

The microprocessor sleeps most of the time consuming only 5 μA. When the level changes on one of its interrupt lines, a WAKEUP interrupt awakens the microprocessor. The program detects which interrupt line awakened the system and plays a corresponding WAV file on its DAC. When it stops playing, the microprocessor goes back into sleeping.

WAV files are only a few seconds each, and they are stored in the microprocessor flash.

The DAC signal is amplified by the amplifier chip NJM2135M (MC34119).

The software uses the Real-Time Operating System Zephyr to organize multiple threads and simplify writing drivers.

Getting Started

Before getting started, make sure you have a proper Zephyr development environment. You can follow the official Zephyr Getting Started Guide.

Documentation

BMW E30 gong for Zephyr RTOS and STM32.

Initialization

The first step is to initialize the workspace folder (my-workspace) where the e30gong and all Zephyr modules will be cloned. You can do that by running:

# initialize my-workspace for the e30clock application (main branch)
west init -m https://github.com/faritka/e30gong --mr main my-workspace
# update Zephyr modules
cd my-workspace
west update

Configuration

The application is based on a custom board that fits inside of the existing gong module.

Build & Run

The application can be built by running:

west build -b $BOARD -s app

where $BOARD is the target board.

Once you have built the application you can flash it by running:

west flash

e30gong's People

Contributors

faritka avatar

Watchers

 avatar

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.