Get Started with the GPIO APK
The GPIO APK, called KIWI Control, is a specialized Android application designed to interface with the GPIO pins on KIWI310. This application is essential for users who need to control and monitor the GPIO pins directly, facilitating the easy management of hardware components. By providing a seamless and intuitive method for hardware interaction, the GPIO APK enhances the functionality and versatility of KIWI boards in various applications. To learn more about what an APK is, please refer to our previous article.
Launch the GPIO APK
Before launching the KIWI Control App, the tty port permissions corresponding to Android must be enabled from the system side. Open "Terminal Emulator", run "su" to enter super user mode, and then configure the permissions (chmod 777 /dev/ttyACM0)
Then click on the KIWI Control icon under the menu. The app will automatically open and display the available tab functions. A window will open and show three tabs.
Version : Shows the current version of the MCU firmware
I/O : Allows the control and monitoring of the PWM and digital inputs/outputs.
Control: Read signals from devices connected to the I2C pins.
Configure and Control IO Tab
This tab has two primary functions for monitoring and control: PWM and GPIO.
- To configure the PWM, select the checkbox to enable the corresponding PWM0/PWM1 port function for testing and press the SET button.
-To verify the status of the PWM port, click the GET button. The checkbox for the enabled PWM ports will be automatically selected.
-To set the Duty Cycle, write the desired value in the box and press the SET button. Please refer to our previous article for a detailed explanation of how PWM operates in KIWIboards.
-To verify the status of the duty cycle in the PWM port, click again on the GET button.
-For the GPIO pins, individually select the pin number from the combo box and set it as input or output.
- Press the corresponding SET button
-For output settings, choose between high or low signals; press the corresponding SET button after configuring each setting.
- For monitoring the signals, press GET button.
Configure and Control Tab
This tab allows you to send signals to control external components or read signals from sensors connected to the I2C pins.
-For setting the I2C, tick on the box of I2C Enable and Repeat, and then press the SET button and confirm it was enabled by pressing the GET button.
-Fill in the sensor's slave ID address. According to the datasheet, by default, the VEML 7700 has a 0x10 ID address and requires writing a 0x00 command for selecting ALS gain to 1. Use the WRITE button to send the word type data LSB 0x90 and MSD 0x20 data. ( For LSB, choose 0x90 to write the data and 0x92 to read the data)
-Use the 0x04 command to read the 16-bit high-resolution ALS output data of the sensor's luminosity and press the READ button.
KIWIboards are designed to integrate effortlessly across different operating systems and applications, providing robust and reliable performance for diverse project requirements. Whether you're deploying on Android or another platform, our hardware is optimized to deliver smooth, consistent functionality. Furthermore, if your project requires specialized configurations or custom features, our expert team can offer tailored support, helping you achieve a solution that meets your unique specifications and goals.
Why KIWI board Solutions?
Integrating KIWI boards with the GPIO APK opens many possibilities for developers, hobbyists, and educators. By providing a straightforward way to control and monitor GPIO pins in Android, the GPIO APK enhances the functionality and usability of KIWI boards. Whether you’re prototyping a new product, learning about electronics, or simply experimenting with new ideas, the KIWI boards and GPIO APK combination offer a powerful and flexible platform to bring your projects to life.
About KIWI board
KIWI board is a complete solutions provider, supporting every aspect of your project, from hardware to software and system integration, to get your application functioning securely, reliably, and at peak performance. KIWI board builds its products for high reliability, high performance, security, scalability, and versatility so customers can expect extended service life, quickly adapt to evolving system requirements, and adopt future technologies as they emerge.
Next steps
Ready to talk about your projects with a KIWIboard expert? Contact us
Want to hear more from KIWIboard? for our newsletterSign up
Or request a quotation