{"id":21062041,"url":"https://github.com/deermichel/dvf3060","last_synced_at":"2025-07-13T13:39:35.458Z","repository":{"id":260124162,"uuid":"655899360","full_name":"deermichel/dvf3060","owner":"deermichel","description":"📀 Kenwood DVF-3060 front panel driver","archived":false,"fork":false,"pushed_at":"2023-06-25T21:31:46.000Z","size":7446,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T20:27:47.526Z","etag":null,"topics":["cpp","display","driver","dvd-player","embedded","hardware-hacking","kenwood","pt6311","reverse-engineering","tm4c","vfd"],"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/deermichel.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}},"created_at":"2023-06-19T21:06:24.000Z","updated_at":"2023-06-25T21:41:46.000Z","dependencies_parsed_at":"2024-10-29T18:20:52.708Z","dependency_job_id":null,"html_url":"https://github.com/deermichel/dvf3060","commit_stats":null,"previous_names":["deermichel/dvf3060"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deermichel%2Fdvf3060","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deermichel%2Fdvf3060/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deermichel%2Fdvf3060/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deermichel%2Fdvf3060/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deermichel","download_url":"https://codeload.github.com/deermichel/dvf3060/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243505962,"owners_count":20301619,"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","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":["cpp","display","driver","dvd-player","embedded","hardware-hacking","kenwood","pt6311","reverse-engineering","tm4c","vfd"],"created_at":"2024-11-19T17:28:28.814Z","updated_at":"2025-03-14T01:13:27.581Z","avatar_url":"https://github.com/deermichel.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dvf3060\n\n![DVF-3060 front panel featuring deermichel](img/deermichel.jpeg)\n\nI picked up an old Kenwood DVF-3060 DVD player and decided to reverse engineer the front panel for a future project.\nThe panel features a fancy vacuum fluorescent display (VFD) and some buttons, all controlled through a PT6311 (or UPD16311) IC.\nThis repo contains the C++ driver I wrote for a Cortex-M based TI eval board (TM4C123G LaunchPad) to communicate with the controller via SPI.\n\n## Features\n- Set and clear characters in up to 10 positions\n- Complete ASCII font (14 segments are quite limiting though)\n- Set and clear icons\n- Poll key states\n- Layered architecture for easy porting to other hardware\n\nMore PT6311 features (display modes, dimming, LEDs, switches, etc.) are implemented by the controller layer (see [pt6311.h](src/pt6311.h)), but not used for the DVF-3060 front panel.\n\n## How to\nThe project runs out of the box with [PlatformIO](https://platformio.org/) and comes with a [timer example](src/main.cpp).\n\nThe pinout is configured as follows (make sure your board supports **5V logic levels!**):\n| TM4C123 | PT6311 / front panel board | Function    |\n| ------- | -------------------------- | ----------- |\n| PA3     | 3. VFD_STB                 | SSI0 SS     |\n| PA4     | 4. VFD_DATA_OUT            | SSI0 MISO   |\n| PA5     | 5. VFD_DATA_IN             | SSI0 MOSI   |\n| PA2     | 6. VFD_CLK                 | SSI0 CLK    |\n| GND     | 7. GND                     | GND         |\n\n![TM4C123 setup](img/setup.jpeg)\n\n## Usage\n```cpp\n// include and create instance\n#include \"dvf3060.h\"\nDVF3060 dvf3060;\n\n// init display (also controller and HAL)\ndvf3060.init();\n\n// clear display\ndvf3060.clearDisplay();\n\n// set and clear a character (position 0-9)\ndvf3060.setChar('A', 4);\ndvf3060.clearChar(4);\n\n// set and clear an icon (see dvf3060_font.h for available icons)\ndvf3060.setIcon(DVF3060_ICON::HOUR);\ndvf3060.clearIcon(DVF3060_ICON::HOUR);\n\n// poll key state (see dvf3060.h for available keys)\nif (dvf3060.getKeyState() \u0026 DVF3060_KEY_PLAY) {/* ... */}\n\n// see main.cpp for a complete example\n```\n\n#### All segments and icons enabled:\n![All segments and icons](img/segments.jpeg)\n\n## Implementation\nThere are several abstraction layers that allow you to easily port the driver to a new platform or similar display configurations.\n- HAL (hardware abstraction layer): Contains platform-specific code to make upper layers work regardless of the underlying platform (TM4C123 in my case). To port this driver to a new platform (e.g., Arduino or RP2040), implement the required methods (see [tm4c.h](src/tm4c.h) as a reference).\n- Controller layer: Implements the SPI protocol as specified in the IC datasheet by using the HAL methods. For use with the DVF-3060 front panel, only PT6311 is relevant, but related controllers like the PT6312 can be supported in a similar fashion.\n- Display layer: This is the frontend part of the driver which allows simplified control over characters and icons. It is based on the controller layer and comes with a predefined [ASCII font](src/dvf3060_font.h).\n\n## Related\n- Some inspiration for the ASCII font: [LED-Segment-ASCII](https://github.com/dmadison/LED-Segment-ASCII)\n- More inspiration for the ASCII font: [The Super VMW CPU Meter](http://www.deater.net/weave/vmwprod/meter/super.html)\n- Arduino library for the PT6312 controller: [PT6312_VFD_Arduino_Library](https://github.com/ysard/PT6312_VFD_Arduino_Library/)\n- PT6311 datasheet: [Google](https://www.google.com/search?q=pt6311+datasheet)\n- UPD16311 datasheet: [Google](https://www.google.com/search?q=upd16311+datasheet)\n- DVF-3060 service manual: [Google](https://www.google.com/search?q=dvf-3060+service+manual)\n\n## Future work\nIf I'm super motivated, I might create some videos about the reverse engineering process, because you don't really need a datasheet to figure out how the controller works.\n\nThere's also an IR receiver on the front panel board, but I haven't looked into it yet (and I also don't have the remote control anymore).\n\n## License\nThis project is released under the [MIT License](LICENSE).\n\n![Hello World, i am a teapot 418](img/teapot.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeermichel%2Fdvf3060","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeermichel%2Fdvf3060","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeermichel%2Fdvf3060/lists"}