OpenGarage › Forums › Hardware Questions › Custom sensors – where to connect? › Reply To: Custom sensors – where to connect?
Thanks for the reply. I have noticed the support for magnetic switch has been added already, but this seems to disable the ultrasound distance sensor. So I’ll need to modify the firmware and web interface anyway. Unfortunately I don’t have any programming skills yet, so this will be a learning lesson 🙂
I have few points for the firmware improvement:
1) the ultrasound sensor would report the door being closed, even if they will not close fully (ie. something is blocking the door to fully close) and will report as closed even they are not. Not sure how the motor handles that – did not try yet and could be different for each vendor. Will the door fully open when something is blocking from full closure or will they eventually just stop and keep half way open? The magnetic switch could report the door is fully closed – so would be nice to be able to have a combination with ultrasound sensor and also monitor the car presence.
2) IR beam to check if the car (or anything else) is not in between the door way. This will work the same way like magnetic switch, so pretty easy to implement
3) PIR motion sensor. When I am working around the car with the door open, I don’t want it to close automatically.
So according to the below I have only GPIO4 and GPIO5 available for custom sensors and one analogue PIN. GPIO0 is not available? I have seen it on the PCB. What button is this mapped to? There is only one reset button mapped to GPIO16
GPIO 0: BUTTON
GPIO 2: LED
GPIO 4: SDA (spare)
GPIO 5: SCL (spare)
GPIO12: SENSOR TRIGGER
GPIO14: SENSOR ECHO
GPIO16: RESET (tied to reset to trigger hardware reset)
A0 : ANALOG PIN (spare)