Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 22.3

COLUMN

Phidgets

What are they and how to use them

Issue: 22.3 (May/June 2024)
Author: Stefanie Juchmes-Simonis
Author Bio: Stefanie studied computer science at the university in Bonn. She came in touch with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 11,324
Starting Page Number: 91
Article Number: 22309
Resource File(s):

Download Icon project22309.zip Updated: 2024-05-03 11:27:18

Related Link(s): None

Excerpt of article text...

Do you already know about Phidgets?

In this article I will show you what they are all about and how you can use them.

In release 22.1 we have added many new classes to the Phidgets topic in our MBS Xojo plugin. Phidgets are small input/output devices from the company Phidgets Inc. that can receive information from the outside world or output it. There are many different Phidgets that you can use. For example, there are various sensors such as humidity, magnetic, light, gyroscope, PH, sound, temperature, capacitive touch or pressure sensors, an LED screen with which you can display information, a slider, a joystick, and much, much more. With the MBS Xojo plugins, we make it possible for you to connect to this hardware in Xojo and exchange values.

The Structure

To be able to work with the Phidget, we have to connect the Phidget to the computer somehow. We use so-called hubs, which have several ports to connect one or more Phidgets (see Figure 1). The hubs' ports are numbered. Hubs are available in several versions. On the one hand, these hubs can be connected to the computer by cable, or you can have a wireless hub, which is then connected to the computer via Ethernet or WLAN.

In our example, we are using a wired hub. I would now like to demonstrate a small weather station that consists of a light, a barometer, and a temperature sensor.

...End of Excerpt. Please purchase the magazine to read the full article.