And then swap out the Uno for something smaller, like a ProMini or something. You might find a pair of 18650s a fair place to start, and use them with a decent 5v regulator. The article you quote doesn't say AAs are best, it just says they are a better choice than a 9v PP3, which is actually true, and then goes off on a fairytale about the virtues of a step up module that would be barely adequate to drive a Uno. Since the staying power of a battery is more or less commensurate with its volume, only you can make that value judgement, particulalrly since are disinclined to mention time, but, if you are serious about using battery power, you probably won't be using a Uno anyway, and quite likely not an HC-05 either. Whats the longest lasting battery power option (and smallest physical space) ? A bluetooth 4 module like the HM-10 is clearly a better choice when using battery power, and they don't cost much more than an HC-05 these days. When you get that sorted, it likely to dawn on you that paying $3-50 for an HC-05 was a pretty good idea. Once you have ensured the dongle is OK for simple data connection in SPP protocol, you might find you can do this by using a USB host shield. I was wondering if there was a simple way of just plugging in a USB Bluetooth dongle to replace the USB cable According to this article its AA batteries : What is the best (best = occupying the smallest space and last longest)and most efficient way to supply 5V (500 ma max) to the arduino via batteries if the USB port is occupied by a Bluetooth dongle. Is there a way of just plugging in a USB Bluetooth dongle into an arduino uno to replace the USB cable to get data from the arduino into the PC ? If you want long battery life you will need to ditch or modify the Uno and be able to power the sensors and Bluetooth off (or sleep) while sleeping the processor. That is the ideal minimum amp hours (Ah) for the battery (1.5 to 2X more realistic). This tutorial is about using Classic Bluetooth (Bluetooth 2.0). This tutorial will take LED and servo motor as examples. You can control anything connected to Arduino from the smartphone app. Multiply The sum of sensor currents plus Uno and Bluetooth current by the number of hours that you want the project to run between battery charge or change. This tutorial will use Bluetooth Serial Monitor App on Android for demonstration. Look at the Bluetooth module data sheet, too. Thois code will quickly tell you if the module is working properly and what baudrate it uses.Without knowing the specifications of the sensors, how can we estimate current requirements? Look at the data sheets and try to find the specs for power for each. When the communication baudrate is set correctly, the Bluetooth module should answer OK. #include SoftwareSerial hc06 ( 2, 3 ) void setup ( ) The following code allows you to modify the parameters using the serial monitor. To allow configuration, the module HC-06 should be powered but not paired (la LED is blinking). My laptop came with a third party bluetooth tool and drivers, and the dongle just uses the standard windows drivers. The only difference between the 2 is the drivers used. Module HC-06 configurationĬonfiguring the module HC-06 can be interesting to verify that it is working, hooked up correctly and to modify its parameters such as its name (useful when your are using several modules), PIN code and communication speed (baudrate). I tried the same setup with a built in PC bluetooth (my laptop came with bluetooth), and this seems to work fine. Especially, Arduino Mega, Micro and Leonardo. Depending on the microcontroller, some pins may not support SoftwareSerial communication. WARNING : We use pin 2 and 3 of Arduino Uno.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |