Analog Pin User Control
Using the AnalogPinControl is very similar to using the DigitalPinControl. To use the AnalogPinControl User Control:
- Download the FirmataVB_Components.zip folder to your computer
- Unzip or extract FirmataVB_Componets.zip
- Open the FirmataVB Components folder
- Locate the DigitalPinControl.dll file
- Copy the AnalogPinControl.dll file to a suitable location. It's a good idea to place a copy of it in the project folder for your application
- Create a new Windows Forms Application using Visual Studio or Visual Basic Express Edition
- Right click anywhere on the Toolbox
- Select Choose Items...
The Choose Toolbox Items dialog window will open. - Click the Browse... button
An Open dialog will appear. - Navigate to the AnalogPinControl.dll file
- Select the AnalogPinControl.dll file
- Click the Open button
- Click the OK button
The AnalogPinControl control should now appear in the Toolbox
- Click and drag the AnalogPinControl control onto a form in your project
An AnalogPinControl will appear on the form.
- In the Properties pane enter the number of the pin on your Arduino board that you want to associate this control with in the PinNumber property.
If you want to use the techniques for addressing the AnalogPinControls on your form that is used in the sample application then make sure you enter a unique PinNumber for each AnalogPinControl - Drag as many AnalogPinControls onto your form as you need.
For an Arduino Diecimila that would be 6
To see how the AnalogPinControl can be used to receive analog messages via FirmataVB have a look at the sample applications code.
Have you made use of FirmataVB or the code?
If so, please consider showing your appreciation (all donations used to continue to pay for web hosting of this resource)
<Digital Pin Control |