Somehow a comment form tony didn't make it: tony commented: "Thanks for the videos. Can this work for the esp32(do I still use the hallread command in Arduino although it seems very noisey) and are all cylinder shaped magnets all the ..." Disclaimer: I never programmed an ESP32 myself. That said: Yes, of course. The ESP32 has 4 SPIs and drivers are available.
You're welcome! Anyway, not if you take tolerances (resistors, 5V rail) into account: A 2k/3.9k voltage dividers would indeed reduce the 5V to spot on 5V/(2k+3.9k)*3.9k=3.305V. But if you have some unfortunate tolerances (say +/-5%) you might get 5.25V/(1.9k+4.1k)*4.1k=3.588V which already exceeds 3.3V+5%=3.465V. A 2k/3.3k voltage divider is save in that respect.
I do enjoy your walk through's on a Sunday morning ! ...cheers.
Well, I do hope you're not the only one ;-) No, seriously, these code walk throughs are a wee bit dry for RUclips.
Very informative video Sir
Thank you for the praise! And you're welcome!
Somehow a comment form tony didn't make it:
tony commented: "Thanks for the videos. Can this work for the esp32(do I still use the hallread command in Arduino although it seems very noisey) and are all cylinder shaped magnets all the ..."
Disclaimer: I never programmed an ESP32 myself. That said: Yes, of course. The ESP32 has 4 SPIs and drivers are available.
think i missed the first part, I will watch after this just to confuse me even more :)
Yes, you do that ;-) But earnestly, the first part will not really help you to understand this part better :-)
Thanks for this. Very useful. I think the resistors might be better at 3.9k rather than 3.3k, yes?
You're welcome! Anyway, not if you take tolerances (resistors, 5V rail) into account: A 2k/3.9k voltage dividers would indeed reduce the 5V to spot on 5V/(2k+3.9k)*3.9k=3.305V. But if you have some unfortunate tolerances (say +/-5%) you might get 5.25V/(1.9k+4.1k)*4.1k=3.588V which already exceeds 3.3V+5%=3.465V. A 2k/3.3k voltage divider is save in that respect.
yay
😁