bltouch on rumba32
I followed this documentation and I'm getting this error:
src\Configuration.cpp:27:62: error: expected primary-expression before ';' token
27 | #define CONFIG_VARIABLE_EQ(tp, name, values) tp name = values;
|^
src\Configuration.h:429:1: note: in expansion of macro 'CONFIG_VARIABLE_EQ'
429 | CONFIG_VARIABLE_EQ(EndstopDriver, *ZProbe, ZPROBE_ADDRESS)
| ^~~~~~~~~~~~~~~~~~
*** [.pio\build\RUMBA32\src\Configuration.cpp.o] Error 1
27 | #define CONFIG_VARIABLE_EQ(tp, name, values) tp name = values;
|^
src\Configuration.h:429:1: note: in expansion of macro 'CONFIG_VARIABLE_EQ'
429 | CONFIG_VARIABLE_EQ(EndstopDriver, *ZProbe, ZPROBE_ADDRESS)
| ^~~~~~~~~~~~~~~~~~
*** [.pio\build\RUMBA32\src\Configuration.cpp.o] Error 1
Comments
First
Is before you define IOEndstopZMin so it is undefined and causes later errors. Then this must not be the io, but the endstop
with
ENDSTOP_SWITCH_HW(endstopZMin, IOEndstopZMin, Z_AXIS, true)
If in doubt compare with samplesystems/Delta/Deltatower RUMBA32 which also uses the bl touch and compiles fine.
Important also in case other things are not working. In configuration_io use defined modules (first name of parameters defines that name) only after defining them or you get later strange compile errors.
for the servo and it works. Servos don't use real PWM so any pin should work as long as you are using the right one.
In your script above you define servo 0 twice and differently. Not sure if the first or last will get used, but it is bad and you should only define one servo.
Did you check manually using M340 if the bltouch reacts? When you are using pin 4 you can also test the rumba32 delta sample just to test bltouch works there or not ignoring all other functions.
Does multimeter show voltage changes or what values do you see. Note that with bltouch it is never off I think, just different timings between 1,5 and 2,5ms so difference is maybe 0.1V in total between highest and lowest angle.
Also make sure no other function uses pin or signals will be wrong or if it gets set as input nothing useable.
The rumba 32 delta config is the source that used to work when it was functional. Need time to analyse why it is not working any more for me. Maybe just a power wire broken. But think it is unrelated. When they get power I remember the did some self tests independent on pwm signal.
The project will possibly be continued the next months.
If it helps I can dig into my documentation for the settings I used.
ZProbeServo is the name you need to give it to be used.