Society of Robots - Robot Forum

Mechanics and Construction => Mechanics and Construction => Topic started by: e2733 on November 24, 2015, 03:57:40 AM

Title: Can we use bluetooth to receive audio? and program the robot to move ?
Post by: e2733 on November 24, 2015, 03:57:40 AM
Can we use bluetooth to receive audio? and program the robot to move ?
Can i? ???
what program and device do i need to use?
Thankyou very much
Title: Re: Can we use bluetooth to receive audio? and program the robot to move ?
Post by: partha on July 30, 2017, 10:42:04 PM
Yes.

You have to send audio in packeted form. You have to define a frame format which has to be implemented in both Tx and Rx side. The frame could have some header, data length, data and checksum to ensure proper Tx/Rx.

You can use HC-05/06 Bluetooth module to send or receive the data. Please make sure the audio data is of very small size and duration (8-bit etc.). You can assign different command type in the data section of your message frame. For example, for audio data and robot movement data you can differentiate them with different command byte in the data section.

A state machine for UART receiving interrupt in the microcontroller will have to parse the message and do respective action, i.e., whether to play/process the audio or do some movements in the robot.

Hope it helps.