hr50-remote-display/README.md

52 lines
1.8 KiB
Markdown
Raw Normal View History

2021-11-12 03:20:14 -05:00
# Hardrock-50 Remote Display
2021-11-12 03:34:00 -05:00
The Hardrock-50 is a 50W power amplifier for amateur radio QRP transceivers. It has a display showing valuable information like the selected band, the SWR, power, temperature etc. Since I am using the HR50 in a remote station, I cannot directly access those information via the display.
2021-11-12 03:20:14 -05:00
2021-11-12 03:34:00 -05:00
However, the HR50 offers serial communication via a USB port. This project tries to solve this problem with the help of a separate, wifi enabled hardware display. It consists of the following two components:
* Heltec ESP32 board with display
* a python flask application, which represents the communication via the serial interface in the form of an API
2021-11-12 04:24:44 -05:00
This diagram shows which components are required and how the communicate:
![Diagram](diagram.jpg "Diagram")
2021-11-12 03:34:00 -05:00
This is how the display looks like in action:
2021-11-12 03:20:14 -05:00
![Photo of the Heltec board](hr50-remote-display.jpg "Photo of the Heltec board")
2021-11-12 03:34:00 -05:00
2021-11-12 03:39:28 -05:00
## Preconditions
### Hardware
* Heltec ESP32 Wifi Dev Kit Board with OLED
### Software
2021-11-12 03:40:38 -05:00
* Arduino IDE
* HR50-Api: [https://git.qrz.is/clemens/hr50-api]
2021-11-12 03:39:28 -05:00
### Libraries
* Heltec Libraries: [https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series]
* ArduinoJson
* HTTPClient
* WiFi
2021-11-12 03:34:00 -05:00
## Configuration
Edit the following lines inside the Arduino sketch:
```
const char* ssid = "<ENTER_HERE_YOUR_WIFI_SSID>";
const char* password = "<PASSWORD>";
String api_url = "http://<ENTER_HERE_THE_IP_OF_YOUR API_SERVER>:5000/status";
```
2021-11-12 05:42:18 -05:00
## Error handling
* If wifi is unavailable or misconfigured, the device will show "No Wifi!" on the screen
* HTTP Errors will also displayed on the OLED
* When you key up your TRX and therefore the HR50, no serial communication is possible. The latest gathered information will still be displayed on the screen but there will be a "(!)" in the third row as an indicator for this situation.