Hi everyone, I have a problem on my MKS Robin Nano V1.2:
I'm using a PINDA V2 probe and I enabled temp compensation, the problem I have is that I can't read the temp value of the probe. I connected the white wire to PC2, the wiring is 100% correct because when I connect the probe to PC0 (instead of bed temp) I can see the values. When connected to PC2 (as declared below) if I connect to pronterface, I have the same identical readings on Bed and Probe like if the pin is the same!
I had to add the #define TEMP_PROBE_PIN to my pins file since is not natively present.
I did like this:
//
// Temperature Sensors
//
#if TEMP_SENSOR_PROBE
#define TEMP_PROBE_PIN TEMP_1_PIN
#elif TEMP_SENSOR_CHAMBER
#define TEMP_CHAMBER_PIN TEMP_1_PIN
#endif
My configuration: https://github.com/Loreagle/Marlin-2.0.7
Thank you!
It looks like there is a problem with ADC and probe looks at the same reading as the bed.

Seems like PROBE adc is missing from STM32F1 HAL
Give this a try. HAL.zip
Extract HAL.cpp and put in Marlin/src/HAL/STM32F1
Based on bugfix HAL
It doesn't work, it compiles but when flashed I instantly have BED TEMP ERROR at startup with red screen :frowning: BTW Thank you a lot for your work, at least we discovered where the problem is, now we only need to fix it! :smile:
Seems like PROBE adc is missing from STM32F1 HAL
Give this a try. HAL.zip
Extract HAL.cpp and put in Marlin/src/HAL/STM32F1
Based on bugfix HAL
Ok, I missed one place this change was needed.
Try this new version. HAL.zip

It seems to work, thank you!!!!! <3
The temperatures seems to float a little but I don't know if it's normal.
Created a PR to fix this for all users of this HAL
I confirm that this works very well and finally I have Probe temp readings. Unfortunately this fix broke my neopixels, before neopixel were working quite well with library 1.2.4, now, after only this fix in HAL, doesn't work anymore as expected. It could be a CPU load problem or something similar?
Unfortunately this fix broke my neopixels
Neopixels aren’t supported on STM32F1 and we have a sanity check for this:
I know but using Adafruit library 1.2.4 they works well and was working before so I asked.
That’s precisely why they aren’t supported. They are really finicky on STM32F1-based boards.
Ok thanks, I found that disabling cycle at startup they work 🤷🏻♂️ But is something related to timing or what? I found a lot of people that developed fast neopixels libraries for STM32
Solved!
Using this library: https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use like in issue (#18829) it works!!!
Maybe is possible to add it to official marlin only for robin nano board using lib_deps?
Most helpful comment
Created a PR to fix this for all users of this HAL