{"id":15,"date":"2025-06-06T06:47:14","date_gmt":"2025-06-06T06:47:14","guid":{"rendered":"https:\/\/sinem.i24.flexvakken.nl\/?page_id=15"},"modified":"2025-06-06T06:47:14","modified_gmt":"2025-06-06T06:47:14","slug":"stoplicht","status":"publish","type":"page","link":"https:\/\/sinem.i24.flexvakken.nl\/?page_id=15","title":{"rendered":"Stoplicht"},"content":{"rendered":"<p>Dit is de code voor de stoplicht opdracht.<\/p>\n<p>&nbsp;<\/p>\n<div data-olk-copy-source=\"MessageBody\">\/\/ Pin definities voor de LED\u2019s<\/div>\n<div>int redLed = 9; \/\/ Rode LED aangesloten op pin 9<br \/>\nint yellowLed = 10; \/\/ Gele LED aangesloten op pin 10<br \/>\nint greenLed= 11; \/\/ Groene LED aangesloten op pin 11<\/div>\n<div>void setup() {<br \/>\n\/\/ Stel de LED-pinnen in als uitvoer<\/div>\n<div>pinMode(redLed, OUTPUT);<br \/>\npinMode(yellowLed, OUTPUT);<br \/>\npinMode(greenLed, OUTPUT);<br \/>\n}<\/div>\n<div>void loop() {<br \/>\n\/\/ Groene LED aan (rood en geel uit)<br \/>\ndigitalWrite(greenLed, HIGH);<br \/>\ndigitalWrite(redLed, LOW);<br \/>\ndigitalWrite(yellowLed, LOW);<br \/>\ndelay(5000); \/\/ 5 seconden groen<\/div>\n<div>\/\/ gele LED aan (rood en groen uit)<br \/>\ndigitalWrite(yellowLed, HIGH);<br \/>\ndigitalWrite(greenLed, LOW);<br \/>\ndelay(2000); \/\/ 2 seconden geel<\/div>\n<div>\/\/ rode LED aan (geel en groen uit)<br \/>\ndigitalWrite(redLed, HIGH);<br \/>\ndigitalWrite(yellowLed, LOW);<br \/>\ndelay(5000); \/\/ 5 seconden rood<\/div>\n<div>}<\/div>\n<div class=\"x_elementToProof\"><\/div>\n<div><\/div>\n<div><img decoding=\"async\" class=\"alignnone  wp-image-16\" src=\"https:\/\/sinem.i24.flexvakken.nl\/wp-content\/uploads\/2025\/06\/arduino-chip-300x300.webp\" alt=\"\" width=\"165\" height=\"165\" srcset=\"https:\/\/sinem.i24.flexvakken.nl\/wp-content\/uploads\/2025\/06\/arduino-chip-300x300.webp 300w, https:\/\/sinem.i24.flexvakken.nl\/wp-content\/uploads\/2025\/06\/arduino-chip-1024x1024.webp 1024w, https:\/\/sinem.i24.flexvakken.nl\/wp-content\/uploads\/2025\/06\/arduino-chip-150x150.webp 150w, https:\/\/sinem.i24.flexvakken.nl\/wp-content\/uploads\/2025\/06\/arduino-chip-768x768.webp 768w, https:\/\/sinem.i24.flexvakken.nl\/wp-content\/uploads\/2025\/06\/arduino-chip.webp 1500w\" sizes=\"(max-width: 165px) 100vw, 165px\" \/><\/div>\n<div>Dat is de chip die gaat progammeren zodat alles het goed doet. je verbind de chip hierna aan je laptop en je volgt de instructie van de code en voert hem in. hierna zou hij gaan moeten knipperen op dezelfde manier als een stoplicht.<\/div>\n<div><\/div>\n<div><img decoding=\"async\" class=\"alignnone  wp-image-17\" src=\"https:\/\/sinem.i24.flexvakken.nl\/wp-content\/uploads\/2025\/06\/verkeerslicht-arduino-300x193.png\" alt=\"\" width=\"221\" height=\"142\" srcset=\"https:\/\/sinem.i24.flexvakken.nl\/wp-content\/uploads\/2025\/06\/verkeerslicht-arduino-300x193.png 300w, https:\/\/sinem.i24.flexvakken.nl\/wp-content\/uploads\/2025\/06\/verkeerslicht-arduino-1024x659.png 1024w, https:\/\/sinem.i24.flexvakken.nl\/wp-content\/uploads\/2025\/06\/verkeerslicht-arduino-768x494.png 768w, https:\/\/sinem.i24.flexvakken.nl\/wp-content\/uploads\/2025\/06\/verkeerslicht-arduino.png 1236w\" sizes=\"(max-width: 221px) 100vw, 221px\" \/><\/div>\n<div>Wat heb je nodig?<\/div>\n<div><\/div>\n<div>-lampjes<\/div>\n<div>-stroomkabels<\/div>\n<div>-arduino chip<\/div>\n<div>-breadboard<\/div>\n<div>-kabel voor de computer naar je arduino<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Dit is de code voor de stoplicht opdracht. &nbsp; \/\/ Pin definities voor de LED\u2019s int redLed = 9; \/\/ Rode LED aangesloten op pin 9 int yellowLed = 10; \/\/ Gele LED aangesloten op pin 10 int greenLed= 11; \/\/ Groene LED aangesloten op pin 11 void setup() { \/\/ Stel de LED-pinnen in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-15","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sinem.i24.flexvakken.nl\/index.php?rest_route=\/wp\/v2\/pages\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sinem.i24.flexvakken.nl\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sinem.i24.flexvakken.nl\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sinem.i24.flexvakken.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sinem.i24.flexvakken.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":1,"href":"https:\/\/sinem.i24.flexvakken.nl\/index.php?rest_route=\/wp\/v2\/pages\/15\/revisions"}],"predecessor-version":[{"id":18,"href":"https:\/\/sinem.i24.flexvakken.nl\/index.php?rest_route=\/wp\/v2\/pages\/15\/revisions\/18"}],"wp:attachment":[{"href":"https:\/\/sinem.i24.flexvakken.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}