How to use evive's Joystick (Navigation Key)
About This Tutorial
evive has an inbuilt 5-way navigation key, which is used to navigate through evive menu based system. The navigational key has 4 directions:
This information is provided by the analog pin A11.
The 5th direction is centre-press. The centre switch is connected to the digital pin 19 in active HIGH mode. This means that if the switch is pressed, then pin 19 is HIGH; otherwise the pin is LOW.
The table below shows the values for their corresponding directions:
|DIRECTION||ANALOG VALUE RANGE|
In this example we will read the state of the 5-way navigation key and display it on the TFT Screen.
Below is the Arduino sketch:
How to generate Analog Output at Digital Pins using PWM
This Pulse Width Modulation Arduino tutorial discusses what is PWM in Arduino (Pulse Width Modulation), Arduino analogwrite function and how to generate analog output in evive using PWM with the help of an Arduino IDE sketch. Information about analogwrite Arduino function is also given in the content.
How to interface DC motor with Arduino IDE
This tutorial discusses what are DC motors, how to control them, and how to interface them with Arduino IDE using motor control units in evive with the help of an Arduino IDE sketch. Code for DC motor control using Arduino is also given in the content.