| BotronikS - Final code 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 |
CPA2pwmA: Control Pwm(s) outputs by TEXT commands (from PC, PLC...) |
||||
|
connections (click to enlarge) |
XLoader example |
Termite test... |
Useful accessories: | |
| ExDriver1: 1 - 2 - 3 | ||||
| CPA2pwmA: Control Pwm(s) outputs by TEXT commands (from PC, PLC...) | ||||
| Note: | ||||
| Download the HEX codes below, unpack, and upload to the proper Arduino board (Use a free net tool for example XLoader) | ||||
| 1. ATmega328-16MHz (MINI,NANO,UNO...): Hex-m328 | ||||
| 2. AtMega2560 (Mega(ATMEGA2560)........): Hex-m2560 | ||||
| Based on the offered TEXT commands, you can develop your own PC, PLC ... communication code, and applications... | ||||
| Available ASCII TEXT commands (Default: ID=1 Baud=9600): Test uploaded code using some free serial software such as Termite.TextCommamd format: ID(device identifier) + TextCommand + ENTER |
| IDAT - attention command (return ID+OK) - example for ID=1: 1AT |
| IDSV1=x - x=set pwm in percentage (0-100% 0=0V 100%=5V) - example for ID=1: 1SV1=50 |
| IDSV2=x - x=set pwm frequency (x= 1-7 1=31372.55Hz 2=3921.16Hz 3=980.39Hz 4=490.20(default) 5=245.10Hz 6=122.55Hz 7=30.64Hz) - example for ID=2: 2SV2=5 |
| IDSV1 - returns value of SV1 |
| IDSV2 - returns value of SV2 |
| Additional commands (if using more devices on RS485 network): |
| Connect Arduino to PC (if in your hardware use RS485 module connected to D0/D1 - Arduino must be out of hardware)- use Termite): |
| ID=device identifier BAUD=device Baud rate |
| ID? - returns ID |
| ID=x (set new ID x=0-9 or A, B, C, D, E, F, - example: ID=2 or ID=A ... ) |
| BAUD=x (set the new baud rate: supported x=1200,2400.4800,9600,19200,38400,57600 - example: BAUD=19200 ) |
| Note: Be careful when changing BAUD! Remember the new set BAUD value in case of further settings! |
| Try and Test with next PcApp: | |||
| Download: PcApp1 - Time-Limited trial version (2 hours) then need App restart! - ask via email for price of Final version! | |||
![]() |
![]() |
![]() |
|
| Useful accessories: | ||
| Module1: 1 - 2 - 3 | ||
| PWM DC Motor (load) driver using Module1 | ||
| Note: If VA=VM=8-12V, connect it, otherwise use separate power supplies. | ||