From 9a653b6d6e8b93e674d2945d1ea92a97d45f4055 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 22 Nov 2019 18:33:03 +0100 Subject: [PATCH] Add Relay sketch --- Week 3/Relay/Relay.arduino.avr.uno.elf | Bin 0 -> 14644 bytes Week 3/Relay/Relay.arduino.avr.uno.hex | 60 +++++++++++++++++++++++++ Week 3/Relay/Relay.ino | 13 ++++++ 3 files changed, 73 insertions(+) create mode 100755 Week 3/Relay/Relay.arduino.avr.uno.elf create mode 100644 Week 3/Relay/Relay.arduino.avr.uno.hex create mode 100644 Week 3/Relay/Relay.ino diff --git a/Week 3/Relay/Relay.arduino.avr.uno.elf b/Week 3/Relay/Relay.arduino.avr.uno.elf new file mode 100755 index 0000000000000000000000000000000000000000..d5ec0494fa5576a799f8a4d3fb712f306a21dbb1 GIT binary patch literal 14644 zcmd5?dvsgHnV&1kw*0`)B;?^>C3fCemYpXMk~p?woW!xQ9TF&1k!9HyktNrXlkkia z(hw*R%Sw1G^rWzCfwo%$g_fl)p={bMJ*DaPby{{$F)Tf$l+!wWoV2^N-rsNLUTJj8 z_HlOq*lW+s_x-+azWL^xxpQak)xnnSTMWYx*5wf0!s1o|yl0INIVe{Nk8p^kqD&M^ zdBUoI^0ZSW>N${Dzs5ykOeK){NV$ZNicVaQ6#ZYM3gfS-kEYzhffk*vJkaTD5&E%0 zay4R!ST0=V<&c+CUWUWvF7<30Q>DtwYN}p3_sbtn{`kymXBJF;V)B_u(Ah=gYF(Kb9I3Z=5^w{PF!qzWi@2Z~L!vW69IvI3%aVcNBfw@6T;m z@%p)qusoK`F~*a*#wU__#_6QnSp58x59hpGw{gytasQ+9pP9e$%!_qT)je2uY{{35 z*NonhkIX+bKRJK%WPi#2s$*3TRc$@_uNT}Wk58PMczWW@#JPz#CVn|FJ+aNW-Y7ot zC9&7IRhE%Cx8>iLe=2`)LwwVroMg_Ezg{qTcy7}DsQVfBv0r?>_>RdRUh-z;`N~5x zlCDQx&$yOdm>&P-_#5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qDPRG~Trgr5U(j;gML-B2BY$ z_516xc~Il(EZ0yxr)tb+iB(&z+(Ilc^{gFh0=%^kp{`nS@s$%aA0N6seb;K)yA(R4 z5ny?--7=GAK^YVGllrcB9rQKxHQQfPVZpgJz}T literal 0 HcmV?d00001 diff --git a/Week 3/Relay/Relay.arduino.avr.uno.hex b/Week 3/Relay/Relay.arduino.avr.uno.hex new file mode 100644 index 0000000..d05e2f4 --- /dev/null +++ b/Week 3/Relay/Relay.arduino.avr.uno.hex @@ -0,0 +1,60 @@ +:100000000C945C000C946E000C946E000C946E00CA +:100010000C946E000C946E000C946E000C946E00A8 +:100020000C946E000C946E000C946E000C946E0098 +:100030000C946E000C946E000C946E000C946E0088 +:100040000C9413010C946E000C946E000C946E00D2 +:100050000C946E000C946E000C946E000C946E0068 +:100060000C946E000C946E00000000080002010069 +:100070000003040700000000000000000000000072 +:10008000250028002B0000000000240027002A0083 +:10009000040404040404040402020202020203032E +:1000A0000303030301020408102040800102040836 +:1000B000102001020408102011241FBECFEFD8E049 +:1000C000DEBFCDBF21E0A0E0B1E001C01D92A930AC +:1000D000B207E1F70E945D010C94D6010C94000078 +:1000E00090E0FC01E859FF4F2491FC01EC55FF4FD3 +:1000F0003491FC01E057FF4FE491EE23C9F0222335 +:1001000039F0233001F1A8F4213019F1223029F11E +:10011000F0E0EE0FFF1FE458FF4FA591B4918FB7A9 +:10012000F894EC91611126C030953E233C938FBF2B +:1001300008952730A9F02830C9F0243049F780917C +:1001400080008F7D03C0809180008F778093800036 +:10015000DFCF84B58F7784BDDBCF84B58F7DFBCFB8 +:100160008091B0008F778093B000D2CF8091B000A3 +:100170008F7DF9CF3E2BDACF3FB7F8948091050100 +:1001800090910601A0910701B091080126B5A89BA6 +:1001900005C02F3F19F00196A11DB11D3FBFBA2F19 +:1001A000A92F982F8827BC01CD01620F711D811DD9 +:1001B000911D42E0660F771F881F991F4A95D1F75E +:1001C00008958F929F92AF92BF92CF92DF92EF925B +:1001D000FF924B015C010E94BC006B017C010E94FC +:1001E000BC006C197D098E099F09683E734081052A +:1001F0009105A8F321E0821A9108A108B10888EEC0 +:10020000C80E83E0D81EE11CF11C81149104A104E6 +:10021000B10429F7FF90EF90DF90CF90BF90AF909F +:100220009F908F9008951F920F920FB60F921124F6 +:100230002F933F938F939F93AF93BF93809101012F +:1002400090910201A0910301B0910401309100014D +:1002500023E0230F2D3758F50196A11DB11D2093E2 +:1002600000018093010190930201A0930301B093D8 +:1002700004018091050190910601A0910701B091C0 +:1002800008010196A11DB11D8093050190930601FF +:10029000A0930701B0930801BF91AF919F918F91F7 +:1002A0003F912F910F900FBE0F901F90189526E849 +:1002B000230F0296A11DB11DD2CF789484B5826020 +:1002C00084BD84B5816084BD85B5826085BD85B5FA +:1002D000816085BD80916E00816080936E00109278 +:1002E00081008091810082608093810080918100F3 +:1002F0008160809381008091800081608093800084 +:100300008091B10084608093B1008091B0008160E1 +:100310008093B00080917A00846080937A0080910D +:100320007A00826080937A0080917A008160809365 +:100330007A0080917A00806880937A001092C100E0 +:10034000EBEAF0E02491E7E9F0E08491882399F06A +:1003500090E0880F991FFC01EA57FF4FA591B491D7 +:10036000FC01E458FF4F859194918FB7F894EC917C +:10037000E22BEC938FBFC0E0D0E061E087E00E9409 +:10038000700060E177E280E090E00E94E10060E0D0 +:1003900087E00E94700068E873E180E090E00E94CE +:1003A000E100209751F30E940000E7CFF894FFCFBF +:00000001FF diff --git a/Week 3/Relay/Relay.ino b/Week 3/Relay/Relay.ino new file mode 100644 index 0000000..e04c040 --- /dev/null +++ b/Week 3/Relay/Relay.ino @@ -0,0 +1,13 @@ +// Relay +int relay = 7; + +void setup() { + pinMode(relay, OUTPUT); +} + +void loop() { + digitalWrite(relay, HIGH); + delay(10000); + digitalWrite(relay, LOW); + delay(5000); +}