If (vw_get_message(buf, &buflen)) // Non-blocking Serial.begin(9600) // start serial communication at 115200bps PinMode(ledpin, OUTPUT) // pin 13 (on-board LED) as OUTPUT Int s = 0 // options: lights, buzzers, additional motors.īyte LMF = 3 // PWM Left motor forward pinīyte LMR = 5 // PWM Left motor Reverse pinīyte RMF = 11 // PWM Right motor forward pinīyte RMR = 6 // PWM Right motor reverse pin From what I've read, the wifi shields tend to take up most of the SRAM, and are rather power hungry. Typically you would need to create a web server that you can connect to from other computers. Wifi is another choice, in that it can be controlled via laptops and such if you have set up the access points. If you don't need control from a phone, I believe a lot of people use nRF24L01+ radios: Since I do not use Apple devices of any sort, that is the extent of my knowledge about bluetooth 4.0. In order to communicate with Apple phones, you need to use something with bluetooth 4.0, which is more expensive and harder to find than 2.1 devices. I bought one HC-05 device for about $10 from ebay. You can find bluetooth 2.1 systems that communicate with Android phones, either as separate devices, or a shield that fits on the Uno. There are ways to control it via AT commands. Typically on Arduino, the most common bluetooth devices act as serial ports, where you plug in the device, and do Serial.print to send information and Serial.read to read it. ![]() One advantage of bluetooth is most modern smartphones have bluetooth capability, so you can control the system from a phone. It all comes down to range (and the higher the range, typically the more power hungry the radio is), size, ease of programming, cost, whether you need a special license to use the spectrum or it is open for all.īluetooth ( Bluetooth - Wikipedia) tends to be point to point devices, where you have one master and one slave in a pairing. Ummm, bluetooth a form of radio control, as is wifi, nRF24L01+, and cell phone radios. Which is easiest to work with and the most efficient? My university team is working on a Arduino based robot and we are interested in wirelessly controlling it with either Bluetooth or Radio control. However two transmitter to one receiver will cause problems. RF can have one transmitter to multiple receivers. Usually you only need to pair them when connecting to a computer, most modules auto pair when in range of each other. What are you sending, and how far do you need to go?Īdded: forgot to mention, bluetooth works in pairs and must be "paired" to talk to one another. (Buffer size)Īlso again it is a little more confusing when just starting out. (Surroundings effect data loss too)ĭownside: the virtual wire library limits you to about 27 sendable characters at one time. If you use a high rate, then your range is about 30 - 40ft, and your data is 99% all there. ![]() Lower rate means further distances 150 - 170ft (open space), but more likely to lose some data. It's range is mostly based on the transfer rate. RF use the virtual wire library, which not going to lie, can be a little confusing at first. ![]() (Aprox 50 - 60ft, depending on surroundings). ![]() However if you can manage to find a LE(low energy) bluetooth module, you can go further. It really depends on what your sending, if you need to receive anything, range and complexity.īluetooth communicates serially so it uses the Arduino's serial port (Tx Rx), and in doing so by using the serial connection you can easily send and receive data.ĭownside: Bluetooth is a little sluggish but has better quality also your limited to about 30ft. I've used both and i'm currently using RF.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |