{"id":18542906,"url":"https://github.com/mads80/computerteknologi-hf1","last_synced_at":"2026-04-28T01:33:12.489Z","repository":{"id":235589053,"uuid":"272420744","full_name":"Mads80/Computerteknologi-HF1","owner":"Mads80","description":"Computerteknologi_HF1","archived":false,"fork":false,"pushed_at":"2020-07-26T11:15:32.000Z","size":9049,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T13:13:54.408Z","etag":null,"topics":["dht11","grovepi","led","psu","python","python3","raspberry-pi","raspberry-pi-3","raspberrypi","relay"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Mads80.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":"2020-06-15T11:29:30.000Z","updated_at":"2020-07-27T06:51:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"29e61518-d9bb-4b73-bf3c-1857bd2bc52c","html_url":"https://github.com/Mads80/Computerteknologi-HF1","commit_stats":null,"previous_names":["mads80/computerteknologi-hf1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mads80/Computerteknologi-HF1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mads80%2FComputerteknologi-HF1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mads80%2FComputerteknologi-HF1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mads80%2FComputerteknologi-HF1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mads80%2FComputerteknologi-HF1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mads80","download_url":"https://codeload.github.com/Mads80/Computerteknologi-HF1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mads80%2FComputerteknologi-HF1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32362781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"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":["dht11","grovepi","led","psu","python","python3","raspberry-pi","raspberry-pi-3","raspberrypi","relay"],"created_at":"2024-11-06T20:11:10.392Z","updated_at":"2026-04-28T01:33:12.476Z","avatar_url":"https://github.com/Mads80.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :sweat_drops: Computerteknologi HF1 - Klimaanlæg\n\u003cdiv align=\"right\"\u003e\n\t\u003csub\u003e\n\t\tMark Pedersen \u0026 Mads Finseth 18-06-2020\n\t\t\u003cbr/\u003e\n\t\tRedigeret til Github af Mads 26-07-2020\n\t\u003c/sub\u003e\n\u003c/div\u003e\n\n## Projektbeskrivelse:\nVi har lavet et klimaanlæg, hvor en blæser sætter i gang hvis temperaturen er over 28C.\n\nVores projekt består af følgende komponenter:\n\n- GrovePi\n- Raspberry Pi Model B Rev 1.2\n- Strømforsyning (PSU)\n- 12V kabinet-blæser\n- GrovePi Relay\n- GrovePi DHT11\n- GrovePi LED\n- GrovePi Display.\n\n\u003cbr/\u003e\n1 stk. blæser forbundet til en strømforsyning.\n\nEn temperaturføler som aktiverer vores relæ, når temperaturen overstiger 28 C grader.\n\nEn LED vil begynde at lyse når blæseren starter. Når temperaturen er under den værdi vi har sat, slukker både blæseren og LED igen.\n\nLED Display som viser temperaturen.\n\n![Diagram](images/diagram.png)\n\n\u003cbr/\u003e\n## Billede af vores klimaanlæg:\n\n\u003cimg src=\"images/raspberrypi-computertek-hf1.png\" alt=\"RaspberryPi-image\" width=\"80%\"/\u003e\n\n## Vores kode:\n\n```python\n# Imports the libraries that we use\nimport time\nfrom grovepi import *\nfrom grove_rgb_lcd import *\n\n# Sets the port for Grove-Relay @ D4\nrelay = 4\n# Sets the port for Grove-Temp @ D7\nsensor = 7\n# Sets the port for Grove-LED @ D3\nled = 3\n\n# Sets components to Output\npinMode(relay,\"OUTPUT\")\npinMode(led,\"OUTPUT\")\n\n# DHT sensor input\nblue = 0\n\n# Creates a loop, where we test for the temperature and turns on the fan and LED if the temperature gets above 28C.\nwhile True:\n    try:\n        [temp,humidity] = dht(sensor,blue)\n        \n        if math.isnan(temp) == False:\n            print(temp)\n            setRGB ( 210,55,30 ) # Sets the display colour\n            \n        if float(temp) \u003e 28.0: # Sets the target temperature\n            digitalWrite(relay,1) # When the temperature is above 28C turn on the Relay (fan)\n            digitalWrite(led,1) # When the temperature is above 28C turn on the LED\n            setText (\"Temperaturen er \" + str (temp)) # Writes to the Display\n            time.sleep(5) # Sets a timer for 5 seconds\n        else:\n            digitalWrite(relay,0) # When the temperature is below 28C turn off the Relay (fan)\n            digitalWrite(led,0) # When the temperature is below 28C turn off the LED\n            setText (\"Temperaturen er \" + str (temp)) # Writes to the Display\n            time.sleep(5) # Sets a timer for 5 seconds\n               \n    except KeyboardInterrupt:  \n        digitalWrite(relay,0)  # Turn LED and Relay off before stopping\n        digitalWrite(led,0)  # Turn LED and Relay off before stopping       \n        break              \n    except IOError:\n        print (\"Error\")\n```\n\n# Links:\nhttps://gpiozero.readthedocs.io/en/stable/index.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmads80%2Fcomputerteknologi-hf1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmads80%2Fcomputerteknologi-hf1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmads80%2Fcomputerteknologi-hf1/lists"}