# Hardware setup instructions This readme contains insructions for plugging in the system and turning it on. Full software setup documentation is in the broadcaster-software.md and listener-software.md files. Make sure to do the following steps in the order they are listed: ## Requirements * Modem and internet plan with a static public ip address. * Provisioned [broadcaster](broadcaster.md) * Provisioned [listener](listener.md) ## Steps ### Turn on broadcaster 1. Plug the usb mic cable into a microphone 2. Plug the usb mic cable into the top right (blue colored) usb port on the broadcaster (raspberry pi 4b) 4. Plug the ethernet cable into the broadcaster and the router 5. Plug the power into the broadcaster (this is how you turn it on) ### Networking 6. Log into the router. 7. Find the ip address of the broadcaster (hostname portal) - usually in the advanced > network > dhcp. 8. Navigate to the NAT forwarding section of the router admin. 9. Set your router to forward all traffic coming in on port "80" to port "8000" at the local ip address of the broadcaster. 10. Set your domain name to point to the static IP address of your modem. ### Turn on listener 1. Turn on the listener (raspberry pi zero). plug it into a monitor and keyboard. when it boots, type sudo raspi-config. navigate to system settings and change the wifi settings so it can access the internet. 2. Type sudo vim /lib/systemd/system/listener.service and edit the line that says "ExecStart=mplayer -playlist http://" changing the http:// part to the static ip address of the router. 3. Type esc, w, q, enter 4. Type sudo systemctl restart listener 5. mic check ### Important notes * The microphone must always be plugged into the broadcaster before the broadcaster is on * The broadcaster must always be on when the listener is turned on. if it is not, then the listener needs to be restarted once the broadcaster is on.