Botroniks Arduino ready-made code project - PCC1010B: Control up to 4 Arduino-RelayShield1 outputs from PC - FREE!


BotronikS - Final code for all types of Arduino and PC users: -- HOME -- CONTACT

Botroniks Arduino Hex code    
UNO
MEGA
arduinos
Relay Shield
PS9V/1A
 
 
Link: 1 - 2 - 3
Link: 1-2-3-4
connections (click to enlarge)
 
need accessories
   

PCC1010B: Control up to 4 Arduino-RelayShield1 outputs from PC - FREE!
The offered code enables: Directly control the operation of up to 4 outputs from PC
Required accessories: see above
For Arduino boards: NANO or UNO or MEGA
Arduino pins are used:
uc ATmega328p (NANO, UNO, ...): D4=OUT4 D5=OUT3 D6=OUT2 D7=OUT1 (Active output state (Hi): ON = 5V OFF = 0V)
uc AtMega2560 (MEGA,.............): D4=OUT4 D5=OUT3 D6=OUT2 D7=OUT1 (Active output state (Hi): ON = 5V OFF = 0V)
 
Electrical and practical notes - Be careful if mains voltage is used (on relay contacts)!
Recommended to use an external voltage source 9V/1A (on dc plug or on VIN pin).
 
Some notes:
Download the FreeHEX codes below, unpack and upload to the proper Arduino board (Use a free net tool for example XLoader)
1. uc ATmega328-16MHz-5V (NANO,UNO...) - PCC1010B-M328
2. uc AtMega2560 (Mega(ATMEGA2560).....) - PCC1010B-M2560
 
You can test the uploaded code using some free serial communication software such as Termite
AT command (ASCII characters) - 9600 Baud ,8 Data bits,None Parity,1 Stop Bit - AT commands must be uppercase letters!
AT - attention command (returns OK)
AT+INF - software code info (returns ucAppName)
AT+OxL - set OUTx at LO(0V) level (returns OxL (x=1-4))
AT+OxH - set OUTx at HI(5V) level (returns OxH (x=1-4))
AT+AOL - set all outputs at low (0V) level (returns OxL (x=1-4))
AT+AOH - set all outputs at high (5V) level (returns OxH (x=1-4))
AT+AOR - reading all outputs status (returns OxX x=1-4 X=H/L)
 
For those familiar with Arduino IDE programming: PCC1010B - PCC1010Bzip
 

PC Application(s):
PC Application(s) (for WINDOWS): In order for the offered PC applications to work, it is necessary to download and install (only first time): VB6RunTimePlus2.2
Download the PC application, unpack and start (allow windows to start applications - see HOW) enter the COM port number where the Arduino is connected and use that.
 
Download PCApp1: PCC1010B-PcApp1
Botroniks Arduino Hex code
 
Download PC App: PCC1010B-PcApp2
Botroniks Arduino Hex code