| BotronikS: Final codes for all types of Arduino and PC users: -- HOME -- email: botronik@gmail.com |
| What you need to install or have installed before on your PC: see HERE |
PcTxtProg: 8cycles4outs |
|||
| Useful accessories: | ![]() |
||
| RelayShield4 | |||
| RelayModule4 | |||
| SSRmodule4 | |||
| Programming with Text commands from PC: Uploaded code is started by connecting the power supply according to the set values. | |||
| Up to 8 time cycles controlled and the 4 outputs control. | |||
| Download the Free! HEX codes below, unpack and upload to the proper Arduino board (Use a free net tool for example XLoader) | |||
| 1. ATMega328-16MHz (NANO - UNO - ): HCode-m328 | |||
| 2. ATMega2560 (MEGA - ): HCode-m2560 | |||
| Textual programing from PC: | |||
| Connect arduino to PC USB and start some like Termite (select: COM port and Append CR - see picture above) | |||
| Close S1 switch (switch (or simply wire jumper) for programming only) and reset arduino on button. Then apears some text on PC. | |||
| SV? - return all available SV values | |||
| SV10-SV14: For cycle1: SV10=duration (in sec.) 0=ignore (jump) -1=infinite (loop) - SV11-SV14: Active outputs 1-4: 1=ON 0=OFF | |||
| and so on... | |||
| SV80-SV84: For cycle8: SV80=duration (in sec.) 0=ignore (jump) -1=infinite (loop) - SV81-SV84: Active outputs 1-4: 1=ON 0=OFF | |||
| When you're done programming, open S1 and reset the arduino (for testing). | |||
| Uploaded code is started by connecting the power supply according to the set values. | |||
| Notes: | |||
| All values remain memorized in the arduino (EEPROM). | |||
| During operation without a PC, S1 must be open. | |||
| Some usage examples (for your ideas): | |||
| Delay OFF (Out1=8.3sec): SV10=8.3 SV11=1 SV12=0 SV13=0 SV14=0 SV20= -1 SV21=0 SV22=0 SV23=0 SV24=0 Further values are ignored. | |||
| Deley ON (Delay 3.7sec for Out1): SV10=3.7 SV11=0 SV12=0 SV13=0 SV14=0 SV20= -1 SV21=1 SV22=0 SV23=0 SV24=0 Further values are ignored. | |||
| Blinker1: SV10=2 SV11=1 SV12=0 SV13=0 SV14=0 SV20=1.5 SV21=0 SV22=0 SV23=0 SV24=0 SV30=0 All onother values set to 0! | |||
| Blinker2: SV10=2 SV11=1 SV12=0 SV13=0 SV14=0 SV20=1 SV21=0 SV22=0 SV23=0 SV24=0 SV30=2 SV31=0 SV32=1 SV33=0 SV34=0 | |||
| ---------- SV40=2 SV41=0 SV42=1 SV43=0 SV44=0 All onother values set to 0! | |||
| Star-Delta relay (Out1+Out2): SV10=5.8 SV11=1 SV12=0 SV13=0 SV14=0 SV20=0.5 SV21=0 SV22=0 SV23=0 SV24=0 SV30=-1 SV31=0 SV32=1 SV33=0 SV34=0 Further values are ignored. | |||
| Running lights in 3 steps: SV10=0.1 SV11=1 SV12=0 SV13=0 SV14=0 SV20=0.1 SV21=0 SV22=1 SV23=0 SV24=0 SV30=0.1 SV31=0 SV32=0 SV33=1 SV34=0 All onother values set to 0! | |||
| Running lights in 4 steps: Like 3 steps + SV40=0.1 SV41=0 SV42=0 SV43=0 SV44=1 All onother values set to 0! | |||