servo robotic arm using arduino and bluetooth - bluetooth

I am trying to control servo robotic arm via bluetooth module hc05.
All things connected properly. I am confused which control app will use.
And also bluetooth does not send any data to arduino but light is blinking.
If any one have robotic arm code, please share
I have tried almost all code from different website.
#include <SoftwareSerial.h> // TX RX software library for bluetooth
#include <Servo.h> // servo library
Servo myservo1, myservo2, myservo3, myservo4; // servo name
int bluetoothTx = 10; // bluetooth tx to 10 pin
int bluetoothRx = 11; // bluetooth rx to 11 pin
SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);
just need any app for controlling servo from Bluetooth,also trying to sent data from Bluetooth but nothing happened.

There isn't really much to go on here. Does the servo work from the Arduino without the Bluetooth module connected? Do you have 1k and 2k resistors on the RX pin of the Bluetooth to lower the logic level? What about power?
Here's the connections that need to be made with the HC-05:
https://i.stack.imgur.com/I7I3x.png
Don't worry about the EN pin though. No need to connect that to anything.
As for code, look up the default servo controlling examples in the Arduino IDE and then add Bluetooth functionality to it.
Do you also have a way to communicate with the board? Some sort of app to send commands to the Arduino?
Here's someone that has done this: https://www.youtube.com/watch?v=gL7b8E_5aYs
He has a link to the app and his code in the description.
In regards to your robotic arm, here's "How to Mechatronics". This guy makes instructive and easy to follow Arduino videos. Here is his robotic arm video. (source code and app in description etc.):https://www.youtube.com/watch?v=_B3gWd3A_SI

Did you turn on your bluetooth on both device?
Did you pair it together?
And do you know about AT Command Mode in Bluetooth?
its good to know when you have problem about connection and password.
I am using arduino bluetooth RC Car for my robot arduino, you can use it too for robotic arm testing connection.

Related

Is an Arduino bluetooth-to-Wifi relay possible for using with Beacons?

My knowledge in both bluetooth beacons and Arduino is limited at this point.
This is for an indoor positioning system I'm thinking to develop. Is it possible to create an Arduino board where the BT module receives a BT beacon ping with the Beacon ID, and then relays this data to a Wifi module on the same board, to then send it out to a server/local server of some sort?
Is this feasible? Or is it even possible the receive the ID of the beacon using Arduino?
I've attached an image of what I was thinking of:
Yes, this is absolutely possible. I have done the same with a Raspberry Pi. I am not an expert on programming the Arduino but I know for sure that both parts (beacon detection and decoding) and calling a web service over WiFi are possible with the Arduino.

Having trouble with SPI in Arduino

I have a project where I am trying to use the adxl345 as a pedometer and it is hooked up to an Arduino where it will count steps.I also have a bluetooth device from Adafruit (nrf8001) that is hooked up to an Arduino.
I want to the Arduino to send the steps via bluetooth to an smart phone. The problem I am currently at is the Arduino can only use either the adxl345 or the nrf8001. I cannot have both using SPI communication. I know that SPI can have multiple devices attached to it using chip select. I am using slave select but I don't know why it is not working. According to Adafruit they use their own special SPI communication that not only uses chip select but also a reset and interrupt.
Read following page.
https://learn.adafruit.com/getting-started-with-the-nrf8001-bluefruit-le-breakout/pinouts
It's REQ pin is considered as chip select.

Arduino nano, sound detection

I got an Arduino nano V3.0, connected via USB to my computer, and powered with the USB.
I want to use the nano to send a signal over the USB to the computer when it detects a sound of some amplitude.
Anybody knows how to connect a sound sensor to nano as easily as possible?
thanks
rough
I found this link useful http://arduinobasics.blogspot.com/2013/05/sound-sensor.html. Just connect sensor to arduino and adopt code for your needs (you don't need leds, just sensor). To send sensor status over USB use Serial class on Arduino and terminal application on PC.
You have 2 options, one of them is to buy a microphone which outputs a pulse when sound exceeds the threshold you've set on the potentiometer on the board, for example this one: Microphone Detector
The other option is to buy a microphone which outputs an analog stream which can be read by the A0 port on the Arduino Nano.
This Adafruit link can help you understand the code. As you can see, the analogRead(0); reads the A0 port of the arduino.

How to get audio from or to an FM tuner shield for Arduino

I have an Arduino Uno and a radio receiver shield (Si4735). I am trying to get another audio source to either play through the currently attached 1/8th jack on the shield or have the audio from the shield piped into the Arduino, where I can redirect it to some other source.
I don't have much experience with Arduino or hardware, however I am very experienced as a software developer. Any suggestions as to where to start, or if this shield even supports either of these functionalities?
Per the schematic, the audio output of the Si4735 chip is wired directly to the headphone jack -- there is no way to send the output elsewhere, or to send other audio to it.

Firmata over Bluetooth on Arduino?

I have Firmata working fine on an Arduino Uno, communicating over cable USB to Processing.
I want to get rid of the cable, and run the connection over Bluetooth transport (with a BlueSMIRF module). I am unclear on what I need to do to Firmata to tell it to use the BT module rather than the (unconnected) USB cable interface. In particular, do I need to hack Firmata itself to add initialization code which is
specific to the BT module I'm using, or
more generally, needed to tell Firmata to use a port other than the cabled USB?
Thanks
D
I am NOT very good in Firmata, but as i know, Firmata (on arduino) uses 'Serial' (pin 0 and 1, also aka as TX,RX) to communication with the Host. So, if u want to use a BT module to replace your USB cable on the arduino, hack the Firmata to use other pins, other connect the BT to pin 0 and 1.
You have to upload standard firmata with baud rate changed to 9600 inside the ino file (or test with other speed rate) and then connect BTooth TX>Rx(uno RX) and the bt RX>Tx(uno TX) as said in the previous post ,testing it with arduinoCommander worked like a charm!Arduino uno rx tx are pin0 and pin 1.also have it powered not from usb pc but external source cause having the BT ontop while on usb could mess up thing (in general disconnect the ground from BT module while uploading sketches).
All you have to do is make sure the USB is connected only when you are uploading your sketches to the arduino and then have the BlueSMIRF connected when you are ready to actually run the Arduino code. This way they will both use the default hardware serial port and you should not have to modify any code.
You could try and use SoftwareSerial.h in the Arduino to emulate another serial port but I have found that to be problematic.
Just connect Bluetooth to the Rx Tx pin and upload same standard firmata. Then pass command over bluetooth which you were passing over usb cable....it wil work.

Resources