Tags:
tag this topic
create new tag
view all tags
---+ Final Feedback on Bluetooth project It been a great time working with you. Ever since i took this project, i have a learn a lot especially with the Arduino devices and Bluetooth stuffs like the command line interface. It was awesome. But this project was accomplished based on successive week intervals. The *starting week* was based on the installing of the software from Github. But there was issues with the software (Arduino) from Github, so we find a different way to install the Arduino software into the folder /opt/ucc/micros/arduino/ from other source and everything works perfectly. The<b> following week</b> i try to learn something about the Arduino devices, how they work, and how they are used. Later i found that we have different types of Arduino devices like the Arduino UNO, Arduino Nano, Arduino Mega ADK, Arduino Ethernet, Arduino Leonardo and many more but this board are available depending on different micro controllers used. We were told we will be working with the UNO since it the most popular board in the Arduino board family. In addition, it is the best board to get started with electronics and coding.<br />The actual project for the Embedded System(robot) was sub divided into four(4) namely, * _DC motor_ * _Ultra-sonic_ * _Servo control_ * _Bluetooth communication._ ---+ Later I and Shadrack were handed the Bluetooth communication whiles other members or crew work on the other 3 sub divided project. The <b>third week </b>was the actual commencement of the Embedded System project (robot). During that week, I and Shadrack divided the Bluetooth project into two(2) i try to research on how the Bluetooth communication work perfectly with Arduino devices, whiles he (Shadrack) also work on some Java codes to enable server and client communicate with Bluetooth devices. Based on my research, i found out that there are various of Bluetooth module purposely for communicating with the Arduino devices for example, HC 05, HC 06 Bluetooth module. Since we will be working with HC 06 Bluetooth module, I later observe that the HC 06 module have 4 pins. 1 __VCC for power (voltage)__ 1 __GND for the ground connection__ 1 __TX for the transmitting__ 1 __RX for the receiving__ ---+ <img alt="" height="417" src="http://arduinolearning.com/wp-content/uploads/2016/05/hc-06.jpg" title="HC 06 bluetooth module" width="531" /> But one important fact about HC 06 Bluetooth module is that, it uses a power of 3.3V that means a power more that this will cause the module to burn. To over come this problem, we have to set a voltage divider by the use of resistor in other to get a 3.3V. <img alt="" height="182" src="https://gm1.ggpht.com/QYJXMIHHTNwyT8PAYVz_sXo__JLj_GzxMp_tXxt99UKgo-2AFPZL3MgF_pblQ-GxjdlbIRba6NBkDX5c-nQLlHhMazwpI_BhOywk1Y0rMnZZJUEawurwaRy1OJnUzuR2SvEM0LwVlLe4PUGj3tHs3hUZbhb1wMvM7DIQ0Mdl6hGk7tRqCuHku_PQAcWZuGbdIqmblboj-CO8H59rxcBmj6aJ7WYnWsnZXxgXn27EmOPe-VnosJT95AY-LjQXuqlVF3w4bhqsUmjHjv_So4si4gRjy2-urjgWa-ZOI-wwQj0SQhmsrdQeXN4p7y0UZPaGI5eaff4UNrTqMfBO4Q1GNeHCxYlGCg9vgvss2PB1cSRLuwrPPK4tR8R0YAJZwTk5C0JpC_7T2mrTCfdOOT5TRpia191GlRI0ITfUm1paySQvtty5hfykW-W8ler5R3sRuPSggO9I2cVYxF8DtmqksZXMn1xU9qk6HQtO9Y-kC_Fu7-He-gpChscmd6DZm43b8ymsSZrYBh69qzGxDP8ES5qTy3w_H4rNuizMV44wdIz7gLynSgWFkb76k6B7EgBUidSdYI7RP6peMImIOiL7pIy7jnZKq2W1_bxi8jCD-8iYaIBj6V7mfdTtWLwcrrOnIwANPy6XZp7gUI1g1khEB8de4CAh-ljAoGCwdYQAH2rRo5GA1T6ItiY235pPiJHIevYWbW54EeI=w560-h220-l75-ft" title="Voltage-divider" width="456" /> Later i had a good new from Shadrack telling me he has successfully figure out some codes to enable server and client to communicate on Bluetooth devices. During *the fourth (4) weeks*, we learn about the Bluetoothctl. HCI tool and the GATTool in Linux environment. For me, i couldn't believe it when i was pairing and connecting to my devices using the HCI tool command in Linux. The HCI tool is a command line tool that send raw packets to the controller from user space and initiates LESCAN. And for the GATTool, when you establish the link layer using the hcitool, we use the <a href="https://dcsit.twiki.ucc.edu.gh/do/edit/UCC_Course/BlueZ?topicparent=UCC_Course.FinalFeedback;nowysiwyg=0" rel="nofollow" title="BlueZ (this topic does not yet exist; you can create it)">BlueZ</a>'s GATT client functionality using the GATTool. <img alt="" height="353" src="https://gm1.ggpht.com/ujWF0HSz5S9sCVFfkX200qAK_r_i44JR1SAMh99MPbv9cUHLkYdjMgKfRjDKCYa2grwSMxgsDysUWTYfYG43HsY4t3gBi1EMp4U0UC4RuzMIW4cUTVBMR9tUl4u4Lv89oIg4b_UTXdsggwb2pvZ_-XFgYVJ0K_KyphmnvtiTlh3O8TQZdfq2gY-JIS0KJ0hp1RigRTg7NfpFuKvwuzsuU1p8l59wndC_btvoNCg7MP4VBOoovDm-uJdlI054elAZvIfIzYA8nKdbJcAgdlPF5w1H1PK2SNiTnW86bbLUbDpoM5H-2SBhIkP6IrwsyXYoPEJwWUJLvz0Ba9PX7wSSWERmdD5gctTm--F1uITi_jcKzN3XiurVJadJJ0G8x6hUHRzXl_nm2Uh9Kdp4B-sgLF9V6kcPJ_NRjfU2UruQbYA8dc-aMWWSH__VzwOEaPLhct2S3GtHRXt-qfQysIL9I4D4IcL3ev9AdQFE_M8RFsUQ8IbV4Pfd0L9Kd_5ZVK3apjzTV5ytWbXFp9IdiLSmNx3x7GHP7RgILu6-fr6yxPntqRoItO6UiBXUGmG-7nhiiJozOLbco5ZC3A6HhWKO-Qh3TSMa52eye32w-duokqAEjNaLct-4CG83INAudHSHBsThRy8ypJjf2gXB8lMtvjri7MPSFrfwe15NJuXRDn8589w01YdOAWfXT-4T6u7bZUwLBcIZ=w902-h508-l75-ft" title="Bluetoothctl-command-line" width="629" /> *Week five (5)* was awesome since we put in a tremendous amount of time in the task giving to us. I come up with an App on MIT App Inventor to connect and pair the Bluetooth module (HC 06 Bluetooth Module) <img alt="" height="323" src="https://gm1.ggpht.com/lw9dcFoofx6e5yNfvqHlvF_ARymFrrVgiwniKhYb4WA8SPnW_qndvwVi8eQGxZJqro8hyn5gAIABA3i-MdCd0TFhSwlhF4Oe2hJKWa4_VkowwZtucGciLc_JqKd-ueOc3IeG96wR9fJ93vwPONmvs4oE4Oh6VmOF0v0W1htrS0dxO6uNH0cXxugk5lXa_oAefDhSj7PJwybzDf5Q-Cc9ziQqI7MULUHEke5riLKhJ5rlqsjF6jyZNw2LLWQS14-lLlLUKSBLguG3IUNBLOV2xsKXmgk-jj4u06UE0xHVjii6xhMSerVrSynP4xMFnJ_lmR89hY4UpinPXFF9XgoWPrcv5cmn0craCFxpN3Lbi8HtRJU50lY1HEBRBAIUDHMQmuj4QpUqfkYU6R3zA8HH2NnHFhj6KCO8Lseow6kPkA5EuPtdSu7TYZOZ_r0Mx1Qutsr6rsKj1DlKu1DdmoG1m2dwiIWzH9f2yWijCI6T-5fRx5ZW-wrjJcv76jUyWp54TiNTlpYye4IjNaZFiTD2a8285WZBYKNqjF9kPVvSCPmwjxjXq-45__pxVtIBTptsuYnDEPVURjYYknImNoMRBGfxUToDSoouS65ybYD39ZbnuPO8n9QVp_tSkPPs64wjRVLcc9QrfCv6-bI56DcHlPA8EfALpxtq5J4PTzAsm3BrhwYic0SObCgSzn7gf_GYO0JuLH574Q=w662-h372-l75-ft" width="575" /> <img alt="" height="316" src="https://mail.google.com/mail/u/0/?ui=2&ik=ea8cd1a1e0&view=fimg&th=15bb524b7f1da46c&attid=0.5&disp=emb&realattid=ii_j21yqqhl4_15bb511ef38af7ff&attbid=ANGjdJ8uVMKS0bs3HBuFtnkXqPLvTtLFbZ5dJqomDCYk52PnHStNLQQPzFTk4QEctlvvCFnqosfnvfaqS-zsgKbXnu4YzP0EHB7Yh9fnVsnaeWVq-3_AMjVEoAAKkjg&sz=w658-h370&ats=1493474058993&rm=15bb524b7f1da46c&zw&atsh=1" width="562" /> During our testing, we decided to test for the LED blinking. Firstly, we connected a GND pin from the Arduino UNO GND pin to the negative line of the breadboard. We then connected the LED pin (CATODE) to the Arduino UNO pin 9. We then also connected the other pin (ANODE) to the GND line on the breadboard. We gave it a delay of 1000ms to enable the LED ON and another delay of 1000ms to OFF the LED. It work like a perfectly. <br />Before we made actual connection with the Bluetooth module, I and Shadrack decided to step it down with a 30K resistor. We made the necessary connection with the 4 pins on the Bluetooth module. The most important connection was the TX and RX since this is where the caution need to be taken and the voltage divider need to be applied.<br />We connected the TX pin from the Bluetooth module to the RX pin on the Arduino UNO. After that we connected a 20K resistor (10K + 10K connected in series) from the GND side of the breadboard to the RX pin of the Bluetooth module.We made a connection from the TX pin of the Arduino UNO to the breadboard and this is where we connected a 10K resistor to the RX of the Bluetooth module. After all this were done, we use the MIT App to connect and pair the Bluetooth module, unfortunately, it work and we were able to paired successfully with module and light on the module turn steadily. We were able to control the LED on the board since there is a little problem with code we wrote. We are hoping to solve this issue when we start our week of focusing on the project. One more thing, we encountered an error uploading the code. But it was solve in week 6 since the error was as a result of the username not part of the *dialout* group. With the command "<b><i>sudo usermod -a -G dialout username</i></b>" error won't be encountered. -- %USERSIG{JohnAubyn - 2017-04-29}% ---++ Comments %COMMENT%
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2017-05-01
-
uli
Home
Site map
AFNOG web
Embedded_Systems web
IoT_Course_English web
IoT_Course_French web
Main web
Sandbox web
TWiki web
Embedded_Systems Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback