Difference between revisions of "Kladky s EV3"
m (→Hardware) |
m |
||
Line 8: | Line 8: | ||
[[Image:Stavebnica.jpg|300px]] [[Image:Ev3.jpg|300px]] [[Image:Ev3ss.jpg|300px]] [[Image:Ev3lsm.jpg|300px]] [[Image:Ev3pohladH.jpg|300px]] | [[Image:Stavebnica.jpg|300px]] [[Image:Ev3.jpg|300px]] [[Image:Ev3ss.jpg|300px]] [[Image:Ev3lsm.jpg|300px]] [[Image:Ev3pohladH.jpg|300px]] | ||
+ | |||
+ | ==Software== | ||
+ | My project has two components. One is the program that runs on the robot. The another one is a relay, that handles the messaging between the bots, because the bluetooth chip cannot be set to Master mode to connect to another device. So that's why there is a need of a relay. | ||
+ | |||
+ | I have written this in Python 3.5, because of the ease of use of the language. | ||
+ | The program uses two threads where opens the serial bluetooth connections given by the user, and relays the incoming messages from one thread to another. | ||
+ | For the serial connection I have used the pySerial python library, so to compile the relay code you have to download, and install it from pip or [https://pythonhosted.org/pyserial/]. |
Revision as of 19:40, 16 June 2016
Project objective
Cieľom nášho prjektu bolo vytvorenie stavebnice, ktorá umožňuje meranie sily motora potrebnej na zdvihnutie telesa za pomoci kladky, alebo konfigúrácie kladiek. Daľšou úlohou bolo naprogramovanie programu, ktorý toto meranie riadi v zariadení EV3 v systéme Lejos.
Hardware
Pre účely tohto projektu sme použili EV3 zariadenie, EV3 Large servo motor a EV3 svetelný senzor. Súčasti hardvéru sme umiestnili do stvebnice.
Software
My project has two components. One is the program that runs on the robot. The another one is a relay, that handles the messaging between the bots, because the bluetooth chip cannot be set to Master mode to connect to another device. So that's why there is a need of a relay.
I have written this in Python 3.5, because of the ease of use of the language. The program uses two threads where opens the serial bluetooth connections given by the user, and relays the incoming messages from one thread to another. For the serial connection I have used the pySerial python library, so to compile the relay code you have to download, and install it from pip or [1].