You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
Eggert Jung 24ef8ce70d add prints 3 years ago
Ethernet move dirs 4 years ago
Internet/MQTT remove warnings 4 years ago
avrIOhelper add start/stop when brake is engaged 3 years ago
.gitignore Add 03_m1284p_WIZNET_loopback_STATIC_IP project 7 years ago
Makefile change programmer 4 years ago
README.md update timer1 in README 4 years ago
abzug.c change button fine ajdustments 3 years ago
abzug.h getter method for abzug_state 3 years ago
common.h split code into more files 4 years ago
kraftsensor.c modbus/kraftsensor cleanup 3 years ago
kraftsensor.h modbus/kraftsensor cleanup 3 years ago
main.c add prints 3 years ago
millis.c move timer inits to files where it is used 4 years ago
millis.h move timer inits to files where it is used 4 years ago
modbus.c make changes for anderen anlagenteil 4 years ago
modbus.h increase baud rate for performance 3 years ago
mqtt.c reenable error counter and indentation 4 years ago
mqtt.h move dirs 4 years ago
notaus.c add globaly available notaus-state 4 years ago
notaus.h add globaly available notaus-state 4 years ago
pid_controller.h less aggressive pid 3 years ago
spi.c move dirs 4 years ago
spi.h move dirs 4 years ago
spule.c add prints 3 years ago
spule.h fix spooling bug 3 years ago
taenzer.c zero sensor value when both buttons pressed 3 years ago
taenzer.h add active state for taenzer 4 years ago
uart.c comments and details 4 years ago
uart.h move dirs 4 years ago

README.md

Network Config

Parameter Value
IP Adr. 192.168.5.1
Subnet 255.255.0.0
MAC 00-08-dc-ab-cd-f0

MQTT

Connect to MQTT Host 192.168.5.2

Publish
Topic Values Unit
/Filamentanlage/05_Abzug/state/abzug/speed 10 - 1000 mm/s
/Filamentanlage/05_Abzug/state/abzug/onoff True/False
/Filamentanlage/05_Abzug/state/kraft 24-bit signed mN
/Filamentanlage/05_Abzug/state/speicher/pos 32-bit unsigned (valid: 0~1000000) Steps
/Filamentanlage/04_Abzug/state/uptime 32-bit unsigned milliseconds
Subscribe
Topic Values Unit
/Filamentanlage/05_Abzug/set/#

Hardware usage

Timers

Timer Type Usage Mode used ISRs Output connected
0 8 bit Millis Tick Timer (1kHz) 2 (CTC) COMPA -
1 16 bit Step Signal Translation Spule 8 (PWM, Phase & Freq.) OVF OC1A / PB5
2 8 bit Modbus Tick Timer (10kHz) 2 (CTC) COMPA -
3 16 bit Step Signal Abzugsrolle 8 (PWM, Phase & Freq.) - OC3B / PE4
4 16 bit Step Signal Taenzer 8 (PWM, Phase & Freq.) OVF, COMPA OC4A / PH3
5 16 bit Step Signal Rotation Spule 8 (PWM, Phase & Freq.) - OC5C / PL5

UART

UART Usage
0 Debug Prints (connected to USB)
1
2
3 Modbus (connected to MAX485)