-
Notifications
You must be signed in to change notification settings - Fork 3
4-channel dimmer on STM32F030
License
vasimv/StmDimmer-4ch
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
MODBUS RTU support includes following function codes: FC03 (read holding output registers) - registers 0..3 (unsigned 16 bit, 0..1023 values) contain PWM output values FC04 (read input registers) - ADC data (unsigned 16 bit): 0 - input voltage (in mV), 1 - MCU supply voltage (in mV), 2 - MCU internal temperature sensor (in celsius, *100), 3 - Photoresistor 1 value, 4 - Photoresistor 2 (or Thermistor) value, 5 - ADC3 input voltage (1:5 divider, in mV), 6 - ADC5 input voltage (1:5 divider, in mV), 7 - current FAN PWM output (at 125hz, 0..7), 8 - minimum thermistor value to start the fan (at pwm=1, 12.5%), 9 - maximum temperature point for 100% fan FC06 (write holding output register) - write PWM output value (see FC03), register with address 0x100 changes slave ID if it was set to 0xff (one time only, will require flash erase to reprogram!!!), register 8 & 9 - fan start/max variables (see FC04) FC16 (write multiple holding output registers) - write PWM output and fan values (see FC06) Slave ID (in dimmer.h) is 0xf7. If you want to change it by FC06 write - set to 0xff Schematics in PCB directory, board can be ordered on https://oshpark.com/shared_projects/c1BDQ9yI
About
4-channel dimmer on STM32F030
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published