Share My Creation TinkerForge Control Example

rwblinn

Well-Known Member
Licensed User
Hi All,

Tinkerforge is an open source hardware platform of stackable microcontroller building blocks (Bricks) that can control different modules (Bricklets). The hardware can be controlled by external programs written in various languages, like C, Delphi, Java etc.

This B4A & B4J open source example uses the TinkerForge Java API Binding as defined in the external TinkerForge Java Library tinkerforge.jar, to control various Bricklets. For each Bricklet used, a B4x class is defined. A B4x class can be used without modification by both B4A & B4J (have not tested B4i).
The tinkerforge.jar methods are accessed using JavaObjects.

Example 1 (B4J version)
Shows controlling TinkerForge Bricks via B4x using the powerfull B4x feature of accessing external libraries. Pretty simple to use. So far the Master Brick with WIFI-Extension and a few Bricklets are used, like RemoteSwitch, Temperature, Humidity, Barometer ... but definite more to follow on this topic.
Download here.

Screenshot of the setup, B4J&B4A layouts:


Example 2(B4J version)
A B4J webserver showing a Temperature Line Chart using Google Charts embedding in jQuery Mobile.
Hardware: TinkerForge Red Brick, Master Brick and Temperature Bricklet.
Download here.



Example 3 (B4A and B4J Version)
Display in ListViews and LineCharts the Temperature, Humidity, AirPressure using the TinkerForge Temperature-, Humidity-, Barometer-Bricklet. There are a max of 10 datapoints displayed, which are refreshed by a listener with a callback. Scaling of the YAxis is done dynamically with a certain interval set.
Download here.



Note
The source is well commented - start with readme.txt.

EDIT 2015-01-29: Published B4A & B4J Weather App.
EDIT 2015-01-11: Published B4J WebServer WebTemp.
EDIT 2014-12-31: Published first version of B4A Open Source App, SetSwitch, to control Remote Switches Type A.

Enjoy...
 
Last edited:

rwblinn

Well-Known Member
Licensed User
2015-01-11: Update Example 2 (B4J version)
A B4J webserver showing a Temperature Line Chart using Google Charts embedding in jQuery Mobile.
 
Last edited:

Beja

Expert
Licensed User
Interesting,
Thanks for sharing.. do these bricks have RTC?
 

rwblinn

Well-Known Member
Licensed User
2015-01-29: Update Example 3 (B4A and B4J version)
Display in ListViews and LineCharts the Temperature, Humidity, AirPressure using the TinkerForge Temperature-, Humidity-, Barometer-Bricklet. There are a max of 10 datapoints displayed, which are refreshed by a listener with a callback. Scaling of the YAxis is done dynamically with a certain interval set.
 
Last edited:
Top