2015-12-30

Switch control from Möllehem part: 3 (programming part 1)

Time for the programming trials to comes. I have placed allot of thoughts how to create this post in a structured way but it´s not entirely simple. But I will do my best I hope you will follow the simpleness of this system.

I will create a simple example that is based of my setup.
Short description of the setup:

Setup 

Step 1: Download Android device that speaks with the electronics (decoders).
Here is a link to the site at Google play:
https://play.google.com/store/apps/details?id=com.bluetoothtest
Install it and your good to go.

Step 2: Connect the Android device to the electronics.
Connect power to the Loconet terminator.
The blue diode should blink rapidly on the Smart phone interface box


Step 3:
Search for blue tooth devices on your andriod device and you will find the Loconet "xx"
Connect and write in code 1234
Open MGP application previously installed. Now you should see all the different decoders that is connected to your Loconet grid.


Step 4: Name all the different decoders. (good start)
Open each decoder and rename them to a logical name based on your layout


First programming. Simple servo switch command from panel buttons

Step 1: Note the SV nr on the Servo decoder and the position 1-5 of the intended servo. This will be the adress for the servo.

Step 2: Open the Panel decoder
Expand the input page

Go to the correct button based on which input is placed on the panel decoder board.
State if it´s a push button or switch button. If push button use "toggel" option.
Add the servo adress that should be trigged by the push button. The servo adress is the servo decoder adress for the first servo and then +1 for each servo connected to that decoder. For instance I want to trigger servo 3 on servo decoder with adress 40 would give me the servo adress 42 (40+2).

Step 3: Adjust Servo end points and direction to suite the implementation
Open Servo decoder
Find the servo and adjust en angle of the end points, easy to live and trim until no more stalling from the servos. It´s also possible to change speed and direction of of servo. This important to get the correct closed or throw message on the Loconet from the servo decoder.



This was all for the initial programing. With this easy setup can you control servos with simple push buttons. Next time will I show more of the LED programing and some more advanced functions.



No comments:

LinkWithin

Related Posts Plugin for WordPress, Blogger...