Digital inputs
Digital inputs are generally used for controlling switches. The WPILib DigitalInput object is typically used to get the current state of the corresponding hardware line: 0 or 1. The digital inputs are more complex such as encoders or counters, are handled by using the appropriate classes. Using these other supported device types (encoder, ultrasonic rangefinder, gear tooth sensor, etc.) doesn’t require a digital input object to be created. The lines of digital input are shared from the 14 GPIO lines on each Digital Breakout Board. Creating an example of a DigitalInput object will automatically set the direction of the line to input.
The lines of digital input have pull-up resistors so an unconnected input will naturally be high. If a switch is contacted to the digital input it should connect to ground when closed. The switch open state will be 1 and the closed state will be 0. In Java, digital input values are true and false. So an open switch is true and a closed switch is false.
Digital Outputs
Typically digital outputs are used to run indicators or to interface with other electronics. The digital outputs provide the 14 GPIO lines on each Digital Breakout Board. Creating an example of a DigitalOutput object will automatically set the direction of the GPIO line to output. In C++, digital output values are 0 and 1 representing high (5V) and low (0V) signals. In Java, the digital output values are true (5V) and false (0V).
Accelerometer
The two-axis accelerometer given in the kit of parts is a two-axis accelerometer. This device can offer acceleration data in the X and Y axes relative to the circuit board. In the WPI Robotics Library you treat it as two separate devices, one for the X axis and the other for the Y axis. This provides better performance if your application only needs to use one axis. The accelerometer can be used as a tilt sensor – actually measuring the acceleration of gravity.
Blog about Robotics Introduction, news of the robot, information about the robot, sharing knowledge about the various kinds of robots, shared an article about robots, and others associated with the robot
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Well all know about robot although many of you have different opinion about what robot is. Some of you may associate robot with human like m...
-
What is the most important thing that you will choose if there will be one thing that you can choose to be used among all kinds of products ...
-
These trends point not only to the problem of who will fund social security as the ratio of older and largely retired people to younger work...
-
Many people believe that the development of technology has supported their life very much. Most of them say that they can finish their jobs ...
-
We all known that robot is the most practical tool for human tasks. By robot, a person will be able to finish her or his task easily. A robo...
-
Robotic arm has become popular in the robotic world. The essential part of the robotic arm is a programmable microcontroller based brick cap...
-
Currently humanoid robots are being implemented in a wide range of industries. The most common place to find humanoid robots is in the enter...
-
Just like human needs the body and the soul to be able to live, robots also need software and hardware to be able to do their function. The ...
-
There are so many things that are offered by this era of information. Why is it? It is because information is easily transferred from one pl...
-
If we have a company, of course we do not want that our company becomes bankrupt. So, we should work very hard in order to develop our compa...
0 Comment:
Post a Comment