sindar / pRodriguezAssistant

Personal voice ASSistant v.2 :)
GNU General Public License v3.0
102 stars 14 forks source link

Purpose of micro switch #2

Closed plskeggs closed 4 years ago

plskeggs commented 4 years ago

What do you do with the micro switch that detects whether the antenna is plugged in? Is this used for power? I don't see any references in the code to otherwise read a pin connected to the switch, so it must be for something other than triggering a change to the software.

sindar commented 4 years ago

Yes, it is used for power. We use an ups-lite shield: https://www.tindie.com/products/rachel/ups-lite-for-raspberry-pi-zero/ We removed its native switch and soldered it with the antenna's switch. No software functions is used in power-up flow. When the antenna is being plugged in, the system powers on. It's not very graceful, but simple.

plskeggs commented 4 years ago

As I suspected; thank you!

sindar commented 4 years ago

As always, you're welcome!