This repo contains project for the cource of Microcontrollers (4 semester of MIPT DREC) which is actually something like stopwatch. When measurement starts, the led wents on and the timer starts ticking. The result (current loop and the best result) is displayed right after the measurement stops.
Single-click on button starts the measurement. Another one stops it.
Disclaimer: I'm not going to cover the process of building via cross-compiler, flashing directly via dfu-util
or something. The process involves special bootloader and Arduino IDE.
Download this repository with
git clone https://github.com/nerett/mc-4sem.git
It's necessary to flash special dfu bootloader (you can get one from here, we used this one; it can be loaded via SWD-programmer or USB-to-serial adapter) to your stm32 (we used stm32f103c8 "BluePill"). You also need to have Arduino IDE installed and configured (see here).
Also see Dependencies section for more information.
You can build the project and flash the binary to your stm32 with the help of Arduino IDE. The process of building is trivial; to flash the binary you have to connect your board via usb, put jumpers into undocumented position: "0" and "1" ("0" "0" is default), press reset and then load the binary via Arduino IDE.
To make your stm32 load this program automatically, you need to put jumpers into default ("0 and "0") position. Press reset to restart the program.
- Arduino IDE (see configuration process here)
- STM32duino bootloader (get it from here)
- supported board (we used smt32f103c8 BluePill, see the full list)
This section isn't done yet.
This project was created during Microcontrollers cource (4th semester of MIPT DREC) by nerett and vihlancevk. Special thanks to the rogerclarkmelbourne.