Snap4Arduino and HC-06 bluetooth connectivity

865 views
Skip to first unread message

Ch Douv

unread,
Nov 17, 2016, 11:12:01 AM11/17/16
to S4A Community Mail List
I am trying to connect Snap4Arduino with arduino through HC-06 module but a have come across some problems.

I have paired my pc (Windows 10 64bit) with HC06 and connectet module's TX > RX and RX > TX on arduino, changed com ports speed to 57600 but i cannot connect.

Has anyone managed to make a connection????

Joan Guillén i Pelegay

unread,
Nov 17, 2016, 5:14:45 PM11/17/16
to S4A Community Mail List
Hi!

We are working with Snap4Arduino with a BT connection without problems. We are working in Linux... but W$ should be ok too.

Two questions:

- You said 'changed com ports speed to 57600'. I imagine you have changed HC-06 Module baud rate [AT+BAUD7], haven't you?

- Can you detail your error report? Do you see the com port in the connection list? I think windows maps bt to 2 coms... but only one of this is enabled. What is the error message?

We continue...

Joan

Ch Douv

unread,
Nov 18, 2016, 10:42:54 AM11/18/16
to S4A Community Mail List
I am trying to follow the steps in this guide, but it is not in english:
https://docs.google.com/document/d/1FiSmQ-f3wEcA3MtlX67GMQiVmWQ-fFYuSLsNPFSfu1A/edit

I have sent the at command to set the baud rate at 57600 but had no response. Then tried to connect to arduino (changed pins to RX and TX) but with no result.

Snap4Arduino says Cannot talk to arduino at com port 7 check if firmata is loaded. I have loaded SA5Firmata2.

Is there a complete guide in English i could read?

Joan Guillén i Pelegay

unread,
Nov 18, 2016, 7:06:15 PM11/18/16
to S4A Community Mail List
Hi,
Not yet in English :( (coming soon).

Can be useful this other document (also in catalan) but more extensive... and with a video showing the whole process?

* You selected 'com7'. I guess that you paired the bluetooth before (in another case, no BT com port) and I guess that you made sure com7 is the bluetooth port. My little experience with W$ is that there are two com ports for each bt connections... but only one is enable.

* In BT configuration, you had not response? Maybe the problem is here.  You must test this. You can follow the new document. It's important that when you  run "AT+BAUD7"
the response must be "OK57600"


Test it and we continue...

Joan

Martin Dillon

unread,
Nov 19, 2016, 10:14:41 AM11/19/16
to S4A Community Mail List
This is what you get if you run it through google translate.
Athens - Materials and Resources Training - Department of Education -.pdf

Ch Douv

unread,
Nov 26, 2016, 2:22:20 PM11/26/16
to S4A Community Mail List
Ok this document was really helpful. Thanks alot.

I have managed to to connect via BT but there is a problem.
8 out of 10 attempts to connect fail. There is no error message, it just keeps trying to connect but never does.
Is there something I can do to solve this problem or is it expected and BT connection is so unreliable?

I should mention that i need to power arduino with a 9v battery.

Ch Douv

unread,
Nov 28, 2016, 3:10:16 PM11/28/16
to S4A Community Mail List
Does anyone have any experience on this problem ?

Joan Guillén i Pelegay

unread,
Nov 28, 2016, 6:14:54 PM11/28/16
to S4A Community Mail List
No,

I'm working on linux... and I'm connecting Snap to Arduino with BT without problems. I know other people working in Windows and also runing ok.

You've said sometimes connecting... is right? Then configuration must be ok (bauds, pins, firmware...)

Two simple ideas:

  - Are you working always with the 9V bat? 9V bat have a low Imax. Test changing power: the same USB (to a PC or powerBank) o the jack with 4 1.5V bats.

  - Reset your board before connections.

We continue...

Joan

Ch Douv

unread,
Nov 30, 2016, 3:48:15 PM11/30/16
to S4A Community Mail List
Yes sometimes it connects ... I have changed the name and baud rate. Is there an at command to test baud rate ???

9v battery is more compact but i will make a try. Today i tested it on a computer at school with better results. Will make more test tomorrow ....

I have noticed that if arduino is powered by usb cable and try to connect via BT it has less connection rate.

Also i would like to make something clear. Should i connect TX->RX, RX->TX   OR  RX->RX and TX->TX ????

Will post tomorrow after some more tests

Joan Guillén i Pelegay

unread,
Nov 30, 2016, 5:43:55 PM11/30/16
to S4A Community Mail List

Hi,

You've said "sometimes it connects"... then, this configuration is the right. Sure, BT_RX to Arduino_TX and BT_TX to Arduino_RX.

I work with usb powering (with a power bank) and it's fine. I know 9V battery is compact... but first, test with other powers to see if the problem is there.

See tomorrow...

Joan

Ch Douv

unread,
Dec 1, 2016, 10:52:51 AM12/1/16
to S4A Community Mail List
Ok i am going to try to power it with a power bank that i have for raspberry pi .... it should be enough. Charging it today.

I am thinking of ordering another BT module .... which one should i buyt HC05 or HC06 .... does it make any difference for windows ?

I have tried BT at school using windows 7 but i get error message something with object (the usual one ....)

Ch Douv

unread,
Dec 3, 2016, 8:29:42 AM12/3/16
to S4A Community Mail List
I have tested BT with another arduino board, nothing else connected to it powered by a powerbank abd it looks alot better. Sometimes it is required to reset arduino if not connecting. My original construction has 4 servos connected to it. I suppose it is a matter of powering the BT module and it must be powered seperately from the rest of the circuit.

Nevertheless should i buy another BT module to test it? Has anyone else faced this kind of problems?

Bernat Romagosa

unread,
Dec 5, 2016, 1:38:17 AM12/5/16
to S4A Community Mail List
Hi!

Servos draw a lot of power and can introduce sudden current fluctuations that can cause the board to reset and the BT module to drop the connection. Up to two servos are (experimentally) okay to run with a BT module and a regular USB battery, but more than that will most probably need an independent power source.

Cheers,
Bernat.

On Sat, Dec 3, 2016 at 2:29 PM, Ch Douv <chdou...@gmail.com> wrote:
I have tested BT with another arduino board, nothing else connected to it powered by a powerbank abd it looks alot better. Sometimes it is required to reset arduino if not connecting. My original construction has 4 servos connected to it. I suppose it is a matter of powering the BT module and it must be powered seperately from the rest of the circuit.

Nevertheless should i buy another BT module to test it? Has anyone else faced this kind of problems?

--
You received this message because you are subscribed to the Google Groups "S4A Community Mail List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s4a-community+unsubscribe@googlegroups.com.
To post to this group, send email to s4a-co...@googlegroups.com.
Visit this group at https://groups.google.com/group/s4a-community.
To view this discussion on the web visit https://groups.google.com/d/msgid/s4a-community/e74c5091-f97e-47b1-a037-1ba73bf30338%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Bernat Romagosa

e.isa...@gmail.com

unread,
Apr 1, 2017, 8:33:09 PM4/1/17
to S4A Community Mail List
I had the same problem of Ch Douv, sometimes snap4arduino connects ok with bluetooth and other times doesn't, the bluetooth and the arduino are connected to two litio batteries
(http://www.ebay.com/itm/Elfeland-18650-3-7V-3800mAh-Li-ion-Rechargeable-Battery-Charger-For-LED-Torch-/381973399137?hash=item58ef638661:g:3TwAAOSw32lYqsVc)
so bluetooth is connected to 7,4V and 3800mAh through a sensor shield
(http://www.ebay.com/itm/Arduino-UNO-MEGA-Duemilanove-Sensor-Shield-V5-Digital-Analog-Module-Servo-Motor-/262702939294?hash=item3d2a50bc9e:g:tVIAAOSwcUBYGuct)
where there´s a jumper to use external voltage. When snap4arduino doesn't connect, appears a message saying that couldn't find arduino at com port or just keeps searching, so I have to close and opend snap4arduino or testing bluetooth with an arduino code.

I want to use snap4arduino to teach arduino to children and I wouldn't like that children do all this checks to make bluetooth and snap4arduino work, I'll be very grateful if someone can help me. Thanks in advance.

이기호

unread,
May 23, 2017, 11:27:58 PM5/23/17
to S4A Community Mail List, e.isa...@gmail.com
I have the same problem like you. 

I have tried what the above people said. But, does'n work.

I set My bluetooth module to 57600 by at command(AT+BAUD7->0k57600).

I also set the port speed(bit/s:9600->57600) of the port setting in device manager.

Do you have any idea? to solve this problem?

If I connect Snap 4 Arduino via bluetooth, I saw can't talk .... check firmata...

But I uploaded standardFirmata two times....

I don't know what to do...

2017년 4월 2일 일요일 오전 9시 33분 9초 UTC+9, e.isa...@gmail.com 님의 말:

Bernat Romagosa

unread,
May 26, 2017, 6:56:28 AM5/26/17
to S4A Community Mail List
Hi there,

which board are you using? Are you using plain StandardFirmata or a modified one?

Also, what operating system and Snap4Arduino version are you running?

Thanks!
Bernat.

--
You received this message because you are subscribed to the Google Groups "S4A Community Mail List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s4a-community+unsubscribe@googlegroups.com.
To post to this group, send email to s4a-co...@googlegroups.com.
Visit this group at https://groups.google.com/group/s4a-community.

For more options, visit https://groups.google.com/d/optout.



--
Bernat Romagosa
Reply all
Reply to author
Forward
0 new messages