Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ BrickPiJava

Java implementation of Raspberry PI/Brick Pi interface


You can clone a complete Netbeans Project including the required libraries. It uses pi4j. The jar in the project has been modified to support he 500000 baud rate.

Most sensors are missing. Except for I2C, color_full and ultrasonic other sensors should work as a RawSensor.
Most sensors are missing but, except for I2C, color_full and ultrasonic, the other sensors should work as a RawSensor.

Motors are implemented. You can get the instantaneous speed of the motor, as calculated from the encoder values, by means of the "getCurrentSpeed" method of your Motor class. There are problem problems with this, such as if the encoder over/underflows, when changing direction, etc. - create an issue with a good description (and preferably a use-case) The speed also seems to be double the actual speed. No real idea why that is, unless the ticks per rev are 1440 and not 720.

The interfaces/APIs may change, but should be pretty stable.

Motor is implemented but not yet tested.
Take a look at the BrickPiTests.java for usage examples.

The interfaces/APIs are subject to change at this point.
Conceptually, it's pretty simple. You create instances of one of the Sensor classes and/or Motors. Associate them with the correct port number on the BrickPi instance. You need to run "setupSensors", after that, it should all just work.

You can integrate Netbeans so that it will automatically copy the code to the PI following the instructions here:

Expand Down