3/19/2023 0 Comments Coolterm link bluetooth![]() However, these pins are used for uploading sketches and as there are lots of pins available, I decided to use SoftwareSerial on different pins to speed up development. ![]() Arduino Bluetooth WiringĪs the Bluetooth module is meant to replace a serial connection, it would therefore be possible to use the arduino UART RX and TX pins (hardware serial). I'll document this in detail in case I need to repeat the process. ![]() Then you flip a Boolean, add the slave address then run it again and it will setup the master and pair the devices. You connect up a module, set the PIN, BAUD, NAME etc and run it. After finding all the commands I needed and doing the serial-comms AT configuration dance, I thought there had to be a better way, especially if I ever want to setup Bluetooth modules again for another project. The Bluetooth modules can be configured using a superset of the old Hayes AT command set. I might experiment with a arduino pro for the transmitter eventually but for now, I'll use UNOs. I decided to use arduinos as the microcontrollers as they have lots of libraries for serial comms and I know them well. These look a really useful means of getting two devices to talk using a serial interface. These can be configured as master or slave devices. Nothing like excessive technological overkill rather than crawling through the loft! Bluetooth Modules This will require microcontrollers and it will be a good opportunity to look a low-power sleep mode so the transmitter could be battery powered if necessary. So Plan-C was to make a remote Bluetooth enabled switch. I believe this is a great opportunity to learn about Bluetooth and with the peer-to-peer pairing and PIN number, it should be more secure. It does seem an overkill to use (relatively) long range wireless to transmit two meters. It would actually be possible to use a couple of Xbees without microcontrollers to do this. I need a mechanism to have a remote switch without wires. Avoiding crawling around in the loft space was not the only reason for going wireless, this was a good opportunity to learn something new.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |