SV50 Bluetooth Virtual Keypad
Description
The SV50 is a new model of solar powered Electric fence energiser. Virtual Keypad (VKP) is the name I coined for an App that provides an enhanced user interface for our (Pakton /JVA) products. Typically this allows control and some adjustment of settings. Examples are the VKP for the MBxL product line. In the past a VKP was not something we had considered for a solar powered energiser due to the low power budget. However, I thought it may be possible to provide it using Bluetooth instead of Wi-Fi. The BT modules are cheaper, smaller and require less power to run.
My main reasons for attempting this project:
- Try to find a simpler method to generate a useful interface App. As opposed to writing it twice, once for iOS and again for Android.
- Test various AI Assistants, and create methods to work with them to create code for a real project.
- Learn how to create a Web App
- Learn how to use the Chrome Serial and Bluetooth APIs
Method
While I was writing the embedded firmware for the SV50, I added parts of a command line interface (CLI) previously developed for the Boundary Rider project, which handles the JDY33 BT module. To make development of the VKP easier, I first wrote a protocol emulator to emulate the SV50 side of the protocol. I then spent a lot of time creating the specification for the VKP, as I would have done if I was writing it for an external software contractor. I then used AI to improve the specification, and finally I asked it to create code. We used HTML, CSS and JS.
This was my third or fourth project using AI assistants. During this project I settled on Gemini 2.5 via aistudio.google.com
I have outlined my methods in a PPT that I will attempt to convert to a YouTube or Google slide show and publish as another project.
Bottom line, it worked... however, the AI and LLM landscape is changing so quickly my methods will probably be out of date by the time you read this.
Important note: Apple does not allow access to these Chrome APIs I am trying to find a workaround for this.
Ownership
This one is © Pakton Group Pty Ltd.
Links
- Website: SV50 BT Virtual Keypad App