{"id":15048968,"url":"https://github.com/nathanramanoodles/canopen-esp32-nodes","last_synced_at":"2025-04-10T01:40:44.614Z","repository":{"id":151759145,"uuid":"281188570","full_name":"nathanRamaNoodles/CANopen-ESP32-nodes","owner":"nathanRamaNoodles","description":"Playing around with CANopenNode to fully expand the true potential of CAN bus on ESP32.","archived":false,"fork":false,"pushed_at":"2022-10-13T11:00:49.000Z","size":286,"stargazers_count":23,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T03:22:26.070Z","etag":null,"topics":["c-language","can","canopen","esp-idf","esp32"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nathanRamaNoodles.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":"2020-07-20T17:54:09.000Z","updated_at":"2025-01-18T17:04:21.000Z","dependencies_parsed_at":"2023-07-30T15:46:44.131Z","dependency_job_id":null,"html_url":"https://github.com/nathanRamaNoodles/CANopen-ESP32-nodes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanRamaNoodles%2FCANopen-ESP32-nodes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanRamaNoodles%2FCANopen-ESP32-nodes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanRamaNoodles%2FCANopen-ESP32-nodes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanRamaNoodles%2FCANopen-ESP32-nodes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathanRamaNoodles","download_url":"https://codeload.github.com/nathanRamaNoodles/CANopen-ESP32-nodes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142007,"owners_count":21054574,"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":["c-language","can","canopen","esp-idf","esp32"],"created_at":"2024-09-24T21:17:22.554Z","updated_at":"2025-04-10T01:40:44.596Z","avatar_url":"https://github.com/nathanRamaNoodles.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CANopen-ESP32-nodes\nPlaying around with CANopenNode to fully expand the true potential of CAN bus on ESP32 while obeying ESP-idf rules.\nLink to this repo on [Github](https://github.com/nathanRamaNoodles/CANopen-ESP32-nodes)\n\u003c!-- TOC depthFrom:1 depthTo:6 withLinks:1 updateOnSave:1 orderedList:0 --\u003e\n\n- [CANopen-ESP32-nodes](#canopen-esp32-nodes)\n\t\t\t\t- [Why use CAN?](#why-use-can)\n\t\t\t\t- [Why use CANopen?](#why-use-canopen)\n- [Forks](#forks)\n- [Requirements](#requirements)\n- [How to use](#how-to-use)\n- [License](#license)\n\n\u003c!-- /TOC --\u003e\n\n##### Why use CAN?\n  + Better wired communication between multiple ESP32s and other CAN enabled chips like STM32.\n  + High reliability over long distances.\n  + Great for home automation.\n  + Widely used protocol by big industries.\n##### Why use CANopen?\n  + Like anything else, a higher level protocol is essential to avoid re-inventing the wheel, and to guarantee reliability in a commercial product.\n\n## Forks\nThe Forks folder consists of projects I've seen over the internet, and I've tried to re-write in ESP-idf platform:\n + [Alexander Miller's implementation](https://github.com/xXAM22Xx/CANopenESP32) uses the Apache License 2.0\n   + Only implements the Master Node.  Alexander has other CANopen devices to play with like the [Dunker motor](https://www.dunkermotoren.com/en/)\n   + Both nodes communicate, but I don't know how PDO mapping and the object dictionary works.\n + [Guillermo-ruffino's implementation](https://github.com/CANopenNode/CANopenNode/issues/198#issuecomment-658429391):\n   + Consists of an LSS Slave node.\n   + Node two implements Guillermo's code, but node one is a raspberry pi, so I don't have enough info. Thus, node one uses Alexander's node one.\n\n## Requirements\nYou will need the following materials:\n+ ESP32 (2 or more)\n+ SN65HVD230 (or SN65HVD233) CAN bus transceiver chip for each ESP32.\n+ A PC (preferably Linux)\n\n## How to use\n\n1. Download [esp-idf](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html), and follow their instructions.\n2. Enter into a root directory for one of the nodes for this repo, like `cd ./Forks/Alexander_Miller/node_one/`\n3. You should edit your `GPIO` configurations in the `CO-config.h` (located in the `components/CANopen` for each esp-idf project) for your CAN transceiver.\n   + For my case, all my `node_one's` are: (GPIO_TX, GPIO_RX) = (12, 32)\nAnd all my `node_two's` are: (GPIO_TX, GPIO_RX) = (16, 17).\n   + Make sure you connect your CAN transceiver to your chosen GPIO pins (it doesn't matter which GPIO you choose).\n3. Enter into terminal\n   1. `idf.py menuconfig`\n\t    + You will see a GUI, but we can skip this.\n\t      + `Ctrl + C` to exit\n\t 2. Build and upload to port (I'm on linux so `/dev/ttyUSB0` and my second port is `/dev/ttyUSB1`):\n\t    + `idf.py build \u0026\u0026 idf.py -p /dev/ttyUSB0 flash monitor`\n\t 3. You can exit the monitor by pressing `Ctrl + ]`.\n\t 4. To view the serial again:\n\t    + `idf.py -p /dev/ttyUSB0 monitor`\n4. Most of the code here requires multiple terminals to be open to see the output for each CAN node.  So, redo step 2 and 3 for as many nodes.\n\n**Note**: if builds fail, then try to run `idf.py fullclean`. and run build `idf.py build` again\n\n## License\n```\nApache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanramanoodles%2Fcanopen-esp32-nodes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanramanoodles%2Fcanopen-esp32-nodes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanramanoodles%2Fcanopen-esp32-nodes/lists"}