{"id":20574647,"url":"https://github.com/llefranc/42_piscine_electronique","last_synced_at":"2026-04-16T16:31:53.274Z","repository":{"id":151135590,"uuid":"613324026","full_name":"llefranc/42_piscine_electronique","owner":"llefranc","description":"Optionnal project: microcontroller programming on ATMega328P, with I/O registers, PWM cycle, interrupts, EEPROM access and UART/I2C/SPI  serial communication.","archived":false,"fork":false,"pushed_at":"2023-05-31T13:53:02.000Z","size":8620,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T10:54:20.167Z","etag":null,"topics":["atmega328p","eeprom","i2c","interrupts","microcontroller","pwm","spi","timers","uart"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/llefranc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-13T10:56:02.000Z","updated_at":"2024-08-12T19:25:33.000Z","dependencies_parsed_at":"2024-06-23T06:17:35.040Z","dependency_job_id":null,"html_url":"https://github.com/llefranc/42_piscine_electronique","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/llefranc/42_piscine_electronique","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llefranc%2F42_piscine_electronique","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llefranc%2F42_piscine_electronique/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llefranc%2F42_piscine_electronique/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llefranc%2F42_piscine_electronique/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llefranc","download_url":"https://codeload.github.com/llefranc/42_piscine_electronique/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llefranc%2F42_piscine_electronique/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31894861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["atmega328p","eeprom","i2c","interrupts","microcontroller","pwm","spi","timers","uart"],"created_at":"2024-11-16T05:36:22.475Z","updated_at":"2026-04-16T16:31:53.246Z","avatar_url":"https://github.com/llefranc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Piscine électronique (@42Paris)\n\n⬇️  Below is the video of the result after two weeks of work ([code here][3])  ⬇️\n\n[![Watch the video](https://github.com/llefranc/42_piscine_electronique/blob/main/youtube_screen.png)](https://youtu.be/Q54Xc41ZGNc)\n\n## About\n\nThis was an optionnal project that I did which introduced me to the world of microcontroller programming in C. \n\n42Chips, the electronic association from 42 school designed a dev kit with several components:\n- An ATMega328P microcontroller\n- Several push buttons\n- Several red LEDs\n- A temperature and humidity sensor reachable through I2C bus\n- A real time clock reachable through I2C bus\n- A 16 bits I/O expander reachable through I2C bus\n- A segments display\n- RGB LEDs reachable through SPI bus\n- An UART to USB port\n- 3 analog sensors: a potentiometer, a light detector and a NTC\n\n\u003e Full schema of the devkit available [here][2]\n\n## The exercises\n\nThe goal of the project was to get familiar and interact will all these different components.  \n\nWe were allowed to **only use C language and no external library**. Each exercise has to be completed by interacting with the ATMega328P registers, using the chip's [documentation][1] as source.  \n\nA new pool of exercises for a new thematic was unlocked each day of the week during two weeks.\n\n- ➡️ D00: I/O registers.\n- ➡️ D01: Timers and PWM cycles.\n- ➡️ D02: Interrupts.\n- ➡️ D03: UART protocol.\n- ➡️ D04: I2C protocol.\n- ➡️ D05: EEPROM.\n- ➡️ D06: RGB LED.\n- ➡️ D07: Analog-to-Digital Converter (ADC).\n- ➡️ D08: SPI protocol.\n- ➡️ D09: Expander and segments display.\n\nThere was also each weekend a rush project.\n\n- ➡️ R00: Game using I2C protocol *(unfortunately I didn't have enough time to do this one)*.\n- ➡️ R01: A program interacting with all the devkit's components.\n\n[1]: file:///mnt/nfs/homes/llefranc/Downloads/ATMEGA48A.PDF\n[2]: https://github.com/llefranc/42_piscine_electronique/blob/main/devkit_schema.pdf\n[3]: https://github.com/llefranc/42_piscine_electronique/tree/main/R01\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllefranc%2F42_piscine_electronique","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllefranc%2F42_piscine_electronique","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllefranc%2F42_piscine_electronique/lists"}