Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Internet of Things with Blynk

You're reading from   Hands-On Internet of Things with Blynk Build on the power of Blynk to configure smart devices and build exciting IoT projects

Arrow left icon
Product type Paperback
Published in May 2018
Publisher Packt
ISBN-13 9781788995061
Length 271 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Pradeeka Seneviratne Pradeeka Seneviratne
Author Profile Icon Pradeeka Seneviratne
Pradeeka Seneviratne
Arrow right icon
View More author details
Toc

Joystick

The Joystick widget simulates a real joystick with two axes, x and y. You can add a Joystick widget to the canvas by following these steps:

  1. Tap the plus icon to open the Widget Box.
  2. Under Controllers, tap JOYSTICK. A Joystick widget will be added to the canvas.

The Joystick widget consumes 400 power:

Joystick widget

Using digital pins

In split mode, the Joystick widget uses two pins on your hardware for each axis, x and y. The pins should be capable of PWM to write values in a predefined range. Unfortunately, the Raspberry Pi has a single pin that is BCM_GPIO 18 capable with PWM, but you will require one more PWM pin. Therefore, you can't use the Joystick widget with Raspberry Pi digital pins.

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime