{"id":32789436,"url":"https://github.com/eitvisa/stm32-electronic-checkers-game","last_synced_at":"2025-11-05T10:01:55.503Z","repository":{"id":318705460,"uuid":"1069027628","full_name":"EitvisA/stm32-electronic-checkers-game","owner":"EitvisA","description":"Interactive LED checkers game built with STM32 microcontroller and Bluetooth connectivity.","archived":false,"fork":false,"pushed_at":"2025-10-27T22:14:39.000Z","size":15265,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T00:13:40.339Z","etag":null,"topics":["bluetooth","c-language","checkers","electronics","embedded","hc-05","led","microcontroller","stm32"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EitvisA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-03T09:37:42.000Z","updated_at":"2025-10-27T22:14:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"421be023-b0be-4193-9d96-93a7a42513a4","html_url":"https://github.com/EitvisA/stm32-electronic-checkers-game","commit_stats":null,"previous_names":["eitvisa/stm32-electronic-checkers-game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EitvisA/stm32-electronic-checkers-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EitvisA%2Fstm32-electronic-checkers-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EitvisA%2Fstm32-electronic-checkers-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EitvisA%2Fstm32-electronic-checkers-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EitvisA%2Fstm32-electronic-checkers-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EitvisA","download_url":"https://codeload.github.com/EitvisA/stm32-electronic-checkers-game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EitvisA%2Fstm32-electronic-checkers-game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":282799913,"owners_count":26729199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-05T02:00:05.946Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bluetooth","c-language","checkers","electronics","embedded","hc-05","led","microcontroller","stm32"],"created_at":"2025-11-05T10:01:41.567Z","updated_at":"2025-11-05T10:01:55.498Z","avatar_url":"https://github.com/EitvisA.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stm32-electronic-checkers-game\nInteractive LED checkers game built with STM32 microcontroller and Bluetooth connectivity.\n\n## Features\n- Full LED-based game board representing two players (red and blue LEDs)\n- Real-time piece movement: LEDs turn on, off, and blink according to game state\n- Bluetooth connectivity via HC-05 modules for smartphone control\n- Powered by a Lithium-ion battery\n- Modular and maintainable C code structure\n\n## Technical Overview\n- **Microcontroller:** STM32F446 Nucleo\n- **Language:** C\n- **Communication:** \n  - STM32 ↔ HC-05 Bluetooth module via UART with DMA\n  - HC-05 ↔ Smartphone via standard Bluetooth serial\n- **LED Control:** Direct GPIO manipulation\n- **Core Code Structure:**\n  - `main.c` → game logic, Bluetooth input, LED updates\n  - `LED_control.c/.h` → controls LED states: on, off, blink, and color detection\n\n## How It Works\n1. **Initial Setup:** LEDs are initialized to display the starting board state (red on one side, blue on the other)\n2. **Player Move:** Players send the **LED number** of the piece they want to move from their smartphone using a **Bluetooth serial terminal app**. Numbers are sent as HEX values corresponding to board positions\n3. **LED Update:** The STM32 receives the LED number via UART and updates the LEDs:\n   - Blink the selected piece.\n   - Move it to the new position.\n   - Turn off any captured opponent pieces.\n4. **Next Turn:** The system resets and waits for the next LED number\n\n## Hardware\n- **PCB:** Blank PCB with soldered LEDs\n- **Microcontroller:** STM32F446 Nucleo\n- **Power:** Lithium-ion battery\n- **Bluetooth:** Two HC-05 modules\n\n## Future Improvements\n- Add a scoring system to track player points\n- Implement automatic rule checking (valid moves, captures)\n- Improve mobile interface for sending LED commands\n- Optimize LED blinking animations for smoother visual effect\n- Redesign hardware: replace direct GPIO LED control with shift registers for better scalability and simplified wiring\n\n## Game board\n\u003cimg src=\"Images/Board.jpg\" width=\"600\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feitvisa%2Fstm32-electronic-checkers-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feitvisa%2Fstm32-electronic-checkers-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feitvisa%2Fstm32-electronic-checkers-game/lists"}