sir, im a newbie and currently needing help for our research project which is a dimmable bulb using automated application. we already gathered the materials and tried different sketch but we cannot determined why the bluetooth module cannot be detected by the our phone devices, maybe its about the program, anyone who can help me to write a good sketch regarding our project?
The way that it works here is that you post your code and information about your project and we help you get it working.
So,
Read the "how to use this forum-please read" stickies and links that the stickies point to.
Properly post your code.
Describe, in detail, what the code actually does and how that differs from what you want the code to do.
Post a schematic of the project. Include all of the parts and their part numbers/values.
Which bluetooth module? The Arduino program probably has nothing to do with bluetooth pairing.
How are you powering it?
Which Arduino?
You didn't post your code. See the "how to use this forum" post at the top of every forum to find out how.
i used this link regards my project
http://www.robotsthenextspeciesonearth.com/p/blog-page.html
please understand that i am totally newbie but for the sake of this project, im willing to learn everything regards the arduino, kindly help! im totally clueless of the flow of sketch.
here is the schematic diagram, the difference is that i am using one bulb to dim remotely by phone using bluetooth module.
jovelakea:
but we cannot determined why the bluetooth module cannot be detected by the our phone devices, maybe its about the program
Most unlikely. As far as making a connection between bluetooth and phone is concerned, the only purpose of Arduino is to provide power to the former. Be aware that the HC-05 you portray will not work with an iPhone, but I believe iPhone can see it.
You should see the ON light on Arduino, usually green. If you cannot, I guess you have no chance, and need to address that.
You should then see a 2Hz flashing LED on Bluetooth. That signifies "power on, ready to connect". If you see that but cannot connect, there is a faint possibility that the power supply is inadequate. You might be able to test that by taking the relay board out of play.
If still no joy, it might be time to check the procedure at the phone end. The pairing is done in the phone settings, the connection is made in the phone app. You must pair before you use the phone app.
Very pretty but that appears to show 5V power connected to the USB connector on the Arduino. It's also impossible to tell which pins on the Arduino are connected to which pins on the HC05 module. If this diagram originated in F**ing, then switch to the "schematic view" and adjust that so it looks neat.
the problem is the code, i dont know what code to use, also there is no led flashing on bluetooth module, ive tried to connect the arduino to a 12V power supply also i used tester to find the voltage input in bluetooth module and get an exact input of 5V but still the bluetooth doesnt show a flashing LED, by the way, it connect sometimes to phone but after 3-5 minutes, the LED turn off as well as disconnect the connection to phone.
jovelakea:
the problem is the code,
I'm betting it isn't. Indeed it is anything but the code, and I bet I can say that without seeing the code. Further, if you cannot see a flashing LED, no amount of programming will fix the problem. It is fixed by proper wiring and a proper power supply. to that end, it might be useful to read reply #5 again. Also, putting 5v on the USB socket might work but doesn't do much for confidence, and putting on the 5v where everybody can see it is more normal.
ive already tested that connectivity of every single wire and the power input of bluetooth module., i can say that it is well fix but nothing happened on bluetooth module as a result, there is still no flashing led..
as i say, sometimes the bluetooth module work but after pairing for 3 mins. the led stop flashing as well as disconnect the phone connection, after that i can no longer connect it or see a flashing led. can be because the bluetooth module is defective?
jovelakea:
bluetooth module is defective?
Probably not. I say this because
- it is a fair bet that, if Bluetooth is dead, it stays dead, but
- you use the word "sometimes".
I would be more inclined to put the "sometimes" with the "well fix"
While you seem to be a bit fast and loose with the words "pairing" and "connection ", I'm not sure that matters at this stage. It would appear that what you are suffering from is involuntary disconnection from Android, and this is best explained by involuntary disconnection from an adequate power supply.
I say "appear" because, if Android if connected, the LED should stop flashing immediately, not after three minutes. There is a suggestion there that the phone was never connected - and you still have a power problem. It might help if you better explain what you mean by "LED stop flashing" Some HC-05s have a double flash every few seconds to indicate a live connection.
It is very faintly possible that the problem is not because of your slack wiring, but it is actually down to bad assembly of the HC-05 module on the backboard. I have heard of it - once. There was solder bridge shorting two pins, and it never worked at all until it was cleaned up. I don't think this is your problem but it is worth some close inspection.
